1
2
3
4
5
6 package org.apache.maven.model;
7
8
9
10
11
12
13
14
15
16 @SuppressWarnings( "all" )
17 public class Contributor
18 implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
19 {
20
21
22
23
24
25
26
27
28 private String name;
29
30
31
32
33 private String email;
34
35
36
37
38 private String url;
39
40
41
42
43 private String organization;
44
45
46
47
48 private String organizationUrl;
49
50
51
52
53 private java.util.List<String> roles;
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70 private String timezone;
71
72
73
74
75 private java.util.Properties properties;
76
77
78
79
80 private java.util.Map<Object, InputLocation> locations;
81
82
83
84
85
86
87
88
89
90
91
92
93 public void addProperty( String key, String value )
94 {
95 getProperties().put( key, value );
96 }
97
98
99
100
101
102
103 public void addRole( String string )
104 {
105 getRoles().add( string );
106 }
107
108
109
110
111
112
113 public Contributor clone()
114 {
115 try
116 {
117 Contributor copy = (Contributor) super.clone();
118
119 if ( this.roles != null )
120 {
121 copy.roles = new java.util.ArrayList<String>();
122 copy.roles.addAll( this.roles );
123 }
124
125 if ( this.properties != null )
126 {
127 copy.properties = (java.util.Properties) this.properties.clone();
128 }
129
130 if ( copy.locations != null )
131 {
132 copy.locations = new java.util.LinkedHashMap( copy.locations );
133 }
134
135 return copy;
136 }
137 catch ( java.lang.Exception ex )
138 {
139 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
140 + " does not support clone()" ).initCause( ex );
141 }
142 }
143
144
145
146
147
148
149 public String getEmail()
150 {
151 return this.email;
152 }
153
154
155
156
157
158
159
160 public InputLocation getLocation( Object key )
161 {
162 return ( locations != null ) ? locations.get( key ) : null;
163 }
164
165
166
167
168
169
170 public String getName()
171 {
172 return this.name;
173 }
174
175
176
177
178
179
180 public String getOrganization()
181 {
182 return this.organization;
183 }
184
185
186
187
188
189
190 public String getOrganizationUrl()
191 {
192 return this.organizationUrl;
193 }
194
195
196
197
198
199
200 public java.util.Properties getProperties()
201 {
202 if ( this.properties == null )
203 {
204 this.properties = new java.util.Properties();
205 }
206
207 return this.properties;
208 }
209
210
211
212
213
214
215 public java.util.List<String> getRoles()
216 {
217 if ( this.roles == null )
218 {
219 this.roles = new java.util.ArrayList<String>();
220 }
221
222 return this.roles;
223 }
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238 public String getTimezone()
239 {
240 return this.timezone;
241 }
242
243
244
245
246
247
248 public String getUrl()
249 {
250 return this.url;
251 }
252
253
254
255
256
257
258 public void removeRole( String string )
259 {
260 getRoles().remove( string );
261 }
262
263
264
265
266
267
268 public void setEmail( String email )
269 {
270 this.email = email;
271 }
272
273
274
275
276
277
278
279 public void setLocation( Object key, InputLocation location )
280 {
281 if ( location != null )
282 {
283 if ( this.locations == null )
284 {
285 this.locations = new java.util.LinkedHashMap<Object, InputLocation>();
286 }
287 this.locations.put( key, location );
288 }
289 }
290
291
292
293
294
295
296 public void setName( String name )
297 {
298 this.name = name;
299 }
300
301
302
303
304
305
306 public void setOrganization( String organization )
307 {
308 this.organization = organization;
309 }
310
311
312
313
314
315
316 public void setOrganizationUrl( String organizationUrl )
317 {
318 this.organizationUrl = organizationUrl;
319 }
320
321
322
323
324
325
326
327 public void setProperties( java.util.Properties properties )
328 {
329 this.properties = properties;
330 }
331
332
333
334
335
336
337
338
339
340
341 public void setRoles( java.util.List<String> roles )
342 {
343 this.roles = roles;
344 }
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359 public void setTimezone( String timezone )
360 {
361 this.timezone = timezone;
362 }
363
364
365
366
367
368
369 public void setUrl( String url )
370 {
371 this.url = url;
372 }
373
374 }