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