View Javadoc

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