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.maven.continuum.model.project;
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.continuum.model.repository.AbstractPurgeConfiguration;
17  import org.apache.continuum.model.repository.DirectoryPurgeConfiguration;
18  import org.apache.continuum.model.repository.DistributedDirectoryPurgeConfiguration;
19  import org.apache.continuum.model.repository.LocalRepository;
20  import org.apache.continuum.model.repository.RepositoryPurgeConfiguration;
21  import org.apache.maven.continuum.model.scm.ChangeFile;
22  import org.apache.maven.continuum.model.scm.ChangeSet;
23  import org.apache.maven.continuum.model.scm.ScmResult;
24  import org.apache.maven.continuum.model.system.Installation;
25  import org.apache.maven.continuum.model.system.NotificationAddress;
26  import org.apache.maven.continuum.model.system.Profile;
27  import org.apache.maven.continuum.model.system.SystemConfiguration;
28  import org.apache.maven.continuum.project.ContinuumProjectState;
29  
30  /**
31   * Class BuildDefinition.
32   * 
33   * @version $Revision$ $Date$
34   */
35  @SuppressWarnings( "all" )
36  public class BuildDefinition
37      implements java.io.Serializable
38  {
39  
40        //--------------------------/
41       //- Class/Member Variables -/
42      //--------------------------/
43  
44      /**
45       * Field id.
46       */
47      private int id = 0;
48  
49      /**
50       * Field defaultForProject.
51       */
52      private boolean defaultForProject = false;
53  
54      /**
55       * Field goals.
56       */
57      private String goals;
58  
59      /**
60       * Field arguments.
61       */
62      private String arguments;
63  
64      /**
65       * Field buildFile.
66       */
67      private String buildFile;
68  
69      /**
70       * 
71       *             true if the build is to be smoked and checked
72       * back out from the scm each build
73       *           .
74       */
75      private boolean buildFresh = false;
76  
77      /**
78       * description of the buid defintion.
79       */
80      private String description;
81  
82      /**
83       * type of the buid defintion.
84       */
85      private String type;
86  
87      /**
88       * Field schedule.
89       */
90      private Schedule schedule;
91  
92      /**
93       * Field profile.
94       */
95      private Profile profile;
96  
97      /**
98       * 
99       *             true if the build had to be forced even if there
100      * is no scm change
101      *           .
102      */
103     private boolean alwaysBuild = false;
104 
105     /**
106      * 
107      *             true if this buildDefinition is a template
108      *           .
109      */
110     private boolean template = false;
111 
112     /**
113      * Field updatePolicy.
114      */
115     private int updatePolicy = 0;
116 
117 
118       //-----------/
119      //- Methods -/
120     //-----------/
121 
122     /**
123      * Method equals.
124      * 
125      * @param other
126      * @return boolean
127      */
128     public boolean equals( Object other )
129     {
130         if ( this == other )
131         {
132             return true;
133         }
134 
135         if ( !( other instanceof BuildDefinition ) )
136         {
137             return false;
138         }
139 
140         BuildDefinition that = (BuildDefinition) other;
141         boolean result = true;
142 
143         result = result && id == that.id;
144 
145         return result;
146     } //-- boolean equals( Object )
147 
148     /**
149      * Get the arguments field.
150      * 
151      * @return String
152      */
153     public String getArguments()
154     {
155         return this.arguments;
156     } //-- String getArguments()
157 
158     /**
159      * Get the buildFile field.
160      * 
161      * @return String
162      */
163     public String getBuildFile()
164     {
165         return this.buildFile;
166     } //-- String getBuildFile()
167 
168     /**
169      * Get description of the buid defintion.
170      * 
171      * @return String
172      */
173     public String getDescription()
174     {
175         return this.description;
176     } //-- String getDescription()
177 
178     /**
179      * Get the goals field.
180      * 
181      * @return String
182      */
183     public String getGoals()
184     {
185         return this.goals;
186     } //-- String getGoals()
187 
188     /**
189      * Get the id field.
190      * 
191      * @return int
192      */
193     public int getId()
194     {
195         return this.id;
196     } //-- int getId()
197 
198     /**
199      * Get the profile field.
200      * 
201      * @return Profile
202      */
203     public Profile getProfile()
204     {
205         return this.profile;
206     } //-- Profile getProfile()
207 
208     /**
209      * Get the schedule field.
210      * 
211      * @return Schedule
212      */
213     public Schedule getSchedule()
214     {
215         return this.schedule;
216     } //-- Schedule getSchedule()
217 
218     /**
219      * Get type of the buid defintion.
220      * 
221      * @return String
222      */
223     public String getType()
224     {
225         return this.type;
226     } //-- String getType()
227 
228     /**
229      * Get the updatePolicy field.
230      * 
231      * @return int
232      */
233     public int getUpdatePolicy()
234     {
235         return this.updatePolicy;
236     } //-- int getUpdatePolicy()
237 
238     /**
239      * Method hashCode.
240      * 
241      * @return int
242      */
243     public int hashCode()
244     {
245         int result = 17;
246 
247         result = 37 * result + (int) id;
248 
249         return result;
250     } //-- int hashCode()
251 
252     /**
253      * Get true if the build had to be forced even if there is no
254      * scm change.
255      * 
256      * @return boolean
257      */
258     public boolean isAlwaysBuild()
259     {
260         return this.alwaysBuild;
261     } //-- boolean isAlwaysBuild()
262 
263     /**
264      * Get true if the build is to be smoked and checked back out
265      * from the scm each build.
266      * 
267      * @return boolean
268      */
269     public boolean isBuildFresh()
270     {
271         return this.buildFresh;
272     } //-- boolean isBuildFresh()
273 
274     /**
275      * Get the defaultForProject field.
276      * 
277      * @return boolean
278      */
279     public boolean isDefaultForProject()
280     {
281         return this.defaultForProject;
282     } //-- boolean isDefaultForProject()
283 
284     /**
285      * Get true if this buildDefinition is a template.
286      * 
287      * @return boolean
288      */
289     public boolean isTemplate()
290     {
291         return this.template;
292     } //-- boolean isTemplate()
293 
294     /**
295      * Set true if the build had to be forced even if there is no
296      * scm change.
297      * 
298      * @param alwaysBuild
299      */
300     public void setAlwaysBuild( boolean alwaysBuild )
301     {
302         this.alwaysBuild = alwaysBuild;
303     } //-- void setAlwaysBuild( boolean )
304 
305     /**
306      * Set the arguments field.
307      * 
308      * @param arguments
309      */
310     public void setArguments( String arguments )
311     {
312         this.arguments = arguments;
313     } //-- void setArguments( String )
314 
315     /**
316      * Set the buildFile field.
317      * 
318      * @param buildFile
319      */
320     public void setBuildFile( String buildFile )
321     {
322         this.buildFile = buildFile;
323     } //-- void setBuildFile( String )
324 
325     /**
326      * Set true if the build is to be smoked and checked back out
327      * from the scm each build.
328      * 
329      * @param buildFresh
330      */
331     public void setBuildFresh( boolean buildFresh )
332     {
333         this.buildFresh = buildFresh;
334     } //-- void setBuildFresh( boolean )
335 
336     /**
337      * Set the defaultForProject field.
338      * 
339      * @param defaultForProject
340      */
341     public void setDefaultForProject( boolean defaultForProject )
342     {
343         this.defaultForProject = defaultForProject;
344     } //-- void setDefaultForProject( boolean )
345 
346     /**
347      * Set description of the buid defintion.
348      * 
349      * @param description
350      */
351     public void setDescription( String description )
352     {
353         this.description = description;
354     } //-- void setDescription( String )
355 
356     /**
357      * Set the goals field.
358      * 
359      * @param goals
360      */
361     public void setGoals( String goals )
362     {
363         this.goals = goals;
364     } //-- void setGoals( String )
365 
366     /**
367      * Set the id field.
368      * 
369      * @param id
370      */
371     public void setId( int id )
372     {
373         this.id = id;
374     } //-- void setId( int )
375 
376     /**
377      * Set the profile field.
378      * 
379      * @param profile
380      */
381     public void setProfile( Profile profile )
382     {
383         this.profile = profile;
384     } //-- void setProfile( Profile )
385 
386     /**
387      * Set the schedule field.
388      * 
389      * @param schedule
390      */
391     public void setSchedule( Schedule schedule )
392     {
393         this.schedule = schedule;
394     } //-- void setSchedule( Schedule )
395 
396     /**
397      * Set true if this buildDefinition is a template.
398      * 
399      * @param template
400      */
401     public void setTemplate( boolean template )
402     {
403         this.template = template;
404     } //-- void setTemplate( boolean )
405 
406     /**
407      * Set type of the buid defintion.
408      * 
409      * @param type
410      */
411     public void setType( String type )
412     {
413         this.type = type;
414     } //-- void setType( String )
415 
416     /**
417      * Set the updatePolicy field.
418      * 
419      * @param updatePolicy
420      */
421     public void setUpdatePolicy( int updatePolicy )
422     {
423         this.updatePolicy = updatePolicy;
424     } //-- void setUpdatePolicy( int )
425 
426     /**
427      * Method toString.
428      * 
429      * @return String
430      */
431     public java.lang.String toString()
432     {
433         StringBuilder buf = new StringBuilder( 128 );
434 
435         buf.append( "id = '" );
436         buf.append( getId() );
437         buf.append( "'" );
438 
439         return buf.toString();
440     } //-- java.lang.String toString()
441 
442 }