View Javadoc

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