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