View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.1 on 2011-09-18 11:21:46,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.continuum.model.project;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.apache.continuum.model.release.ContinuumReleaseResult;
15  import org.apache.continuum.model.repository.AbstractPurgeConfiguration;
16  import org.apache.continuum.model.repository.DirectoryPurgeConfiguration;
17  import org.apache.continuum.model.repository.LocalRepository;
18  import org.apache.continuum.model.repository.RepositoryPurgeConfiguration;
19  import org.apache.maven.continuum.model.project.BuildDefinition;
20  import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
21  import org.apache.maven.continuum.model.project.BuildQueue;
22  import org.apache.maven.continuum.model.project.BuildResult;
23  import org.apache.maven.continuum.model.project.ContinuumDatabase;
24  import org.apache.maven.continuum.model.project.Project;
25  import org.apache.maven.continuum.model.project.ProjectDependency;
26  import org.apache.maven.continuum.model.project.ProjectDeveloper;
27  import org.apache.maven.continuum.model.project.ProjectGroup;
28  import org.apache.maven.continuum.model.project.ProjectNotifier;
29  import org.apache.maven.continuum.model.project.Schedule;
30  import org.apache.maven.continuum.model.scm.ChangeFile;
31  import org.apache.maven.continuum.model.scm.ChangeSet;
32  import org.apache.maven.continuum.model.scm.ScmResult;
33  import org.apache.maven.continuum.model.system.Installation;
34  import org.apache.maven.continuum.model.system.NotificationAddress;
35  import org.apache.maven.continuum.model.system.Profile;
36  import org.apache.maven.continuum.model.system.SystemConfiguration;
37  import org.apache.maven.continuum.project.ContinuumProjectState;
38  
39  /**
40   * Class ProjectScmRoot.
41   * 
42   * @version $Revision$ $Date$
43   */
44  @SuppressWarnings( "all" )
45  public class ProjectScmRoot
46      implements java.io.Serializable
47  {
48  
49        //--------------------------/
50       //- Class/Member Variables -/
51      //--------------------------/
52  
53      /**
54       * Field id.
55       */
56      private int id = 0;
57  
58      /**
59       * Field scmRootAddress.
60       */
61      private String scmRootAddress;
62  
63      /**
64       * Field oldState.
65       */
66      private int oldState = 0;
67  
68      /**
69       * Field state.
70       */
71      private int state = 0;
72  
73      /**
74       * Field error.
75       */
76      private String error;
77  
78      /**
79       * Field projectGroup.
80       */
81      private ProjectGroup projectGroup;
82  
83  
84        //-----------/
85       //- Methods -/
86      //-----------/
87  
88      /**
89       * Method equals.
90       * 
91       * @param other
92       * @return boolean
93       */
94      public boolean equals( Object other )
95      {
96          if ( this == other )
97          {
98              return true;
99          }
100 
101         if ( !( other instanceof ProjectScmRoot ) )
102         {
103             return false;
104         }
105 
106         ProjectScmRoot that = (ProjectScmRoot) other;
107         boolean result = true;
108 
109         result = result && id == that.id;
110 
111         return result;
112     } //-- boolean equals( Object )
113 
114     /**
115      * Get the error field.
116      * 
117      * @return String
118      */
119     public String getError()
120     {
121         return this.error;
122     } //-- String getError()
123 
124     /**
125      * Get the id field.
126      * 
127      * @return int
128      */
129     public int getId()
130     {
131         return this.id;
132     } //-- int getId()
133 
134     /**
135      * Get the oldState field.
136      * 
137      * @return int
138      */
139     public int getOldState()
140     {
141         return this.oldState;
142     } //-- int getOldState()
143 
144     /**
145      * Get the projectGroup field.
146      * 
147      * @return ProjectGroup
148      */
149     public ProjectGroup getProjectGroup()
150     {
151         return this.projectGroup;
152     } //-- ProjectGroup getProjectGroup()
153 
154     /**
155      * Get the scmRootAddress field.
156      * 
157      * @return String
158      */
159     public String getScmRootAddress()
160     {
161         return this.scmRootAddress;
162     } //-- String getScmRootAddress()
163 
164     /**
165      * Get the state field.
166      * 
167      * @return int
168      */
169     public int getState()
170     {
171         return this.state;
172     } //-- int getState()
173 
174     /**
175      * Method hashCode.
176      * 
177      * @return int
178      */
179     public int hashCode()
180     {
181         int result = 17;
182 
183         result = 37 * result + (int) id;
184 
185         return result;
186     } //-- int hashCode()
187 
188     /**
189      * Set the error field.
190      * 
191      * @param error
192      */
193     public void setError( String error )
194     {
195         this.error = error;
196     } //-- void setError( String )
197 
198     /**
199      * Set the id field.
200      * 
201      * @param id
202      */
203     public void setId( int id )
204     {
205         this.id = id;
206     } //-- void setId( int )
207 
208     /**
209      * Set the oldState field.
210      * 
211      * @param oldState
212      */
213     public void setOldState( int oldState )
214     {
215         this.oldState = oldState;
216     } //-- void setOldState( int )
217 
218     /**
219      * Set the projectGroup field.
220      * 
221      * @param projectGroup
222      */
223     public void setProjectGroup( ProjectGroup projectGroup )
224     {
225         this.projectGroup = projectGroup;
226     } //-- void setProjectGroup( ProjectGroup )
227 
228     /**
229      * Set the scmRootAddress field.
230      * 
231      * @param scmRootAddress
232      */
233     public void setScmRootAddress( String scmRootAddress )
234     {
235         this.scmRootAddress = scmRootAddress;
236     } //-- void setScmRootAddress( String )
237 
238     /**
239      * Set the state field.
240      * 
241      * @param state
242      */
243     public void setState( int state )
244     {
245         this.state = state;
246     } //-- void setState( int )
247 
248     /**
249      * Method toString.
250      * 
251      * @return String
252      */
253     public java.lang.String toString()
254     {
255         StringBuilder buf = new StringBuilder( 128 );
256 
257         buf.append( "id = '" );
258         buf.append( getId() );
259         buf.append( "'" );
260 
261         return buf.toString();
262     } //-- java.lang.String toString()
263 
264 }