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
29
30 @SuppressWarnings( "all" )
31 public class Schedule
32 implements java.io.Serializable
33 {
34
35
36
37
38
39
40
41
42 private int id = 0;
43
44
45
46
47 private boolean active = false;
48
49
50
51
52 private String name;
53
54
55
56
57 private String description;
58
59
60
61
62
63
64 private int delay = 0;
65
66
67
68
69
70
71
72
73 private int maxJobExecutionTime = 3600;
74
75
76
77
78 private String cronExpression;
79
80
81
82
83
84
85
86
87
88
89
90
91 public boolean equals( Object other )
92 {
93 if ( this == other )
94 {
95 return true;
96 }
97
98 if ( !( other instanceof Schedule ) )
99 {
100 return false;
101 }
102
103 Schedule that = (Schedule) other;
104 boolean result = true;
105
106 result = result && id == that.id;
107
108 return result;
109 }
110
111
112
113
114
115
116 public String getCronExpression()
117 {
118 return this.cronExpression;
119 }
120
121
122
123
124
125
126 public int getDelay()
127 {
128 return this.delay;
129 }
130
131
132
133
134
135
136 public String getDescription()
137 {
138 return this.description;
139 }
140
141
142
143
144
145
146 public int getId()
147 {
148 return this.id;
149 }
150
151
152
153
154
155
156
157 public int getMaxJobExecutionTime()
158 {
159 return this.maxJobExecutionTime;
160 }
161
162
163
164
165
166
167 public String getName()
168 {
169 return this.name;
170 }
171
172
173
174
175
176
177 public int hashCode()
178 {
179 int result = 17;
180
181 result = 37 * result + (int) id;
182
183 return result;
184 }
185
186
187
188
189
190
191 public boolean isActive()
192 {
193 return this.active;
194 }
195
196
197
198
199
200
201 public void setActive( boolean active )
202 {
203 this.active = active;
204 }
205
206
207
208
209
210
211 public void setCronExpression( String cronExpression )
212 {
213 this.cronExpression = cronExpression;
214 }
215
216
217
218
219
220
221 public void setDelay( int delay )
222 {
223 this.delay = delay;
224 }
225
226
227
228
229
230
231 public void setDescription( String description )
232 {
233 this.description = description;
234 }
235
236
237
238
239
240
241 public void setId( int id )
242 {
243 this.id = id;
244 }
245
246
247
248
249
250
251
252 public void setMaxJobExecutionTime( int maxJobExecutionTime )
253 {
254 this.maxJobExecutionTime = maxJobExecutionTime;
255 }
256
257
258
259
260
261
262 public void setName( String name )
263 {
264 this.name = name;
265 }
266
267
268
269
270
271
272 public java.lang.String toString()
273 {
274 StringBuilder buf = new StringBuilder( 128 );
275
276 buf.append( "id = '" );
277 buf.append( getId() );
278 buf.append( "'" );
279
280 return buf.toString();
281 }
282
283 }