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