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