1
2
3
4
5
6
7
8 package org.apache.maven.model;
9
10
11
12
13
14
15 public class BuildBase
16 extends PluginConfiguration
17 implements java.io.Serializable
18 {
19
20
21
22
23
24
25
26
27
28
29 private String defaultGoal;
30
31
32
33
34 private java.util.List
35
36
37
38
39 private java.util.List
40
41
42
43
44
45 private String directory;
46
47
48
49
50
51
52
53
54
55
56
57
58 private String finalName;
59
60
61
62
63 private java.util.List
64
65
66
67
68
69
70
71
72
73
74
75 public void addFilter( String string )
76 {
77 if ( !(string instanceof String) )
78 {
79 throw new ClassCastException( "BuildBase.addFilters(string) parameter must be instanceof " + String.class.getName() );
80 }
81 getFilters().add( string );
82 }
83
84
85
86
87
88
89 public void addResource( Resource resource )
90 {
91 if ( !(resource instanceof Resource) )
92 {
93 throw new ClassCastException( "BuildBase.addResources(resource) parameter must be instanceof " + Resource.class.getName() );
94 }
95 getResources().add( resource );
96 }
97
98
99
100
101
102
103 public void addTestResource( Resource resource )
104 {
105 if ( !(resource instanceof Resource) )
106 {
107 throw new ClassCastException( "BuildBase.addTestResources(resource) parameter must be instanceof " + Resource.class.getName() );
108 }
109 getTestResources().add( resource );
110 }
111
112
113
114
115
116
117
118
119 public String getDefaultGoal()
120 {
121 return this.defaultGoal;
122 }
123
124
125
126
127
128
129
130 public String getDirectory()
131 {
132 return this.directory;
133 }
134
135
136
137
138
139
140 public java.util.List
141 {
142 if ( this.filters == null )
143 {
144 this.filters = new java.util.ArrayList
145 }
146
147 return this.filters;
148 }
149
150
151
152
153
154
155
156
157
158
159 public String getFinalName()
160 {
161 return this.finalName;
162 }
163
164
165
166
167
168
169 public java.util.List
170 {
171 if ( this.resources == null )
172 {
173 this.resources = new java.util.ArrayList
174 }
175
176 return this.resources;
177 }
178
179
180
181
182
183
184 public java.util.List
185 {
186 if ( this.testResources == null )
187 {
188 this.testResources = new java.util.ArrayList
189 }
190
191 return this.testResources;
192 }
193
194
195
196
197
198
199 public void removeFilter( String string )
200 {
201 if ( !(string instanceof String) )
202 {
203 throw new ClassCastException( "BuildBase.removeFilters(string) parameter must be instanceof " + String.class.getName() );
204 }
205 getFilters().remove( string );
206 }
207
208
209
210
211
212
213 public void removeResource( Resource resource )
214 {
215 if ( !(resource instanceof Resource) )
216 {
217 throw new ClassCastException( "BuildBase.removeResources(resource) parameter must be instanceof " + Resource.class.getName() );
218 }
219 getResources().remove( resource );
220 }
221
222
223
224
225
226
227 public void removeTestResource( Resource resource )
228 {
229 if ( !(resource instanceof Resource) )
230 {
231 throw new ClassCastException( "BuildBase.removeTestResources(resource) parameter must be instanceof " + Resource.class.getName() );
232 }
233 getTestResources().remove( resource );
234 }
235
236
237
238
239
240
241
242
243 public void setDefaultGoal( String defaultGoal )
244 {
245 this.defaultGoal = defaultGoal;
246 }
247
248
249
250
251
252
253
254 public void setDirectory( String directory )
255 {
256 this.directory = directory;
257 }
258
259
260
261
262
263
264
265 public void setFilters( java.util.List
266 {
267 this.filters = filters;
268 }
269
270
271
272
273
274
275
276
277
278
279 public void setFinalName( String finalName )
280 {
281 this.finalName = finalName;
282 }
283
284
285
286
287
288
289
290
291
292
293 public void setResources( java.util.List
294 {
295 this.resources = resources;
296 }
297
298
299
300
301
302
303
304
305 public void setTestResources( java.util.List
306 {
307 this.testResources = testResources;
308 }
309
310
311 }