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