View Javadoc

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