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