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