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