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 public void addContainerDescriptorHandler( ContainerDescriptorHandlerConfig containerDescriptorHandlerConfig )
68 {
69 getContainerDescriptorHandlers().add( containerDescriptorHandlerConfig );
70 }
71
72
73
74
75
76
77 public void addDependencySet( DependencySet dependencySet )
78 {
79 getDependencySets().add( dependencySet );
80 }
81
82
83
84
85
86
87 public void addFile( FileItem fileItem )
88 {
89 getFiles().add( fileItem );
90 }
91
92
93
94
95
96
97 public void addFileSet( FileSet fileSet )
98 {
99 getFileSets().add( fileSet );
100 }
101
102
103
104
105
106
107 public void addModuleSet( ModuleSet moduleSet )
108 {
109 getModuleSets().add( moduleSet );
110 }
111
112
113
114
115
116
117 public void addRepository( Repository repository )
118 {
119 getRepositories().add( repository );
120 }
121
122
123
124
125
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 }
136
137
138
139
140
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 }
151
152
153
154
155
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 }
166
167
168
169
170
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 }
181
182
183
184
185
186
187 public String getModelEncoding()
188 {
189 return this.modelEncoding;
190 }
191
192
193
194
195
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 }
206
207
208
209
210
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 }
221
222
223
224
225
226
227 public void removeContainerDescriptorHandler( ContainerDescriptorHandlerConfig containerDescriptorHandlerConfig )
228 {
229 getContainerDescriptorHandlers().remove( containerDescriptorHandlerConfig );
230 }
231
232
233
234
235
236
237 public void removeDependencySet( DependencySet dependencySet )
238 {
239 getDependencySets().remove( dependencySet );
240 }
241
242
243
244
245
246
247 public void removeFile( FileItem fileItem )
248 {
249 getFiles().remove( fileItem );
250 }
251
252
253
254
255
256
257 public void removeFileSet( FileSet fileSet )
258 {
259 getFileSets().remove( fileSet );
260 }
261
262
263
264
265
266
267 public void removeModuleSet( ModuleSet moduleSet )
268 {
269 getModuleSets().remove( moduleSet );
270 }
271
272
273
274
275
276
277 public void removeRepository( Repository repository )
278 {
279 getRepositories().remove( repository );
280 }
281
282
283
284
285
286
287
288
289
290 public void setContainerDescriptorHandlers( java.util.List<ContainerDescriptorHandlerConfig> containerDescriptorHandlers )
291 {
292 this.containerDescriptorHandlers = containerDescriptorHandlers;
293 }
294
295
296
297
298
299
300
301
302
303
304 public void setDependencySets( java.util.List<DependencySet> dependencySets )
305 {
306 this.dependencySets = dependencySets;
307 }
308
309
310
311
312
313
314
315
316
317
318 public void setFileSets( java.util.List<FileSet> fileSets )
319 {
320 this.fileSets = fileSets;
321 }
322
323
324
325
326
327
328
329
330
331
332 public void setFiles( java.util.List<FileItem> files )
333 {
334 this.files = files;
335 }
336
337
338
339
340
341
342 public void setModelEncoding( String modelEncoding )
343 {
344 this.modelEncoding = modelEncoding;
345 }
346
347
348
349
350
351
352
353
354
355
356 public void setModuleSets( java.util.List<ModuleSet> moduleSets )
357 {
358 this.moduleSets = moduleSets;
359 }
360
361
362
363
364
365
366
367
368
369
370 public void setRepositories( java.util.List<Repository> repositories )
371 {
372 this.repositories = repositories;
373 }
374
375 }