1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.apache.maven.buildcache.xml.build;
25
26
27
28
29
30
31 @SuppressWarnings( "all" )
32 public class Build
33 implements java.io.Serializable
34 {
35
36
37
38
39
40
41
42
43 private String cacheImplementationVersion;
44
45
46
47
48 private Boolean _final;
49
50
51
52
53 private String hashFunction;
54
55
56
57
58 private java.util.Date buildTime;
59
60
61
62
63 private String buildServer;
64
65
66
67
68 private Scm scm;
69
70
71
72
73 private java.util.List<String> goals;
74
75
76
77
78 private Artifact artifact;
79
80
81
82
83 private java.util.List<Artifact> attachedArtifacts;
84
85
86
87
88 private java.util.List<CompletedExecution> executions;
89
90
91
92
93 private ProjectsInputInfo projectsInputInfo;
94
95
96
97
98 private String modelEncoding = "UTF-8";
99
100
101
102
103
104
105
106
107
108
109
110 public void addAttachedArtifact( Artifact artifact )
111 {
112 getAttachedArtifacts().add( artifact );
113 }
114
115
116
117
118
119
120 public void addExecution( CompletedExecution completedExecution )
121 {
122 getExecutions().add( completedExecution );
123 }
124
125
126
127
128
129
130 public void addGoal( String string )
131 {
132 getGoals().add( string );
133 }
134
135
136
137
138
139
140 public Artifact getArtifact()
141 {
142 return this.artifact;
143 }
144
145
146
147
148
149
150 public java.util.List<Artifact> getAttachedArtifacts()
151 {
152 if ( this.attachedArtifacts == null )
153 {
154 this.attachedArtifacts = new java.util.ArrayList<Artifact>();
155 }
156
157 return this.attachedArtifacts;
158 }
159
160
161
162
163
164
165 public String getBuildServer()
166 {
167 return this.buildServer;
168 }
169
170
171
172
173
174
175 public java.util.Date getBuildTime()
176 {
177 return this.buildTime;
178 }
179
180
181
182
183
184
185 public String getCacheImplementationVersion()
186 {
187 return this.cacheImplementationVersion;
188 }
189
190
191
192
193
194
195 public java.util.List<CompletedExecution> getExecutions()
196 {
197 if ( this.executions == null )
198 {
199 this.executions = new java.util.ArrayList<CompletedExecution>();
200 }
201
202 return this.executions;
203 }
204
205
206
207
208
209
210 public java.util.List<String> getGoals()
211 {
212 if ( this.goals == null )
213 {
214 this.goals = new java.util.ArrayList<String>();
215 }
216
217 return this.goals;
218 }
219
220
221
222
223
224
225 public String getHashFunction()
226 {
227 return this.hashFunction;
228 }
229
230
231
232
233
234
235 public String getModelEncoding()
236 {
237 return this.modelEncoding;
238 }
239
240
241
242
243
244
245 public ProjectsInputInfo getProjectsInputInfo()
246 {
247 return this.projectsInputInfo;
248 }
249
250
251
252
253
254
255 public Scm getScm()
256 {
257 return this.scm;
258 }
259
260
261
262
263
264
265 public Boolean is_final()
266 {
267 return this._final;
268 }
269
270
271
272
273
274
275 public void removeAttachedArtifact( Artifact artifact )
276 {
277 getAttachedArtifacts().remove( artifact );
278 }
279
280
281
282
283
284
285 public void removeExecution( CompletedExecution completedExecution )
286 {
287 getExecutions().remove( completedExecution );
288 }
289
290
291
292
293
294
295 public void removeGoal( String string )
296 {
297 getGoals().remove( string );
298 }
299
300
301
302
303
304
305 public void setArtifact( Artifact artifact )
306 {
307 this.artifact = artifact;
308 }
309
310
311
312
313
314
315 public void setAttachedArtifacts( java.util.List<Artifact> attachedArtifacts )
316 {
317 this.attachedArtifacts = attachedArtifacts;
318 }
319
320
321
322
323
324
325 public void setBuildServer( String buildServer )
326 {
327 this.buildServer = buildServer;
328 }
329
330
331
332
333
334
335 public void setBuildTime( java.util.Date buildTime )
336 {
337 this.buildTime = buildTime;
338 }
339
340
341
342
343
344
345
346 public void setCacheImplementationVersion( String cacheImplementationVersion )
347 {
348 this.cacheImplementationVersion = cacheImplementationVersion;
349 }
350
351
352
353
354
355
356 public void setExecutions( java.util.List<CompletedExecution> executions )
357 {
358 this.executions = executions;
359 }
360
361
362
363
364
365
366 public void setGoals( java.util.List<String> goals )
367 {
368 this.goals = goals;
369 }
370
371
372
373
374
375
376 public void setHashFunction( String hashFunction )
377 {
378 this.hashFunction = hashFunction;
379 }
380
381
382
383
384
385
386 public void setModelEncoding( String modelEncoding )
387 {
388 this.modelEncoding = modelEncoding;
389 }
390
391
392
393
394
395
396 public void setProjectsInputInfo( ProjectsInputInfo projectsInputInfo )
397 {
398 this.projectsInputInfo = projectsInputInfo;
399 }
400
401
402
403
404
405
406 public void setScm( Scm scm )
407 {
408 this.scm = scm;
409 }
410
411
412
413
414
415
416 public void set_final( Boolean _final )
417 {
418 this._final = _final;
419 }
420
421 }