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