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.v1_0_9;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.apache.maven.continuum.model.scm.v1_0_9.ChangeFile;
15  import org.apache.maven.continuum.model.scm.v1_0_9.ChangeSet;
16  import org.apache.maven.continuum.model.scm.v1_0_9.ScmResult;
17  import org.apache.maven.continuum.model.scm.v1_0_9.SuiteResult;
18  import org.apache.maven.continuum.model.scm.v1_0_9.TestCaseFailure;
19  import org.apache.maven.continuum.model.scm.v1_0_9.TestResult;
20  import org.apache.maven.continuum.model.system.v1_0_9.NotificationAddress;
21  import org.apache.maven.continuum.model.system.v1_0_9.SystemConfiguration;
22  
23  /**
24   * Class BuildDefinition.
25   * 
26   * @version $Revision$ $Date$
27   */
28  @SuppressWarnings( "all" )
29  public class BuildDefinition
30      implements java.io.Serializable
31  {
32  
33        //--------------------------/
34       //- Class/Member Variables -/
35      //--------------------------/
36  
37      /**
38       * Field id.
39       */
40      private int id = 0;
41  
42      /**
43       * Field defaultForProject.
44       */
45      private boolean defaultForProject = false;
46  
47      /**
48       * Field goals.
49       */
50      private String goals;
51  
52      /**
53       * Field arguments.
54       */
55      private String arguments;
56  
57      /**
58       * Field buildFile.
59       */
60      private String buildFile;
61  
62      /**
63       * Field schedule.
64       */
65      private Schedule schedule;
66  
67      /**
68       * Field latestBuildId.
69       */
70      private int latestBuildId = 0;
71  
72  
73        //-----------/
74       //- Methods -/
75      //-----------/
76  
77      /**
78       * Method equals.
79       * 
80       * @param other
81       * @return boolean
82       */
83      public boolean equals( Object other )
84      {
85          if ( this == other )
86          {
87              return true;
88          }
89  
90          if ( !( other instanceof BuildDefinition ) )
91          {
92              return false;
93          }
94  
95          BuildDefinition that = (BuildDefinition) other;
96          boolean result = true;
97  
98          result = result && id == that.id;
99  
100         return result;
101     } //-- boolean equals( Object )
102 
103     /**
104      * Get the arguments field.
105      * 
106      * @return String
107      */
108     public String getArguments()
109     {
110         return this.arguments;
111     } //-- String getArguments()
112 
113     /**
114      * Get the buildFile field.
115      * 
116      * @return String
117      */
118     public String getBuildFile()
119     {
120         return this.buildFile;
121     } //-- String getBuildFile()
122 
123     /**
124      * Get the goals field.
125      * 
126      * @return String
127      */
128     public String getGoals()
129     {
130         return this.goals;
131     } //-- String getGoals()
132 
133     /**
134      * Get the id field.
135      * 
136      * @return int
137      */
138     public int getId()
139     {
140         return this.id;
141     } //-- int getId()
142 
143     /**
144      * Get the latestBuildId field.
145      * 
146      * @return int
147      */
148     public int getLatestBuildId()
149     {
150         return this.latestBuildId;
151     } //-- int getLatestBuildId()
152 
153     /**
154      * Get the schedule field.
155      * 
156      * @return Schedule
157      */
158     public Schedule getSchedule()
159     {
160         return this.schedule;
161     } //-- Schedule getSchedule()
162 
163     /**
164      * Method hashCode.
165      * 
166      * @return int
167      */
168     public int hashCode()
169     {
170         int result = 17;
171 
172         result = 37 * result + (int) id;
173 
174         return result;
175     } //-- int hashCode()
176 
177     /**
178      * Get the defaultForProject field.
179      * 
180      * @return boolean
181      */
182     public boolean isDefaultForProject()
183     {
184         return this.defaultForProject;
185     } //-- boolean isDefaultForProject()
186 
187     /**
188      * Set the arguments field.
189      * 
190      * @param arguments
191      */
192     public void setArguments( String arguments )
193     {
194         this.arguments = arguments;
195     } //-- void setArguments( String )
196 
197     /**
198      * Set the buildFile field.
199      * 
200      * @param buildFile
201      */
202     public void setBuildFile( String buildFile )
203     {
204         this.buildFile = buildFile;
205     } //-- void setBuildFile( String )
206 
207     /**
208      * Set the defaultForProject field.
209      * 
210      * @param defaultForProject
211      */
212     public void setDefaultForProject( boolean defaultForProject )
213     {
214         this.defaultForProject = defaultForProject;
215     } //-- void setDefaultForProject( boolean )
216 
217     /**
218      * Set the goals field.
219      * 
220      * @param goals
221      */
222     public void setGoals( String goals )
223     {
224         this.goals = goals;
225     } //-- void setGoals( String )
226 
227     /**
228      * Set the id field.
229      * 
230      * @param id
231      */
232     public void setId( int id )
233     {
234         this.id = id;
235     } //-- void setId( int )
236 
237     /**
238      * Set the latestBuildId field.
239      * 
240      * @param latestBuildId
241      */
242     public void setLatestBuildId( int latestBuildId )
243     {
244         this.latestBuildId = latestBuildId;
245     } //-- void setLatestBuildId( int )
246 
247     /**
248      * Set the schedule field.
249      * 
250      * @param schedule
251      */
252     public void setSchedule( Schedule schedule )
253     {
254         this.schedule = schedule;
255     } //-- void setSchedule( Schedule )
256 
257     /**
258      * Method toString.
259      * 
260      * @return String
261      */
262     public java.lang.String toString()
263     {
264         StringBuilder buf = new StringBuilder( 128 );
265 
266         buf.append( "id = '" );
267         buf.append( getId() );
268         buf.append( "'" );
269 
270         return buf.toString();
271     } //-- java.lang.String toString()
272 
273 }