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