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.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
66       */
67      public void addContainerDescriptorHandler( ContainerDescriptorHandlerConfig containerDescriptorHandlerConfig )
68      {
69          getContainerDescriptorHandlers().add( containerDescriptorHandlerConfig );
70      } //-- void addContainerDescriptorHandler( ContainerDescriptorHandlerConfig )
71  
72      /**
73       * Method addDependencySet.
74       * 
75       * @param dependencySet
76       */
77      public void addDependencySet( DependencySet dependencySet )
78      {
79          getDependencySets().add( dependencySet );
80      } //-- void addDependencySet( DependencySet )
81  
82      /**
83       * Method addFile.
84       * 
85       * @param fileItem
86       */
87      public void addFile( FileItem fileItem )
88      {
89          getFiles().add( fileItem );
90      } //-- void addFile( FileItem )
91  
92      /**
93       * Method addFileSet.
94       * 
95       * @param fileSet
96       */
97      public void addFileSet( FileSet fileSet )
98      {
99          getFileSets().add( fileSet );
100     } //-- void addFileSet( FileSet )
101 
102     /**
103      * Method addModuleSet.
104      * 
105      * @param moduleSet
106      */
107     public void addModuleSet( ModuleSet moduleSet )
108     {
109         getModuleSets().add( moduleSet );
110     } //-- void addModuleSet( ModuleSet )
111 
112     /**
113      * Method addRepository.
114      * 
115      * @param repository
116      */
117     public void addRepository( Repository repository )
118     {
119         getRepositories().add( repository );
120     } //-- void addRepository( Repository )
121 
122     /**
123      * Method getContainerDescriptorHandlers.
124      * 
125      * @return List
126      */
127     public java.util.List<ContainerDescriptorHandlerConfig> getContainerDescriptorHandlers()
128     {
129         if ( this.containerDescriptorHandlers == null )
130         {
131             this.containerDescriptorHandlers = new java.util.ArrayList<ContainerDescriptorHandlerConfig>();
132         }
133 
134         return this.containerDescriptorHandlers;
135     } //-- java.util.List<ContainerDescriptorHandlerConfig> getContainerDescriptorHandlers()
136 
137     /**
138      * Method getDependencySets.
139      * 
140      * @return List
141      */
142     public java.util.List<DependencySet> getDependencySets()
143     {
144         if ( this.dependencySets == null )
145         {
146             this.dependencySets = new java.util.ArrayList<DependencySet>();
147         }
148 
149         return this.dependencySets;
150     } //-- java.util.List<DependencySet> getDependencySets()
151 
152     /**
153      * Method getFileSets.
154      * 
155      * @return List
156      */
157     public java.util.List<FileSet> getFileSets()
158     {
159         if ( this.fileSets == null )
160         {
161             this.fileSets = new java.util.ArrayList<FileSet>();
162         }
163 
164         return this.fileSets;
165     } //-- java.util.List<FileSet> getFileSets()
166 
167     /**
168      * Method getFiles.
169      * 
170      * @return List
171      */
172     public java.util.List<FileItem> getFiles()
173     {
174         if ( this.files == null )
175         {
176             this.files = new java.util.ArrayList<FileItem>();
177         }
178 
179         return this.files;
180     } //-- java.util.List<FileItem> getFiles()
181 
182     /**
183      * Get the modelEncoding field.
184      * 
185      * @return String
186      */
187     public String getModelEncoding()
188     {
189         return this.modelEncoding;
190     } //-- String getModelEncoding()
191 
192     /**
193      * Method getModuleSets.
194      * 
195      * @return List
196      */
197     public java.util.List<ModuleSet> getModuleSets()
198     {
199         if ( this.moduleSets == null )
200         {
201             this.moduleSets = new java.util.ArrayList<ModuleSet>();
202         }
203 
204         return this.moduleSets;
205     } //-- java.util.List<ModuleSet> getModuleSets()
206 
207     /**
208      * Method getRepositories.
209      * 
210      * @return List
211      */
212     public java.util.List<Repository> getRepositories()
213     {
214         if ( this.repositories == null )
215         {
216             this.repositories = new java.util.ArrayList<Repository>();
217         }
218 
219         return this.repositories;
220     } //-- java.util.List<Repository> getRepositories()
221 
222     /**
223      * Method removeContainerDescriptorHandler.
224      * 
225      * @param containerDescriptorHandlerConfig
226      */
227     public void removeContainerDescriptorHandler( ContainerDescriptorHandlerConfig containerDescriptorHandlerConfig )
228     {
229         getContainerDescriptorHandlers().remove( containerDescriptorHandlerConfig );
230     } //-- void removeContainerDescriptorHandler( ContainerDescriptorHandlerConfig )
231 
232     /**
233      * Method removeDependencySet.
234      * 
235      * @param dependencySet
236      */
237     public void removeDependencySet( DependencySet dependencySet )
238     {
239         getDependencySets().remove( dependencySet );
240     } //-- void removeDependencySet( DependencySet )
241 
242     /**
243      * Method removeFile.
244      * 
245      * @param fileItem
246      */
247     public void removeFile( FileItem fileItem )
248     {
249         getFiles().remove( fileItem );
250     } //-- void removeFile( FileItem )
251 
252     /**
253      * Method removeFileSet.
254      * 
255      * @param fileSet
256      */
257     public void removeFileSet( FileSet fileSet )
258     {
259         getFileSets().remove( fileSet );
260     } //-- void removeFileSet( FileSet )
261 
262     /**
263      * Method removeModuleSet.
264      * 
265      * @param moduleSet
266      */
267     public void removeModuleSet( ModuleSet moduleSet )
268     {
269         getModuleSets().remove( moduleSet );
270     } //-- void removeModuleSet( ModuleSet )
271 
272     /**
273      * Method removeRepository.
274      * 
275      * @param repository
276      */
277     public void removeRepository( Repository repository )
278     {
279         getRepositories().remove( repository );
280     } //-- void removeRepository( Repository )
281 
282     /**
283      * Set set of components which filter various container
284      * descriptors out of
285      *             the normal archive stream, so they can be
286      * aggregated then added.
287      * 
288      * @param containerDescriptorHandlers
289      */
290     public void setContainerDescriptorHandlers( java.util.List<ContainerDescriptorHandlerConfig> containerDescriptorHandlers )
291     {
292         this.containerDescriptorHandlers = containerDescriptorHandlers;
293     } //-- void setContainerDescriptorHandlers( java.util.List )
294 
295     /**
296      * Set specifies which dependencies to include in the assembly.
297      * A
298      *             dependencySet is specified by providing one or
299      * more of
300      *             &lt;dependencySet&gt; subelements.
301      * 
302      * @param dependencySets
303      */
304     public void setDependencySets( java.util.List<DependencySet> dependencySets )
305     {
306         this.dependencySets = dependencySets;
307     } //-- void setDependencySets( java.util.List )
308 
309     /**
310      * Set specifies which groups of files to include in the
311      * assembly. A
312      *             fileSet is specified by providing one or more of
313      * &lt;fileSet&gt;
314      *             subelements.
315      * 
316      * @param fileSets
317      */
318     public void setFileSets( java.util.List<FileSet> fileSets )
319     {
320         this.fileSets = fileSets;
321     } //-- void setFileSets( java.util.List )
322 
323     /**
324      * Set specifies which single files to include in the assembly.
325      * A file
326      *             is specified by providing one or more of
327      * &lt;file&gt;
328      *             subelements.
329      * 
330      * @param files
331      */
332     public void setFiles( java.util.List<FileItem> files )
333     {
334         this.files = files;
335     } //-- void setFiles( java.util.List )
336 
337     /**
338      * Set the modelEncoding field.
339      * 
340      * @param modelEncoding
341      */
342     public void setModelEncoding( String modelEncoding )
343     {
344         this.modelEncoding = modelEncoding;
345     } //-- void setModelEncoding( String )
346 
347     /**
348      * Set specifies which module files to include in the assembly.
349      * A moduleSet
350      *             is specified by providing one or more of
351      * &lt;moduleSet&gt;
352      *             subelements.
353      * 
354      * @param moduleSets
355      */
356     public void setModuleSets( java.util.List<ModuleSet> moduleSets )
357     {
358         this.moduleSets = moduleSets;
359     } //-- void setModuleSets( java.util.List )
360 
361     /**
362      * Set specifies a set of repositories to include in the
363      * assembly. A
364      *             repository is specified by providing one or more
365      * of
366      *             &lt;repository&gt; subelements.
367      * 
368      * @param repositories
369      */
370     public void setRepositories( java.util.List<Repository> repositories )
371     {
372         this.repositories = repositories;
373     } //-- void setRepositories( java.util.List )
374 
375 }