1
2
3
4
5
6
7
8 package org.apache.maven.plugin.descriptor.model;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class PluginDescriptor
17 implements java.io.Serializable
18 {
19
20
21
22
23
24
25
26
27 private String description;
28
29
30
31
32 private String groupId;
33
34
35
36
37 private String artifactId;
38
39
40
41
42 private String version;
43
44
45
46
47 private String goalPrefix;
48
49
50
51
52 private boolean isolatedRealm = false;
53
54
55
56
57 private boolean inheritedByDefault = true;
58
59
60
61
62 private java.util.List<MojoDescriptor> mojos;
63
64
65
66
67 private java.util.List<Dependency> dependencies;
68
69
70
71
72 private String modelEncoding = "UTF-8";
73
74
75
76
77
78
79
80
81
82
83
84 public void addDependency( Dependency dependency )
85 {
86 getDependencies().add( dependency );
87 }
88
89
90
91
92
93
94 public void addMojo( MojoDescriptor mojoDescriptor )
95 {
96 getMojos().add( mojoDescriptor );
97 }
98
99
100
101
102
103
104 public String getArtifactId()
105 {
106 return this.artifactId;
107 }
108
109
110
111
112
113
114 public java.util.List<Dependency> getDependencies()
115 {
116 if ( this.dependencies == null )
117 {
118 this.dependencies = new java.util.ArrayList<Dependency>();
119 }
120
121 return this.dependencies;
122 }
123
124
125
126
127
128
129 public String getDescription()
130 {
131 return this.description;
132 }
133
134
135
136
137
138
139 public String getGoalPrefix()
140 {
141 return this.goalPrefix;
142 }
143
144
145
146
147
148
149 public String getGroupId()
150 {
151 return this.groupId;
152 }
153
154
155
156
157
158
159 public String getModelEncoding()
160 {
161 return this.modelEncoding;
162 }
163
164
165
166
167
168
169 public java.util.List<MojoDescriptor> getMojos()
170 {
171 if ( this.mojos == null )
172 {
173 this.mojos = new java.util.ArrayList<MojoDescriptor>();
174 }
175
176 return this.mojos;
177 }
178
179
180
181
182
183
184 public String getVersion()
185 {
186 return this.version;
187 }
188
189
190
191
192
193
194 public boolean isInheritedByDefault()
195 {
196 return this.inheritedByDefault;
197 }
198
199
200
201
202
203
204 public boolean isIsolatedRealm()
205 {
206 return this.isolatedRealm;
207 }
208
209
210
211
212
213
214 public void removeDependency( Dependency dependency )
215 {
216 getDependencies().remove( dependency );
217 }
218
219
220
221
222
223
224 public void removeMojo( MojoDescriptor mojoDescriptor )
225 {
226 getMojos().remove( mojoDescriptor );
227 }
228
229
230
231
232
233
234 public void setArtifactId( String artifactId )
235 {
236 this.artifactId = artifactId;
237 }
238
239
240
241
242
243
244
245
246
247 public void setDependencies( java.util.List<Dependency> dependencies )
248 {
249 this.dependencies = dependencies;
250 }
251
252
253
254
255
256
257 public void setDescription( String description )
258 {
259 this.description = description;
260 }
261
262
263
264
265
266
267 public void setGoalPrefix( String goalPrefix )
268 {
269 this.goalPrefix = goalPrefix;
270 }
271
272
273
274
275
276
277 public void setGroupId( String groupId )
278 {
279 this.groupId = groupId;
280 }
281
282
283
284
285
286
287 public void setInheritedByDefault( boolean inheritedByDefault )
288 {
289 this.inheritedByDefault = inheritedByDefault;
290 }
291
292
293
294
295
296
297 public void setIsolatedRealm( boolean isolatedRealm )
298 {
299 this.isolatedRealm = isolatedRealm;
300 }
301
302
303
304
305
306
307 public void setModelEncoding( String modelEncoding )
308 {
309 this.modelEncoding = modelEncoding;
310 }
311
312
313
314
315
316
317 public void setMojos( java.util.List<MojoDescriptor> mojos )
318 {
319 this.mojos = mojos;
320 }
321
322
323
324
325
326
327 public void setVersion( String version )
328 {
329 this.version = version;
330 }
331
332 }