View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.8.3,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.archetype.model;
7   
8   /**
9    * Describes the assembly layout and packaging.
10   * 
11   * @version $Revision: 942523 $ $Date: 2015-03-06 00:20:33 +0000 (Fri, 06 Mar 2015) $
12   */
13  @SuppressWarnings( "all" )
14  public class ArchetypeModel
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * The value should be the same as the artifactId in the
24       * archetype <code>pom.xml</code>.
25       */
26      private String id;
27  
28      /**
29       * Setting this option to <code>true</code> makes it possible
30       * to run the
31       *             <code>archetype:create</code> even on existing
32       * projects.
33       */
34      private boolean allowPartial = false;
35  
36      /**
37       * Field sources.
38       */
39      private java.util.List<Source> sources;
40  
41      /**
42       * Field resources.
43       */
44      private java.util.List<Resource> resources;
45  
46      /**
47       * Field testSources.
48       */
49      private java.util.List<Source> testSources;
50  
51      /**
52       * Field testResources.
53       */
54      private java.util.List<Resource> testResources;
55  
56      /**
57       * Field siteResources.
58       */
59      private java.util.List<Resource> siteResources;
60  
61      /**
62       * Field modelEncoding.
63       */
64      private String modelEncoding = "UTF-8";
65  
66  
67        //-----------/
68       //- Methods -/
69      //-----------/
70  
71      /**
72       * Method addResource.
73       * 
74       * @param resource
75       */
76      public void addResource( Resource resource )
77      {
78          getResources().add( resource );
79      } //-- void addResource( Resource )
80  
81      /**
82       * Method addSiteResource.
83       * 
84       * @param resource
85       */
86      public void addSiteResource( Resource resource )
87      {
88          getSiteResources().add( resource );
89      } //-- void addSiteResource( Resource )
90  
91      /**
92       * Method addSource.
93       * 
94       * @param source
95       */
96      public void addSource( Source source )
97      {
98          getSources().add( source );
99      } //-- void addSource( Source )
100 
101     /**
102      * Method addTestResource.
103      * 
104      * @param resource
105      */
106     public void addTestResource( Resource resource )
107     {
108         getTestResources().add( resource );
109     } //-- void addTestResource( Resource )
110 
111     /**
112      * Method addTestSource.
113      * 
114      * @param source
115      */
116     public void addTestSource( Source source )
117     {
118         getTestSources().add( source );
119     } //-- void addTestSource( Source )
120 
121     /**
122      * Get the value should be the same as the artifactId in the
123      * archetype <code>pom.xml</code>.
124      * 
125      * @return String
126      */
127     public String getId()
128     {
129         return this.id;
130     } //-- String getId()
131 
132     /**
133      * Get the modelEncoding field.
134      * 
135      * @return String
136      */
137     public String getModelEncoding()
138     {
139         return this.modelEncoding;
140     } //-- String getModelEncoding()
141 
142     /**
143      * Method getResources.
144      * 
145      * @return List
146      */
147     public java.util.List<Resource> getResources()
148     {
149         if ( this.resources == null )
150         {
151             this.resources = new java.util.ArrayList<Resource>();
152         }
153 
154         return this.resources;
155     } //-- java.util.List<Resource> getResources()
156 
157     /**
158      * Method getSiteResources.
159      * 
160      * @return List
161      */
162     public java.util.List<Resource> getSiteResources()
163     {
164         if ( this.siteResources == null )
165         {
166             this.siteResources = new java.util.ArrayList<Resource>();
167         }
168 
169         return this.siteResources;
170     } //-- java.util.List<Resource> getSiteResources()
171 
172     /**
173      * Method getSources.
174      * 
175      * @return List
176      */
177     public java.util.List<Source> getSources()
178     {
179         if ( this.sources == null )
180         {
181             this.sources = new java.util.ArrayList<Source>();
182         }
183 
184         return this.sources;
185     } //-- java.util.List<Source> getSources()
186 
187     /**
188      * Method getTestResources.
189      * 
190      * @return List
191      */
192     public java.util.List<Resource> getTestResources()
193     {
194         if ( this.testResources == null )
195         {
196             this.testResources = new java.util.ArrayList<Resource>();
197         }
198 
199         return this.testResources;
200     } //-- java.util.List<Resource> getTestResources()
201 
202     /**
203      * Method getTestSources.
204      * 
205      * @return List
206      */
207     public java.util.List<Source> getTestSources()
208     {
209         if ( this.testSources == null )
210         {
211             this.testSources = new java.util.ArrayList<Source>();
212         }
213 
214         return this.testSources;
215     } //-- java.util.List<Source> getTestSources()
216 
217     /**
218      * Get setting this option to <code>true</code> makes it
219      * possible to run the
220      *             <code>archetype:create</code> even on existing
221      * projects.
222      * 
223      * @return boolean
224      */
225     public boolean isAllowPartial()
226     {
227         return this.allowPartial;
228     } //-- boolean isAllowPartial()
229 
230     /**
231      * Method removeResource.
232      * 
233      * @param resource
234      */
235     public void removeResource( Resource resource )
236     {
237         getResources().remove( resource );
238     } //-- void removeResource( Resource )
239 
240     /**
241      * Method removeSiteResource.
242      * 
243      * @param resource
244      */
245     public void removeSiteResource( Resource resource )
246     {
247         getSiteResources().remove( resource );
248     } //-- void removeSiteResource( Resource )
249 
250     /**
251      * Method removeSource.
252      * 
253      * @param source
254      */
255     public void removeSource( Source source )
256     {
257         getSources().remove( source );
258     } //-- void removeSource( Source )
259 
260     /**
261      * Method removeTestResource.
262      * 
263      * @param resource
264      */
265     public void removeTestResource( Resource resource )
266     {
267         getTestResources().remove( resource );
268     } //-- void removeTestResource( Resource )
269 
270     /**
271      * Method removeTestSource.
272      * 
273      * @param source
274      */
275     public void removeTestSource( Source source )
276     {
277         getTestSources().remove( source );
278     } //-- void removeTestSource( Source )
279 
280     /**
281      * Set setting this option to <code>true</code> makes it
282      * possible to run the
283      *             <code>archetype:create</code> even on existing
284      * projects.
285      * 
286      * @param allowPartial
287      */
288     public void setAllowPartial( boolean allowPartial )
289     {
290         this.allowPartial = allowPartial;
291     } //-- void setAllowPartial( boolean )
292 
293     /**
294      * Set the value should be the same as the artifactId in the
295      * archetype <code>pom.xml</code>.
296      * 
297      * @param id
298      */
299     public void setId( String id )
300     {
301         this.id = id;
302     } //-- void setId( String )
303 
304     /**
305      * Set the modelEncoding field.
306      * 
307      * @param modelEncoding
308      */
309     public void setModelEncoding( String modelEncoding )
310     {
311         this.modelEncoding = modelEncoding;
312     } //-- void setModelEncoding( String )
313 
314     /**
315      * Set files that will go into <code>src/main/resources</code>.
316      * 
317      * @param resources
318      */
319     public void setResources( java.util.List<Resource> resources )
320     {
321         this.resources = resources;
322     } //-- void setResources( java.util.List )
323 
324     /**
325      * Set files that will go into <code>src/site</code>.
326      * 
327      * @param siteResources
328      */
329     public void setSiteResources( java.util.List<Resource> siteResources )
330     {
331         this.siteResources = siteResources;
332     } //-- void setSiteResources( java.util.List )
333 
334     /**
335      * Set files that will go into <code>src/main/java</code>.
336      * 
337      * @param sources
338      */
339     public void setSources( java.util.List<Source> sources )
340     {
341         this.sources = sources;
342     } //-- void setSources( java.util.List )
343 
344     /**
345      * Set files that will go into <code>src/test/resources</code>.
346      * 
347      * @param testResources
348      */
349     public void setTestResources( java.util.List<Resource> testResources )
350     {
351         this.testResources = testResources;
352     } //-- void setTestResources( java.util.List )
353 
354     /**
355      * Set files that will go into <code>src/test/java</code>.
356      * 
357      * @param testSources
358      */
359     public void setTestSources( java.util.List<Source> testSources )
360     {
361         this.testSources = testSources;
362     } //-- void setTestSources( java.util.List )
363 
364 }