View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2013-02-24 03:31:03,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.settings;
9   
10  /**
11   * 
12   *         
13   *         Base class for <code>Mirror</code>,
14   * <code>Profile</code>, <code>Proxy</code> and
15   * <code>Server</code>.
16   *         
17   * 
18   * @version $Revision$ $Date$
19   */
20  @SuppressWarnings( "all" )
21  public class IdentifiableBase
22      extends TrackableBase
23      implements java.io.Serializable, java.lang.Cloneable
24  {
25  
26        //--------------------------/
27       //- Class/Member Variables -/
28      //--------------------------/
29  
30      /**
31       * Field id.
32       */
33      private String id = "default";
34  
35  
36        //-----------/
37       //- Methods -/
38      //-----------/
39  
40      /**
41       * Method clone.
42       * 
43       * @return IdentifiableBase
44       */
45      public IdentifiableBase clone()
46      {
47          try
48          {
49              IdentifiableBase copy = (IdentifiableBase) super.clone();
50  
51              return copy;
52          }
53          catch ( java.lang.Exception ex )
54          {
55              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
56                  + " does not support clone()" ).initCause( ex );
57          }
58      } //-- IdentifiableBase clone()
59  
60      /**
61       * Get the id field.
62       * 
63       * @return String
64       */
65      public String getId()
66      {
67          return this.id;
68      } //-- String getId()
69  
70      /**
71       * Set the id field.
72       * 
73       * @param id
74       */
75      public void setId( String id )
76      {
77          this.id = id;
78      } //-- void setId( String )
79  
80  }