1
2
3
4
5
6 package org.apache.maven.plugins.assembly.model;
7
8
9
10
11
12
13 @SuppressWarnings( "all" )
14 public class Component
15 implements java.io.Serializable
16 {
17
18
19
20
21
22
23
24
25 private java.util.List<ModuleSet> moduleSets;
26
27
28
29
30 private java.util.List<FileSet> fileSets;
31
32
33
34
35 private java.util.List<FileItem> files;
36
37
38
39
40 private java.util.List<DependencySet> dependencySets;
41
42
43
44
45 private java.util.List<Repository> repositories;
46
47
48
49
50 private java.util.List<ContainerDescriptorHandlerConfig> containerDescriptorHandlers;
51
52
53
54
55 private String modelEncoding = "UTF-8";
56
57
58
59
60
61
62
63
64
65
66
67
68 public void addContainerDescriptorHandler( ContainerDescriptorHandlerConfig containerDescriptorHandlerConfig )
69 {
70 getContainerDescriptorHandlers().add( containerDescriptorHandlerConfig );
71 }
72
73
74
75
76
77
78 public void addDependencySet( DependencySet dependencySet )
79 {
80 getDependencySets().add( dependencySet );
81 }
82
83
84
85
86
87
88 public void addFile( FileItem fileItem )
89 {
90 getFiles().add( fileItem );
91 }
92
93
94
95
96
97
98 public void addFileSet( FileSet fileSet )
99 {
100 getFileSets().add( fileSet );
101 }
102
103
104
105
106
107
108 public void addModuleSet( ModuleSet moduleSet )
109 {
110 getModuleSets().add( moduleSet );
111 }
112
113
114
115
116
117
118 public void addRepository( Repository repository )
119 {
120 getRepositories().add( repository );
121 }
122
123
124
125
126
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 }
137
138
139
140
141
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 }
152
153
154
155
156
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 }
167
168
169
170
171
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 }
182
183
184
185
186
187
188 public String getModelEncoding()
189 {
190 return this.modelEncoding;
191 }
192
193
194
195
196
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 }
207
208
209
210
211
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 }
222
223
224
225
226
227
228
229 public void removeContainerDescriptorHandler( ContainerDescriptorHandlerConfig containerDescriptorHandlerConfig )
230 {
231 getContainerDescriptorHandlers().remove( containerDescriptorHandlerConfig );
232 }
233
234
235
236
237
238
239 public void removeDependencySet( DependencySet dependencySet )
240 {
241 getDependencySets().remove( dependencySet );
242 }
243
244
245
246
247
248
249 public void removeFile( FileItem fileItem )
250 {
251 getFiles().remove( fileItem );
252 }
253
254
255
256
257
258
259 public void removeFileSet( FileSet fileSet )
260 {
261 getFileSets().remove( fileSet );
262 }
263
264
265
266
267
268
269 public void removeModuleSet( ModuleSet moduleSet )
270 {
271 getModuleSets().remove( moduleSet );
272 }
273
274
275
276
277
278
279 public void removeRepository( Repository repository )
280 {
281 getRepositories().remove( repository );
282 }
283
284
285
286
287
288
289
290
291
292
293 public void setContainerDescriptorHandlers( java.util.List<ContainerDescriptorHandlerConfig> containerDescriptorHandlers )
294 {
295 this.containerDescriptorHandlers = containerDescriptorHandlers;
296 }
297
298
299
300
301
302
303
304
305
306
307 public void setDependencySets( java.util.List<DependencySet> dependencySets )
308 {
309 this.dependencySets = dependencySets;
310 }
311
312
313
314
315
316
317
318
319
320
321 public void setFileSets( java.util.List<FileSet> fileSets )
322 {
323 this.fileSets = fileSets;
324 }
325
326
327
328
329
330
331
332
333
334
335 public void setFiles( java.util.List<FileItem> files )
336 {
337 this.files = files;
338 }
339
340
341
342
343
344
345 public void setModelEncoding( String modelEncoding )
346 {
347 this.modelEncoding = modelEncoding;
348 }
349
350
351
352
353
354
355
356
357
358
359 public void setModuleSets( java.util.List<ModuleSet> moduleSets )
360 {
361 this.moduleSets = moduleSets;
362 }
363
364
365
366
367
368
369
370
371
372
373
374 public void setRepositories( java.util.List<Repository> repositories )
375 {
376 this.repositories = repositories;
377 }
378
379 }