1 /* 2 Licensed to the Apache Software Foundation (ASF) under one 3 or more contributor license agreements. See the NOTICE file 4 distributed with this work for additional information 5 regarding copyright ownership. The ASF licenses this file 6 to you under the Apache License, Version 2.0 (the 7 "License"); you may not use this file except in compliance 8 with the License. You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, 13 software distributed under the License is distributed on an 14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 KIND, either express or implied. See the License for the 16 specific language governing permissions and limitations 17 under the License. 18 =================== DO NOT EDIT THIS FILE ==================== 19 Generated by Modello 2.4.0, 20 any modifications will be overwritten. 21 ============================================================== 22 */ 23 24 package org.apache.maven.settings; 25 26 /** 27 * 28 * 29 * Base class for <code>Mirror</code>, 30 * <code>Profile</code>, <code>Proxy</code> and 31 * <code>Server</code>. 32 * 33 * 34 * @version $Revision$ $Date$ 35 */ 36 @SuppressWarnings( "all" ) 37 public class IdentifiableBase 38 extends TrackableBase 39 implements java.io.Serializable, java.lang.Cloneable 40 { 41 42 //--------------------------/ 43 //- Class/Member Variables -/ 44 //--------------------------/ 45 46 /** 47 * Item identifier. 48 */ 49 private String id = "default"; 50 51 52 //-----------/ 53 //- Methods -/ 54 //-----------/ 55 56 /** 57 * Method clone. 58 * 59 * @return IdentifiableBase 60 */ 61 public IdentifiableBase clone() 62 { 63 try 64 { 65 IdentifiableBase copy = (IdentifiableBase) super.clone(); 66 67 return copy; 68 } 69 catch ( java.lang.Exception ex ) 70 { 71 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 72 + " does not support clone()" ).initCause( ex ); 73 } 74 } //-- IdentifiableBase clone() 75 76 /** 77 * Get item identifier. 78 * 79 * @return String 80 */ 81 public String getId() 82 { 83 return this.id; 84 } //-- String getId() 85 86 /** 87 * Set item identifier. 88 * 89 * @param id a id object. 90 */ 91 public void setId( String id ) 92 { 93 this.id = id; 94 } //-- void setId( String ) 95 96 }