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