View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 2.0.0,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.plugins.assembly.model;
7   
8   /**
9    * Describes the component layout and packaging.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class Component
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * Field moduleSets.
24       */
25      private java.util.List<ModuleSet> moduleSets;
26  
27      /**
28       * Field fileSets.
29       */
30      private java.util.List<FileSet> fileSets;
31  
32      /**
33       * Field files.
34       */
35      private java.util.List<FileItem> files;
36  
37      /**
38       * Field dependencySets.
39       */
40      private java.util.List<DependencySet> dependencySets;
41  
42      /**
43       * Field repositories.
44       */
45      private java.util.List<Repository> repositories;
46  
47      /**
48       * Field containerDescriptorHandlers.
49       */
50      private java.util.List<ContainerDescriptorHandlerConfig> containerDescriptorHandlers;
51  
52      /**
53       * Field modelEncoding.
54       */
55      private String modelEncoding = "UTF-8";
56  
57  
58        //-----------/
59       //- Methods -/
60      //-----------/
61  
62      /**
63       * Method addContainerDescriptorHandler.
64       * 
65       * @param containerDescriptorHandlerConfig a
66       * containerDescriptorHandlerConfig object.
67       */
68      public void addContainerDescriptorHandler( ContainerDescriptorHandlerConfig containerDescriptorHandlerConfig )
69      {
70          getContainerDescriptorHandlers().add( containerDescriptorHandlerConfig );
71      } //-- void addContainerDescriptorHandler( ContainerDescriptorHandlerConfig )
72  
73      /**
74       * Method addDependencySet.
75       * 
76       * @param dependencySet a dependencySet object.
77       */
78      public void addDependencySet( DependencySet dependencySet )
79      {
80          getDependencySets().add( dependencySet );
81      } //-- void addDependencySet( DependencySet )
82  
83      /**
84       * Method addFile.
85       * 
86       * @param fileItem a fileItem object.
87       */
88      public void addFile( FileItem fileItem )
89      {
90          getFiles().add( fileItem );
91      } //-- void addFile( FileItem )
92  
93      /**
94       * Method addFileSet.
95       * 
96       * @param fileSet a fileSet object.
97       */
98      public void addFileSet( FileSet fileSet )
99      {
100         getFileSets().add( fileSet );
101     } //-- void addFileSet( FileSet )
102 
103     /**
104      * Method addModuleSet.
105      * 
106      * @param moduleSet a moduleSet object.
107      */
108     public void addModuleSet( ModuleSet moduleSet )
109     {
110         getModuleSets().add( moduleSet );
111     } //-- void addModuleSet( ModuleSet )
112 
113     /**
114      * Method addRepository.
115      * 
116      * @param repository a repository object.
117      */
118     public void addRepository( Repository repository )
119     {
120         getRepositories().add( repository );
121     } //-- void addRepository( Repository )
122 
123     /**
124      * Method getContainerDescriptorHandlers.
125      * 
126      * @return List
127      */
128     public java.util.List<ContainerDescriptorHandlerConfig> getContainerDescriptorHandlers()
129     {
130         if ( this.containerDescriptorHandlers == null )
131         {
132             this.containerDescriptorHandlers = new java.util.ArrayList<ContainerDescriptorHandlerConfig>();
133         }
134 
135         return this.containerDescriptorHandlers;
136     } //-- java.util.List<ContainerDescriptorHandlerConfig> getContainerDescriptorHandlers()
137 
138     /**
139      * Method getDependencySets.
140      * 
141      * @return List
142      */
143     public java.util.List<DependencySet> getDependencySets()
144     {
145         if ( this.dependencySets == null )
146         {
147             this.dependencySets = new java.util.ArrayList<DependencySet>();
148         }
149 
150         return this.dependencySets;
151     } //-- java.util.List<DependencySet> getDependencySets()
152 
153     /**
154      * Method getFileSets.
155      * 
156      * @return List
157      */
158     public java.util.List<FileSet> getFileSets()
159     {
160         if ( this.fileSets == null )
161         {
162             this.fileSets = new java.util.ArrayList<FileSet>();
163         }
164 
165         return this.fileSets;
166     } //-- java.util.List<FileSet> getFileSets()
167 
168     /**
169      * Method getFiles.
170      * 
171      * @return List
172      */
173     public java.util.List<FileItem> getFiles()
174     {
175         if ( this.files == null )
176         {
177             this.files = new java.util.ArrayList<FileItem>();
178         }
179 
180         return this.files;
181     } //-- java.util.List<FileItem> getFiles()
182 
183     /**
184      * Get the modelEncoding field.
185      * 
186      * @return String
187      */
188     public String getModelEncoding()
189     {
190         return this.modelEncoding;
191     } //-- String getModelEncoding()
192 
193     /**
194      * Method getModuleSets.
195      * 
196      * @return List
197      */
198     public java.util.List<ModuleSet> getModuleSets()
199     {
200         if ( this.moduleSets == null )
201         {
202             this.moduleSets = new java.util.ArrayList<ModuleSet>();
203         }
204 
205         return this.moduleSets;
206     } //-- java.util.List<ModuleSet> getModuleSets()
207 
208     /**
209      * Method getRepositories.
210      * 
211      * @return List
212      */
213     public java.util.List<Repository> getRepositories()
214     {
215         if ( this.repositories == null )
216         {
217             this.repositories = new java.util.ArrayList<Repository>();
218         }
219 
220         return this.repositories;
221     } //-- java.util.List<Repository> getRepositories()
222 
223     /**
224      * Method removeContainerDescriptorHandler.
225      * 
226      * @param containerDescriptorHandlerConfig a
227      * containerDescriptorHandlerConfig object.
228      */
229     public void removeContainerDescriptorHandler( ContainerDescriptorHandlerConfig containerDescriptorHandlerConfig )
230     {
231         getContainerDescriptorHandlers().remove( containerDescriptorHandlerConfig );
232     } //-- void removeContainerDescriptorHandler( ContainerDescriptorHandlerConfig )
233 
234     /**
235      * Method removeDependencySet.
236      * 
237      * @param dependencySet a dependencySet object.
238      */
239     public void removeDependencySet( DependencySet dependencySet )
240     {
241         getDependencySets().remove( dependencySet );
242     } //-- void removeDependencySet( DependencySet )
243 
244     /**
245      * Method removeFile.
246      * 
247      * @param fileItem a fileItem object.
248      */
249     public void removeFile( FileItem fileItem )
250     {
251         getFiles().remove( fileItem );
252     } //-- void removeFile( FileItem )
253 
254     /**
255      * Method removeFileSet.
256      * 
257      * @param fileSet a fileSet object.
258      */
259     public void removeFileSet( FileSet fileSet )
260     {
261         getFileSets().remove( fileSet );
262     } //-- void removeFileSet( FileSet )
263 
264     /**
265      * Method removeModuleSet.
266      * 
267      * @param moduleSet a moduleSet object.
268      */
269     public void removeModuleSet( ModuleSet moduleSet )
270     {
271         getModuleSets().remove( moduleSet );
272     } //-- void removeModuleSet( ModuleSet )
273 
274     /**
275      * Method removeRepository.
276      * 
277      * @param repository a repository object.
278      */
279     public void removeRepository( Repository repository )
280     {
281         getRepositories().remove( repository );
282     } //-- void removeRepository( Repository )
283 
284     /**
285      * Set set of components which filter various container
286      * descriptors out of
287      *             the normal archive stream, so they can be
288      * aggregated then added.
289      * 
290      * @param containerDescriptorHandlers a
291      * containerDescriptorHandlers object.
292      */
293     public void setContainerDescriptorHandlers( java.util.List<ContainerDescriptorHandlerConfig> containerDescriptorHandlers )
294     {
295         this.containerDescriptorHandlers = containerDescriptorHandlers;
296     } //-- void setContainerDescriptorHandlers( java.util.List )
297 
298     /**
299      * Set specifies which dependencies to include in the assembly.
300      * A
301      *             dependencySet is specified by providing one or
302      * more of
303      *             &lt;dependencySet&gt; subelements.
304      * 
305      * @param dependencySets a dependencySets object.
306      */
307     public void setDependencySets( java.util.List<DependencySet> dependencySets )
308     {
309         this.dependencySets = dependencySets;
310     } //-- void setDependencySets( java.util.List )
311 
312     /**
313      * Set specifies which groups of files to include in the
314      * assembly. A
315      *             fileSet is specified by providing one or more of
316      * &lt;fileSet&gt;
317      *             subelements.
318      * 
319      * @param fileSets a fileSets object.
320      */
321     public void setFileSets( java.util.List<FileSet> fileSets )
322     {
323         this.fileSets = fileSets;
324     } //-- void setFileSets( java.util.List )
325 
326     /**
327      * Set specifies which single files to include in the assembly.
328      * A file
329      *             is specified by providing one or more of
330      * &lt;file&gt;
331      *             subelements.
332      * 
333      * @param files a files object.
334      */
335     public void setFiles( java.util.List<FileItem> files )
336     {
337         this.files = files;
338     } //-- void setFiles( java.util.List )
339 
340     /**
341      * Set the modelEncoding field.
342      * 
343      * @param modelEncoding a modelEncoding object.
344      */
345     public void setModelEncoding( String modelEncoding )
346     {
347         this.modelEncoding = modelEncoding;
348     } //-- void setModelEncoding( String )
349 
350     /**
351      * Set specifies which module files to include in the assembly.
352      * A moduleSet
353      *             is specified by providing one or more of
354      * &lt;moduleSet&gt;
355      *             subelements.
356      * 
357      * @param moduleSets a moduleSets object.
358      */
359     public void setModuleSets( java.util.List<ModuleSet> moduleSets )
360     {
361         this.moduleSets = moduleSets;
362     } //-- void setModuleSets( java.util.List )
363 
364     /**
365      * Set <b>Deprecated since model version 2.1.1</b>.
366      *             Specifies a set of repositories to include in
367      * the assembly. A
368      *             repository is specified by providing one or more
369      * of
370      *             &lt;repository&gt; subelements.
371      * 
372      * @param repositories a repositories object.
373      */
374     public void setRepositories( java.util.List<Repository> repositories )
375     {
376         this.repositories = repositories;
377     } //-- void setRepositories( java.util.List )
378 
379 }