View Javadoc

1   /*
2    * $Id$
3    */
4   
5   package org.apache.maven.settings;
6   
7     //---------------------------------/
8    //- Imported classes and packages -/
9   //---------------------------------/
10  
11  import java.util.Date;
12  
13  /**
14   * 
15   *         
16   *         Base class for <code>Mirror</code>,
17   * <code>Profile</code>, <code>Proxy</code> and
18   * <code>Server</code>.
19   *         
20   * 
21   * @version $Revision$ $Date$
22   */
23  public class IdentifiableBase extends TrackableBase 
24  implements java.io.Serializable
25  {
26  
27  
28        //--------------------------/
29       //- Class/Member Variables -/
30      //--------------------------/
31  
32      /**
33       * Field id.
34       */
35      private String id = "default";
36  
37  
38        //-----------/
39       //- Methods -/
40      //-----------/
41  
42      /**
43       * Get the id field.
44       * 
45       * @return String
46       */
47      public String getId()
48      {
49          return this.id;
50      } //-- String getId() 
51  
52      /**
53       * Set the id field.
54       * 
55       * @param id
56       */
57      public void setId( String id )
58      {
59          this.id = id;
60      } //-- void setId( String ) 
61  
62  
63      private String modelEncoding = "UTF-8";
64  
65      /**
66       * Set an encoding used for reading/writing the model.
67       *
68       * @param modelEncoding the encoding used when reading/writing the model.
69       */
70      public void setModelEncoding( String modelEncoding )
71      {
72          this.modelEncoding = modelEncoding;
73      }
74  
75      /**
76       * @return the current encoding used when reading/writing this model.
77       */
78      public String getModelEncoding()
79      {
80          return modelEncoding;
81      }
82  }