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.release;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.apache.continuum.model.project.ProjectScmRoot;
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 ContinuumReleaseResult.
41   * 
42   * @version $Revision$ $Date$
43   */
44  @SuppressWarnings( "all" )
45  public class ContinuumReleaseResult
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 startTime.
60       */
61      private long startTime = 0L;
62  
63      /**
64       * Field endTime.
65       */
66      private long endTime = 0L;
67  
68      /**
69       * Field resultCode.
70       */
71      private int resultCode = 0;
72  
73      /**
74       * Field projectGroup.
75       */
76      private ProjectGroup projectGroup;
77  
78      /**
79       * Field project.
80       */
81      private Project project;
82  
83      /**
84       * Field releaseGoal.
85       */
86      private String releaseGoal;
87  
88  
89        //-----------/
90       //- Methods -/
91      //-----------/
92  
93      /**
94       * Method equals.
95       * 
96       * @param other
97       * @return boolean
98       */
99      public boolean equals( Object other )
100     {
101         if ( this == other )
102         {
103             return true;
104         }
105 
106         if ( !( other instanceof ContinuumReleaseResult ) )
107         {
108             return false;
109         }
110 
111         ContinuumReleaseResult that = (ContinuumReleaseResult) other;
112         boolean result = true;
113 
114         result = result && id == that.id;
115 
116         return result;
117     } //-- boolean equals( Object )
118 
119     /**
120      * Get the endTime field.
121      * 
122      * @return long
123      */
124     public long getEndTime()
125     {
126         return this.endTime;
127     } //-- long getEndTime()
128 
129     /**
130      * Get the id field.
131      * 
132      * @return int
133      */
134     public int getId()
135     {
136         return this.id;
137     } //-- int getId()
138 
139     /**
140      * Get the project field.
141      * 
142      * @return Project
143      */
144     public Project getProject()
145     {
146         return this.project;
147     } //-- Project getProject()
148 
149     /**
150      * Get the projectGroup field.
151      * 
152      * @return ProjectGroup
153      */
154     public ProjectGroup getProjectGroup()
155     {
156         return this.projectGroup;
157     } //-- ProjectGroup getProjectGroup()
158 
159     /**
160      * Get the releaseGoal field.
161      * 
162      * @return String
163      */
164     public String getReleaseGoal()
165     {
166         return this.releaseGoal;
167     } //-- String getReleaseGoal()
168 
169     /**
170      * Get the resultCode field.
171      * 
172      * @return int
173      */
174     public int getResultCode()
175     {
176         return this.resultCode;
177     } //-- int getResultCode()
178 
179     /**
180      * Get the startTime field.
181      * 
182      * @return long
183      */
184     public long getStartTime()
185     {
186         return this.startTime;
187     } //-- long getStartTime()
188 
189     /**
190      * Method hashCode.
191      * 
192      * @return int
193      */
194     public int hashCode()
195     {
196         int result = 17;
197 
198         result = 37 * result + (int) id;
199 
200         return result;
201     } //-- int hashCode()
202 
203     /**
204      * Set the endTime field.
205      * 
206      * @param endTime
207      */
208     public void setEndTime( long endTime )
209     {
210         this.endTime = endTime;
211     } //-- void setEndTime( long )
212 
213     /**
214      * Set the id field.
215      * 
216      * @param id
217      */
218     public void setId( int id )
219     {
220         this.id = id;
221     } //-- void setId( int )
222 
223     /**
224      * Set the project field.
225      * 
226      * @param project
227      */
228     public void setProject( Project project )
229     {
230         this.project = project;
231     } //-- void setProject( Project )
232 
233     /**
234      * Set the projectGroup field.
235      * 
236      * @param projectGroup
237      */
238     public void setProjectGroup( ProjectGroup projectGroup )
239     {
240         this.projectGroup = projectGroup;
241     } //-- void setProjectGroup( ProjectGroup )
242 
243     /**
244      * Set the releaseGoal field.
245      * 
246      * @param releaseGoal
247      */
248     public void setReleaseGoal( String releaseGoal )
249     {
250         this.releaseGoal = releaseGoal;
251     } //-- void setReleaseGoal( String )
252 
253     /**
254      * Set the resultCode field.
255      * 
256      * @param resultCode
257      */
258     public void setResultCode( int resultCode )
259     {
260         this.resultCode = resultCode;
261     } //-- void setResultCode( int )
262 
263     /**
264      * Set the startTime field.
265      * 
266      * @param startTime
267      */
268     public void setStartTime( long startTime )
269     {
270         this.startTime = startTime;
271     } //-- void setStartTime( long )
272 
273     /**
274      * Method toString.
275      * 
276      * @return String
277      */
278     public java.lang.String toString()
279     {
280         StringBuilder buf = new StringBuilder( 128 );
281 
282         buf.append( "id = '" );
283         buf.append( getId() );
284         buf.append( "'" );
285 
286         return buf.toString();
287     } //-- java.lang.String toString()
288 
289 }