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