View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 2.1.2,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.profiles;
7   
8   /**
9    * 
10   *          Repository contains the information needed
11   *          for establishing connections with remote repository
12   *       .
13   * 
14   * @version $Revision$ $Date$
15   */
16  @SuppressWarnings( "all" )
17  public class RepositoryBase
18      implements java.io.Serializable
19  {
20  
21        //--------------------------/
22       //- Class/Member Variables -/
23      //--------------------------/
24  
25      /**
26       * 
27       *             A unique identifier for a repository.
28       *           
29       */
30      private String id;
31  
32      /**
33       * 
34       *             Human readable name of the repository
35       *           .
36       */
37      private String name;
38  
39      /**
40       * 
41       *              The url of the repository
42       *           .
43       */
44      private String url;
45  
46      /**
47       * The type of layout this repository uses for locating and
48       * storing artifacts - can be "legacy" or
49       *             "default".
50       */
51      private String layout = "default";
52  
53  
54        //-----------/
55       //- Methods -/
56      //-----------/
57  
58      /**
59       * Get a unique identifier for a repository.
60       * 
61       * @return String
62       */
63      public String getId()
64      {
65          return this.id;
66      } //-- String getId()
67  
68      /**
69       * Get the type of layout this repository uses for locating and
70       * storing artifacts - can be "legacy" or
71       *             "default".
72       * 
73       * @return String
74       */
75      public String getLayout()
76      {
77          return this.layout;
78      } //-- String getLayout()
79  
80      /**
81       * Get human readable name of the repository.
82       * 
83       * @return String
84       */
85      public String getName()
86      {
87          return this.name;
88      } //-- String getName()
89  
90      /**
91       * Get the url of the repository.
92       * 
93       * @return String
94       */
95      public String getUrl()
96      {
97          return this.url;
98      } //-- String getUrl()
99  
100     /**
101      * Set a unique identifier for a repository.
102      * 
103      * @param id a id object.
104      */
105     public void setId( String id )
106     {
107         this.id = id;
108     } //-- void setId( String )
109 
110     /**
111      * Set the type of layout this repository uses for locating and
112      * storing artifacts - can be "legacy" or
113      *             "default".
114      * 
115      * @param layout a layout object.
116      */
117     public void setLayout( String layout )
118     {
119         this.layout = layout;
120     } //-- void setLayout( String )
121 
122     /**
123      * Set human readable name of the repository.
124      * 
125      * @param name a name object.
126      */
127     public void setName( String name )
128     {
129         this.name = name;
130     } //-- void setName( String )
131 
132     /**
133      * Set the url of the repository.
134      * 
135      * @param url a url object.
136      */
137     public void setUrl( String url )
138     {
139         this.url = url;
140     } //-- void setUrl( String )
141 
142     
143             public boolean equals( Object obj )
144             {
145                 RepositoryBase other =  (RepositoryBase) obj;
146 
147                 boolean retValue = false;
148 
149                 if ( id != null )
150                 {
151                     retValue = id.equals( other.id );
152                 }
153 
154                 return retValue;
155             }
156           
157 }