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