1
2
3
4
5
6
7
8 package org.apache.maven.continuum.model.project.v1_0_9;
9
10
11
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
25
26
27
28 @SuppressWarnings( "all" )
29 public class BuildDefinition
30 implements java.io.Serializable
31 {
32
33
34
35
36
37
38
39
40 private int id = 0;
41
42
43
44
45 private boolean defaultForProject = false;
46
47
48
49
50 private String goals;
51
52
53
54
55 private String arguments;
56
57
58
59
60 private String buildFile;
61
62
63
64
65 private Schedule schedule;
66
67
68
69
70 private int latestBuildId = 0;
71
72
73
74
75
76
77
78
79
80
81
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 }
102
103
104
105
106
107
108 public String getArguments()
109 {
110 return this.arguments;
111 }
112
113
114
115
116
117
118 public String getBuildFile()
119 {
120 return this.buildFile;
121 }
122
123
124
125
126
127
128 public String getGoals()
129 {
130 return this.goals;
131 }
132
133
134
135
136
137
138 public int getId()
139 {
140 return this.id;
141 }
142
143
144
145
146
147
148 public int getLatestBuildId()
149 {
150 return this.latestBuildId;
151 }
152
153
154
155
156
157
158 public Schedule getSchedule()
159 {
160 return this.schedule;
161 }
162
163
164
165
166
167
168 public int hashCode()
169 {
170 int result = 17;
171
172 result = 37 * result + (int) id;
173
174 return result;
175 }
176
177
178
179
180
181
182 public boolean isDefaultForProject()
183 {
184 return this.defaultForProject;
185 }
186
187
188
189
190
191
192 public void setArguments( String arguments )
193 {
194 this.arguments = arguments;
195 }
196
197
198
199
200
201
202 public void setBuildFile( String buildFile )
203 {
204 this.buildFile = buildFile;
205 }
206
207
208
209
210
211
212 public void setDefaultForProject( boolean defaultForProject )
213 {
214 this.defaultForProject = defaultForProject;
215 }
216
217
218
219
220
221
222 public void setGoals( String goals )
223 {
224 this.goals = goals;
225 }
226
227
228
229
230
231
232 public void setId( int id )
233 {
234 this.id = id;
235 }
236
237
238
239
240
241
242 public void setLatestBuildId( int latestBuildId )
243 {
244 this.latestBuildId = latestBuildId;
245 }
246
247
248
249
250
251
252 public void setSchedule( Schedule schedule )
253 {
254 this.schedule = schedule;
255 }
256
257
258
259
260
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 }
272
273 }