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