1
2
3
4
5
6
7
8 package com.mindtree.techworks.insight.releng.mvn.nsis.model;
9
10
11
12
13
14
15 public class Section
16 implements java.io.Serializable
17 {
18
19
20
21
22
23
24
25
26 private String name;
27
28
29
30
31 private String description = "";
32
33
34
35
36 private boolean optional = false;
37
38
39
40
41 private boolean bold = false;
42
43
44
45
46
47
48 private boolean hidden = false;
49
50
51
52
53 private java.util.List
54
55
56
57
58 private java.util.List
59
60
61
62
63 private java.util.List
64
65
66
67
68 private java.util.List
69
70
71
72
73 private java.util.List
74
75
76
77
78
79
80
81
82
83
84
85 public void addDependencySet( DependencySet dependencySet )
86 {
87 if ( !(dependencySet instanceof DependencySet) )
88 {
89 throw new ClassCastException( "Section.addDependencySets(dependencySet) parameter must be instanceof " + DependencySet.class.getName() );
90 }
91 getDependencySets().add( dependencySet );
92 }
93
94
95
96
97
98
99 public void addFile( FileItem fileItem )
100 {
101 if ( !(fileItem instanceof FileItem) )
102 {
103 throw new ClassCastException( "Section.addFiles(fileItem) parameter must be instanceof " + FileItem.class.getName() );
104 }
105 getFiles().add( fileItem );
106 }
107
108
109
110
111
112
113 public void addFileSet( FileSet fileSet )
114 {
115 if ( !(fileSet instanceof FileSet) )
116 {
117 throw new ClassCastException( "Section.addFileSets(fileSet) parameter must be instanceof " + FileSet.class.getName() );
118 }
119 getFileSets().add( fileSet );
120 }
121
122
123
124
125
126
127 public void addInInsType( String string )
128 {
129 if ( !(string instanceof String) )
130 {
131 throw new ClassCastException( "Section.addInInsTypes(string) parameter must be instanceof " + String.class.getName() );
132 }
133 getInInsTypes().add( string );
134 }
135
136
137
138
139
140
141 public void addShortcut( ShortCut shortCut )
142 {
143 if ( !(shortCut instanceof ShortCut) )
144 {
145 throw new ClassCastException( "Section.addShortcuts(shortCut) parameter must be instanceof " + ShortCut.class.getName() );
146 }
147 getShortcuts().add( shortCut );
148 }
149
150
151
152
153
154
155 public java.util.List
156 {
157 if ( this.dependencySets == null )
158 {
159 this.dependencySets = new java.util.ArrayList
160 }
161
162 return this.dependencySets;
163 }
164
165
166
167
168
169
170 public String getDescription()
171 {
172 return this.description;
173 }
174
175
176
177
178
179
180 public java.util.List
181 {
182 if ( this.fileSets == null )
183 {
184 this.fileSets = new java.util.ArrayList
185 }
186
187 return this.fileSets;
188 }
189
190
191
192
193
194
195 public java.util.List
196 {
197 if ( this.files == null )
198 {
199 this.files = new java.util.ArrayList
200 }
201
202 return this.files;
203 }
204
205
206
207
208
209
210 public java.util.List
211 {
212 if ( this.inInsTypes == null )
213 {
214 this.inInsTypes = new java.util.ArrayList
215 }
216
217 return this.inInsTypes;
218 }
219
220
221
222
223
224
225 public String getName()
226 {
227 return this.name;
228 }
229
230
231
232
233
234
235 public java.util.List
236 {
237 if ( this.shortcuts == null )
238 {
239 this.shortcuts = new java.util.ArrayList
240 }
241
242 return this.shortcuts;
243 }
244
245
246
247
248
249
250 public boolean isBold()
251 {
252 return this.bold;
253 }
254
255
256
257
258
259
260 public boolean isHidden()
261 {
262 return this.hidden;
263 }
264
265
266
267
268
269
270 public boolean isOptional()
271 {
272 return this.optional;
273 }
274
275
276
277
278
279
280 public void removeDependencySet( DependencySet dependencySet )
281 {
282 if ( !(dependencySet instanceof DependencySet) )
283 {
284 throw new ClassCastException( "Section.removeDependencySets(dependencySet) parameter must be instanceof " + DependencySet.class.getName() );
285 }
286 getDependencySets().remove( dependencySet );
287 }
288
289
290
291
292
293
294 public void removeFile( FileItem fileItem )
295 {
296 if ( !(fileItem instanceof FileItem) )
297 {
298 throw new ClassCastException( "Section.removeFiles(fileItem) parameter must be instanceof " + FileItem.class.getName() );
299 }
300 getFiles().remove( fileItem );
301 }
302
303
304
305
306
307
308 public void removeFileSet( FileSet fileSet )
309 {
310 if ( !(fileSet instanceof FileSet) )
311 {
312 throw new ClassCastException( "Section.removeFileSets(fileSet) parameter must be instanceof " + FileSet.class.getName() );
313 }
314 getFileSets().remove( fileSet );
315 }
316
317
318
319
320
321
322 public void removeInInsType( String string )
323 {
324 if ( !(string instanceof String) )
325 {
326 throw new ClassCastException( "Section.removeInInsTypes(string) parameter must be instanceof " + String.class.getName() );
327 }
328 getInInsTypes().remove( string );
329 }
330
331
332
333
334
335
336 public void removeShortcut( ShortCut shortCut )
337 {
338 if ( !(shortCut instanceof ShortCut) )
339 {
340 throw new ClassCastException( "Section.removeShortcuts(shortCut) parameter must be instanceof " + ShortCut.class.getName() );
341 }
342 getShortcuts().remove( shortCut );
343 }
344
345
346
347
348
349
350 public void setBold( boolean bold )
351 {
352 this.bold = bold;
353 }
354
355
356
357
358
359
360
361
362
363
364 public void setDependencySets( java.util.List
365 {
366 this.dependencySets = dependencySets;
367 }
368
369
370
371
372
373
374 public void setDescription( String description )
375 {
376 this.description = description;
377 }
378
379
380
381
382
383
384
385
386
387
388 public void setFileSets( java.util.List
389 {
390 this.fileSets = fileSets;
391 }
392
393
394
395
396
397
398
399
400
401
402 public void setFiles( java.util.List
403 {
404 this.files = files;
405 }
406
407
408
409
410
411
412 public void setHidden( boolean hidden )
413 {
414 this.hidden = hidden;
415 }
416
417
418
419
420
421
422
423
424
425
426
427
428 public void setInInsTypes( java.util.List
429 {
430 this.inInsTypes = inInsTypes;
431 }
432
433
434
435
436
437
438 public void setName( String name )
439 {
440 this.name = name;
441 }
442
443
444
445
446
447
448 public void setOptional( boolean optional )
449 {
450 this.optional = optional;
451 }
452
453
454
455
456
457
458 public void setShortcuts( java.util.List
459 {
460 this.shortcuts = shortcuts;
461 }
462
463
464 }