1
2
3
4
5
6
7
8 package org.apache.maven.plugin.assembly.model;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class Component
17 implements java.io.Serializable
18 {
19
20
21
22
23
24
25
26
27 private java.util.List<ModuleSet> moduleSets;
28
29
30
31
32 private java.util.List<FileSet> fileSets;
33
34
35
36
37 private java.util.List<FileItem> files;
38
39
40
41
42 private java.util.List<DependencySet> dependencySets;
43
44
45
46
47 private java.util.List<Repository> repositories;
48
49
50
51
52 private java.util.List<ContainerDescriptorHandlerConfig> containerDescriptorHandlers;
53
54
55
56
57 private String modelEncoding = "UTF-8";
58
59
60
61
62
63
64
65
66
67
68
69 public void addContainerDescriptorHandler( ContainerDescriptorHandlerConfig containerDescriptorHandlerConfig )
70 {
71 getContainerDescriptorHandlers().add( containerDescriptorHandlerConfig );
72 }
73
74
75
76
77
78
79 public void addDependencySet( DependencySet dependencySet )
80 {
81 getDependencySets().add( dependencySet );
82 }
83
84
85
86
87
88
89 public void addFile( FileItem fileItem )
90 {
91 getFiles().add( fileItem );
92 }
93
94
95
96
97
98
99 public void addFileSet( FileSet fileSet )
100 {
101 getFileSets().add( fileSet );
102 }
103
104
105
106
107
108
109 public void addModuleSet( ModuleSet moduleSet )
110 {
111 getModuleSets().add( moduleSet );
112 }
113
114
115
116
117
118
119 public void addRepository( Repository repository )
120 {
121 getRepositories().add( repository );
122 }
123
124
125
126
127
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 }
138
139
140
141
142
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 }
153
154
155
156
157
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 }
168
169
170
171
172
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 }
183
184
185
186
187
188
189 public String getModelEncoding()
190 {
191 return this.modelEncoding;
192 }
193
194
195
196
197
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 }
208
209
210
211
212
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 }
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 public void setContainerDescriptorHandlers( java.util.List<ContainerDescriptorHandlerConfig> containerDescriptorHandlers )
293 {
294 this.containerDescriptorHandlers = containerDescriptorHandlers;
295 }
296
297
298
299
300
301
302
303
304
305
306 public void setDependencySets( java.util.List<DependencySet> dependencySets )
307 {
308 this.dependencySets = dependencySets;
309 }
310
311
312
313
314
315
316
317
318
319
320 public void setFileSets( java.util.List<FileSet> fileSets )
321 {
322 this.fileSets = fileSets;
323 }
324
325
326
327
328
329
330
331
332
333
334 public void setFiles( java.util.List<FileItem> files )
335 {
336 this.files = files;
337 }
338
339
340
341
342
343
344 public void setModelEncoding( String modelEncoding )
345 {
346 this.modelEncoding = modelEncoding;
347 }
348
349
350
351
352
353
354
355
356
357
358 public void setModuleSets( java.util.List<ModuleSet> moduleSets )
359 {
360 this.moduleSets = moduleSets;
361 }
362
363
364
365
366
367
368
369
370
371
372 public void setRepositories( java.util.List<Repository> repositories )
373 {
374 this.repositories = repositories;
375 }
376
377 }