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.config;
7   
8   /**
9    * Class Configuration.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class Configuration
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * Field enabled.
24       */
25      private boolean enabled = true;
26  
27      /**
28       * One of XX, XXMM, METRO, METRO+MM, SHA-1, SHA-256, SHA-384,
29       * SHA-512.
30       */
31      private String hashAlgorithm = "XX";
32  
33      /**
34       * Validate cache config and builds metadata against xsd.
35       *                         TODO: not implemented
36       *                     .
37       */
38      private boolean validateXml = false;
39  
40      /**
41       * Enable the cache storing ability only if a build went
42       * through the clean lifecycle.
43       */
44      private boolean mandatoryClean = false;
45  
46      /**
47       * Specifies related to multi module projects configuration.
48       */
49      private MultiModule multiModule;
50  
51      /**
52       * Specifies parameters to handle project version changes.
53       */
54      private ProjectVersioning projectVersioning;
55  
56      /**
57       * Field remote.
58       */
59      private Remote remote;
60  
61      /**
62       * Field attachedOutputs.
63       */
64      private AttachedOutputs attachedOutputs;
65  
66      /**
67       * Field local.
68       */
69      private Local local;
70  
71      /**
72       * Field debugs.
73       */
74      private java.util.List<String> debugs;
75  
76  
77        //-----------/
78       //- Methods -/
79      //-----------/
80  
81      /**
82       * Method addDebug.
83       * 
84       * @param string a string object.
85       */
86      public void addDebug( String string )
87      {
88          getDebugs().add( string );
89      } //-- void addDebug( String )
90  
91      /**
92       * Get the attachedOutputs field.
93       * 
94       * @return AttachedOutputs
95       */
96      public AttachedOutputs getAttachedOutputs()
97      {
98          return this.attachedOutputs;
99      } //-- AttachedOutputs getAttachedOutputs()
100 
101     /**
102      * Method getDebugs.
103      * 
104      * @return List
105      */
106     public java.util.List<String> getDebugs()
107     {
108         if ( this.debugs == null )
109         {
110             this.debugs = new java.util.ArrayList<String>();
111         }
112 
113         return this.debugs;
114     } //-- java.util.List<String> getDebugs()
115 
116     /**
117      * Get one of XX, XXMM, METRO, METRO+MM, SHA-1, SHA-256,
118      * SHA-384, SHA-512.
119      * 
120      * @return String
121      */
122     public String getHashAlgorithm()
123     {
124         return this.hashAlgorithm;
125     } //-- String getHashAlgorithm()
126 
127     /**
128      * Get the local field.
129      * 
130      * @return Local
131      */
132     public Local getLocal()
133     {
134         return this.local;
135     } //-- Local getLocal()
136 
137     /**
138      * Get specifies related to multi module projects
139      * configuration.
140      * 
141      * @return MultiModule
142      */
143     public MultiModule getMultiModule()
144     {
145         return this.multiModule;
146     } //-- MultiModule getMultiModule()
147 
148     /**
149      * Get specifies parameters to handle project version changes.
150      * 
151      * @return ProjectVersioning
152      */
153     public ProjectVersioning getProjectVersioning()
154     {
155         return this.projectVersioning;
156     } //-- ProjectVersioning getProjectVersioning()
157 
158     /**
159      * Get the remote field.
160      * 
161      * @return Remote
162      */
163     public Remote getRemote()
164     {
165         return this.remote;
166     } //-- Remote getRemote()
167 
168     /**
169      * Get the enabled field.
170      * 
171      * @return boolean
172      */
173     public boolean isEnabled()
174     {
175         return this.enabled;
176     } //-- boolean isEnabled()
177 
178     /**
179      * Get enable the cache storing ability only if a build went
180      * through the clean lifecycle.
181      * 
182      * @return boolean
183      */
184     public boolean isMandatoryClean()
185     {
186         return this.mandatoryClean;
187     } //-- boolean isMandatoryClean()
188 
189     /**
190      * Get validate cache config and builds metadata against xsd.
191      *                         TODO: not implemented.
192      * 
193      * @return boolean
194      */
195     public boolean isValidateXml()
196     {
197         return this.validateXml;
198     } //-- boolean isValidateXml()
199 
200     /**
201      * Method removeDebug.
202      * 
203      * @param string a string object.
204      */
205     public void removeDebug( String string )
206     {
207         getDebugs().remove( string );
208     } //-- void removeDebug( String )
209 
210     /**
211      * Set the attachedOutputs field.
212      * 
213      * @param attachedOutputs a attachedOutputs object.
214      */
215     public void setAttachedOutputs( AttachedOutputs attachedOutputs )
216     {
217         this.attachedOutputs = attachedOutputs;
218     } //-- void setAttachedOutputs( AttachedOutputs )
219 
220     /**
221      * Set fileHash (causes file hash is saved in build metadata)
222      * or
223      *                         EffectivePom (causes effective pom
224      * info is saved in build metadata).
225      * 
226      * @param debugs a debugs object.
227      */
228     public void setDebugs( java.util.List<String> debugs )
229     {
230         this.debugs = debugs;
231     } //-- void setDebugs( java.util.List )
232 
233     /**
234      * Set the enabled field.
235      * 
236      * @param enabled a enabled object.
237      */
238     public void setEnabled( boolean enabled )
239     {
240         this.enabled = enabled;
241     } //-- void setEnabled( boolean )
242 
243     /**
244      * Set one of XX, XXMM, METRO, METRO+MM, SHA-1, SHA-256,
245      * SHA-384, SHA-512.
246      * 
247      * @param hashAlgorithm a hashAlgorithm object.
248      */
249     public void setHashAlgorithm( String hashAlgorithm )
250     {
251         this.hashAlgorithm = hashAlgorithm;
252     } //-- void setHashAlgorithm( String )
253 
254     /**
255      * Set the local field.
256      * 
257      * @param local a local object.
258      */
259     public void setLocal( Local local )
260     {
261         this.local = local;
262     } //-- void setLocal( Local )
263 
264     /**
265      * Set enable the cache storing ability only if a build went
266      * through the clean lifecycle.
267      * 
268      * @param mandatoryClean a mandatoryClean object.
269      */
270     public void setMandatoryClean( boolean mandatoryClean )
271     {
272         this.mandatoryClean = mandatoryClean;
273     } //-- void setMandatoryClean( boolean )
274 
275     /**
276      * Set specifies related to multi module projects
277      * configuration.
278      * 
279      * @param multiModule a multiModule object.
280      */
281     public void setMultiModule( MultiModule multiModule )
282     {
283         this.multiModule = multiModule;
284     } //-- void setMultiModule( MultiModule )
285 
286     /**
287      * Set specifies parameters to handle project version changes.
288      * 
289      * @param projectVersioning a projectVersioning object.
290      */
291     public void setProjectVersioning( ProjectVersioning projectVersioning )
292     {
293         this.projectVersioning = projectVersioning;
294     } //-- void setProjectVersioning( ProjectVersioning )
295 
296     /**
297      * Set the remote field.
298      * 
299      * @param remote a remote object.
300      */
301     public void setRemote( Remote remote )
302     {
303         this.remote = remote;
304     } //-- void setRemote( Remote )
305 
306     /**
307      * Set validate cache config and builds metadata against xsd.
308      *                         TODO: not implemented.
309      * 
310      * @param validateXml a validateXml object.
311      */
312     public void setValidateXml( boolean validateXml )
313     {
314         this.validateXml = validateXml;
315     } //-- void setValidateXml( boolean )
316 
317 }