View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.4.0,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.profiles;
25  
26  /**
27   * 
28   *          Repository contains the information needed
29   *          for establishing connections with remote repository
30   *       .
31   * 
32   * @version $Revision$ $Date$
33   */
34  @SuppressWarnings( "all" )
35  public class RepositoryBase
36      implements java.io.Serializable
37  {
38  
39        //--------------------------/
40       //- Class/Member Variables -/
41      //--------------------------/
42  
43      /**
44       * 
45       *             A unique identifier for a repository.
46       *           
47       */
48      private String id;
49  
50      /**
51       * 
52       *             Human readable name of the repository
53       *           .
54       */
55      private String name;
56  
57      /**
58       * 
59       *              The url of the repository
60       *           .
61       */
62      private String url;
63  
64      /**
65       * The type of layout this repository uses for locating and
66       * storing artifacts - can be "legacy" or
67       *             "default".
68       */
69      private String layout = "default";
70  
71  
72        //-----------/
73       //- Methods -/
74      //-----------/
75  
76      /**
77       * Get a unique identifier for a repository.
78       * 
79       * @return String
80       */
81      public String getId()
82      {
83          return this.id;
84      } //-- String getId()
85  
86      /**
87       * Get the type of layout this repository uses for locating and
88       * storing artifacts - can be "legacy" or
89       *             "default".
90       * 
91       * @return String
92       */
93      public String getLayout()
94      {
95          return this.layout;
96      } //-- String getLayout()
97  
98      /**
99       * Get human readable name of the repository.
100      * 
101      * @return String
102      */
103     public String getName()
104     {
105         return this.name;
106     } //-- String getName()
107 
108     /**
109      * Get the url of the repository.
110      * 
111      * @return String
112      */
113     public String getUrl()
114     {
115         return this.url;
116     } //-- String getUrl()
117 
118     /**
119      * Set a unique identifier for a repository.
120      * 
121      * @param id a id object.
122      */
123     public void setId( String id )
124     {
125         this.id = id;
126     } //-- void setId( String )
127 
128     /**
129      * Set the type of layout this repository uses for locating and
130      * storing artifacts - can be "legacy" or
131      *             "default".
132      * 
133      * @param layout a layout object.
134      */
135     public void setLayout( String layout )
136     {
137         this.layout = layout;
138     } //-- void setLayout( String )
139 
140     /**
141      * Set human readable name of the repository.
142      * 
143      * @param name a name object.
144      */
145     public void setName( String name )
146     {
147         this.name = name;
148     } //-- void setName( String )
149 
150     /**
151      * Set the url of the repository.
152      * 
153      * @param url a url object.
154      */
155     public void setUrl( String url )
156     {
157         this.url = url;
158     } //-- void setUrl( String )
159 
160     
161             public boolean equals( Object obj )
162             {
163                 RepositoryBase other =  (RepositoryBase) obj;
164 
165                 boolean retValue = false;
166 
167                 if ( id != null )
168                 {
169                     retValue = id.equals( other.id );
170                 }
171 
172                 return retValue;
173             }
174           
175 }