View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.continuum.model.repository;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.apache.continuum.model.project.ProjectScmRoot;
15  import org.apache.continuum.model.release.ContinuumReleaseResult;
16  import org.apache.maven.continuum.model.project.BuildDefinition;
17  import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
18  import org.apache.maven.continuum.model.project.BuildQueue;
19  import org.apache.maven.continuum.model.project.BuildResult;
20  import org.apache.maven.continuum.model.project.ContinuumDatabase;
21  import org.apache.maven.continuum.model.project.Project;
22  import org.apache.maven.continuum.model.project.ProjectDependency;
23  import org.apache.maven.continuum.model.project.ProjectDeveloper;
24  import org.apache.maven.continuum.model.project.ProjectGroup;
25  import org.apache.maven.continuum.model.project.ProjectNotifier;
26  import org.apache.maven.continuum.model.project.Schedule;
27  import org.apache.maven.continuum.model.scm.ChangeFile;
28  import org.apache.maven.continuum.model.scm.ChangeSet;
29  import org.apache.maven.continuum.model.scm.ScmResult;
30  import org.apache.maven.continuum.model.system.Installation;
31  import org.apache.maven.continuum.model.system.NotificationAddress;
32  import org.apache.maven.continuum.model.system.Profile;
33  import org.apache.maven.continuum.model.system.SystemConfiguration;
34  import org.apache.maven.continuum.project.ContinuumProjectState;
35  
36  /**
37   * Class LocalRepository.
38   * 
39   * @version $Revision$ $Date$
40   */
41  @SuppressWarnings( "all" )
42  public class LocalRepository
43      implements java.io.Serializable
44  {
45  
46        //--------------------------/
47       //- Class/Member Variables -/
48      //--------------------------/
49  
50      /**
51       * Field id.
52       */
53      private int id = 0;
54  
55      /**
56       * Field name.
57       */
58      private String name;
59  
60      /**
61       * 
62       *             The file system location for this repository
63       *           .
64       */
65      private String location;
66  
67      /**
68       * 
69       *             The layout of the repository. Valid values are
70       * "default" and "legacy"
71       *           .
72       */
73      private String layout = "default";
74  
75  
76        //-----------/
77       //- Methods -/
78      //-----------/
79  
80      /**
81       * Method equals.
82       * 
83       * @param other
84       * @return boolean
85       */
86      public boolean equals( Object other )
87      {
88          if ( this == other )
89          {
90              return true;
91          }
92  
93          if ( !( other instanceof LocalRepository ) )
94          {
95              return false;
96          }
97  
98          LocalRepository that = (LocalRepository) other;
99          boolean result = true;
100 
101         result = result && id == that.id;
102 
103         return result;
104     } //-- boolean equals( Object )
105 
106     /**
107      * Get the id field.
108      * 
109      * @return int
110      */
111     public int getId()
112     {
113         return this.id;
114     } //-- int getId()
115 
116     /**
117      * Get the layout of the repository. Valid values are "default"
118      * and "legacy".
119      * 
120      * @return String
121      */
122     public String getLayout()
123     {
124         return this.layout;
125     } //-- String getLayout()
126 
127     /**
128      * Get the file system location for this repository.
129      * 
130      * @return String
131      */
132     public String getLocation()
133     {
134         return this.location;
135     } //-- String getLocation()
136 
137     /**
138      * Get the name field.
139      * 
140      * @return String
141      */
142     public String getName()
143     {
144         return this.name;
145     } //-- String getName()
146 
147     /**
148      * Method hashCode.
149      * 
150      * @return int
151      */
152     public int hashCode()
153     {
154         int result = 17;
155 
156         result = 37 * result + (int) id;
157 
158         return result;
159     } //-- int hashCode()
160 
161     /**
162      * Set the id field.
163      * 
164      * @param id
165      */
166     public void setId( int id )
167     {
168         this.id = id;
169     } //-- void setId( int )
170 
171     /**
172      * Set the layout of the repository. Valid values are "default"
173      * and "legacy".
174      * 
175      * @param layout
176      */
177     public void setLayout( String layout )
178     {
179         this.layout = layout;
180     } //-- void setLayout( String )
181 
182     /**
183      * Set the file system location for this repository.
184      * 
185      * @param location
186      */
187     public void setLocation( String location )
188     {
189         this.location = location;
190     } //-- void setLocation( String )
191 
192     /**
193      * Set the name field.
194      * 
195      * @param name
196      */
197     public void setName( String name )
198     {
199         this.name = name;
200     } //-- void setName( String )
201 
202     /**
203      * Method toString.
204      * 
205      * @return String
206      */
207     public java.lang.String toString()
208     {
209         StringBuilder buf = new StringBuilder( 128 );
210 
211         buf.append( "id = '" );
212         buf.append( getId() );
213         buf.append( "'" );
214 
215         return buf.toString();
216     } //-- java.lang.String toString()
217 
218 }