View Javadoc

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