View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.5.1,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.buildcache.xml.build;
25  
26  /**
27   * Class Build.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class Build
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * Field cacheImplementationVersion.
42       */
43      private String cacheImplementationVersion;
44  
45      /**
46       * Field _final.
47       */
48      private Boolean _final;
49  
50      /**
51       * Field hashFunction.
52       */
53      private String hashFunction;
54  
55      /**
56       * Field buildTime.
57       */
58      private java.util.Date buildTime;
59  
60      /**
61       * Field buildServer.
62       */
63      private String buildServer;
64  
65      /**
66       * Field scm.
67       */
68      private Scm scm;
69  
70      /**
71       * Field goals.
72       */
73      private java.util.List<String> goals;
74  
75      /**
76       * Field artifact.
77       */
78      private Artifact artifact;
79  
80      /**
81       * Field attachedArtifacts.
82       */
83      private java.util.List<Artifact> attachedArtifacts;
84  
85      /**
86       * Field executions.
87       */
88      private java.util.List<CompletedExecution> executions;
89  
90      /**
91       * Field projectsInputInfo.
92       */
93      private ProjectsInputInfo projectsInputInfo;
94  
95      /**
96       * Field modelEncoding.
97       */
98      private String modelEncoding = "UTF-8";
99  
100 
101       //-----------/
102      //- Methods -/
103     //-----------/
104 
105     /**
106      * Method addAttachedArtifact.
107      * 
108      * @param artifact a artifact object.
109      */
110     public void addAttachedArtifact( Artifact artifact )
111     {
112         getAttachedArtifacts().add( artifact );
113     } //-- void addAttachedArtifact( Artifact )
114 
115     /**
116      * Method addExecution.
117      * 
118      * @param completedExecution a completedExecution object.
119      */
120     public void addExecution( CompletedExecution completedExecution )
121     {
122         getExecutions().add( completedExecution );
123     } //-- void addExecution( CompletedExecution )
124 
125     /**
126      * Method addGoal.
127      * 
128      * @param string a string object.
129      */
130     public void addGoal( String string )
131     {
132         getGoals().add( string );
133     } //-- void addGoal( String )
134 
135     /**
136      * Get the artifact field.
137      * 
138      * @return Artifact
139      */
140     public Artifact getArtifact()
141     {
142         return this.artifact;
143     } //-- Artifact getArtifact()
144 
145     /**
146      * Method getAttachedArtifacts.
147      * 
148      * @return List
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     } //-- java.util.List<Artifact> getAttachedArtifacts()
159 
160     /**
161      * Get the buildServer field.
162      * 
163      * @return String
164      */
165     public String getBuildServer()
166     {
167         return this.buildServer;
168     } //-- String getBuildServer()
169 
170     /**
171      * Get the buildTime field.
172      * 
173      * @return Date
174      */
175     public java.util.Date getBuildTime()
176     {
177         return this.buildTime;
178     } //-- java.util.Date getBuildTime()
179 
180     /**
181      * Get the cacheImplementationVersion field.
182      * 
183      * @return String
184      */
185     public String getCacheImplementationVersion()
186     {
187         return this.cacheImplementationVersion;
188     } //-- String getCacheImplementationVersion()
189 
190     /**
191      * Method getExecutions.
192      * 
193      * @return List
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     } //-- java.util.List<CompletedExecution> getExecutions()
204 
205     /**
206      * Method getGoals.
207      * 
208      * @return List
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     } //-- java.util.List<String> getGoals()
219 
220     /**
221      * Get the hashFunction field.
222      * 
223      * @return String
224      */
225     public String getHashFunction()
226     {
227         return this.hashFunction;
228     } //-- String getHashFunction()
229 
230     /**
231      * Get the modelEncoding field.
232      * 
233      * @return String
234      */
235     public String getModelEncoding()
236     {
237         return this.modelEncoding;
238     } //-- String getModelEncoding()
239 
240     /**
241      * Get the projectsInputInfo field.
242      * 
243      * @return ProjectsInputInfo
244      */
245     public ProjectsInputInfo getProjectsInputInfo()
246     {
247         return this.projectsInputInfo;
248     } //-- ProjectsInputInfo getProjectsInputInfo()
249 
250     /**
251      * Get the scm field.
252      * 
253      * @return Scm
254      */
255     public Scm getScm()
256     {
257         return this.scm;
258     } //-- Scm getScm()
259 
260     /**
261      * Get the _final field.
262      * 
263      * @return Boolean
264      */
265     public Boolean is_final()
266     {
267         return this._final;
268     } //-- Boolean is_final()
269 
270     /**
271      * Method removeAttachedArtifact.
272      * 
273      * @param artifact a artifact object.
274      */
275     public void removeAttachedArtifact( Artifact artifact )
276     {
277         getAttachedArtifacts().remove( artifact );
278     } //-- void removeAttachedArtifact( Artifact )
279 
280     /**
281      * Method removeExecution.
282      * 
283      * @param completedExecution a completedExecution object.
284      */
285     public void removeExecution( CompletedExecution completedExecution )
286     {
287         getExecutions().remove( completedExecution );
288     } //-- void removeExecution( CompletedExecution )
289 
290     /**
291      * Method removeGoal.
292      * 
293      * @param string a string object.
294      */
295     public void removeGoal( String string )
296     {
297         getGoals().remove( string );
298     } //-- void removeGoal( String )
299 
300     /**
301      * Set the artifact field.
302      * 
303      * @param artifact a artifact object.
304      */
305     public void setArtifact( Artifact artifact )
306     {
307         this.artifact = artifact;
308     } //-- void setArtifact( Artifact )
309 
310     /**
311      * Set the attachedArtifacts field.
312      * 
313      * @param attachedArtifacts a attachedArtifacts object.
314      */
315     public void setAttachedArtifacts( java.util.List<Artifact> attachedArtifacts )
316     {
317         this.attachedArtifacts = attachedArtifacts;
318     } //-- void setAttachedArtifacts( java.util.List )
319 
320     /**
321      * Set the buildServer field.
322      * 
323      * @param buildServer a buildServer object.
324      */
325     public void setBuildServer( String buildServer )
326     {
327         this.buildServer = buildServer;
328     } //-- void setBuildServer( String )
329 
330     /**
331      * Set the buildTime field.
332      * 
333      * @param buildTime a buildTime object.
334      */
335     public void setBuildTime( java.util.Date buildTime )
336     {
337         this.buildTime = buildTime;
338     } //-- void setBuildTime( java.util.Date )
339 
340     /**
341      * Set the cacheImplementationVersion field.
342      * 
343      * @param cacheImplementationVersion a
344      * cacheImplementationVersion object.
345      */
346     public void setCacheImplementationVersion( String cacheImplementationVersion )
347     {
348         this.cacheImplementationVersion = cacheImplementationVersion;
349     } //-- void setCacheImplementationVersion( String )
350 
351     /**
352      * Set the executions field.
353      * 
354      * @param executions a executions object.
355      */
356     public void setExecutions( java.util.List<CompletedExecution> executions )
357     {
358         this.executions = executions;
359     } //-- void setExecutions( java.util.List )
360 
361     /**
362      * Set the goals field.
363      * 
364      * @param goals a goals object.
365      */
366     public void setGoals( java.util.List<String> goals )
367     {
368         this.goals = goals;
369     } //-- void setGoals( java.util.List )
370 
371     /**
372      * Set the hashFunction field.
373      * 
374      * @param hashFunction a hashFunction object.
375      */
376     public void setHashFunction( String hashFunction )
377     {
378         this.hashFunction = hashFunction;
379     } //-- void setHashFunction( String )
380 
381     /**
382      * Set the modelEncoding field.
383      * 
384      * @param modelEncoding a modelEncoding object.
385      */
386     public void setModelEncoding( String modelEncoding )
387     {
388         this.modelEncoding = modelEncoding;
389     } //-- void setModelEncoding( String )
390 
391     /**
392      * Set the projectsInputInfo field.
393      * 
394      * @param projectsInputInfo a projectsInputInfo object.
395      */
396     public void setProjectsInputInfo( ProjectsInputInfo projectsInputInfo )
397     {
398         this.projectsInputInfo = projectsInputInfo;
399     } //-- void setProjectsInputInfo( ProjectsInputInfo )
400 
401     /**
402      * Set the scm field.
403      * 
404      * @param scm a scm object.
405      */
406     public void setScm( Scm scm )
407     {
408         this.scm = scm;
409     } //-- void setScm( Scm )
410 
411     /**
412      * Set the _final field.
413      * 
414      * @param _final a _final object.
415      */
416     public void set_final( Boolean _final )
417     {
418         this._final = _final;
419     } //-- void set_final( Boolean )
420 
421 }