1 | // |
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 |
3 | // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> |
4 | // Any modifications to this file will be lost upon recompilation of the source schema. |
5 | // Generated on: 2010.02.03 at 01:25:12 AM UTC |
6 | // |
7 | |
8 | |
9 | package org.jomc.model; |
10 | |
11 | import java.io.ByteArrayInputStream; |
12 | import java.io.ByteArrayOutputStream; |
13 | import java.io.IOException; |
14 | import java.io.InvalidClassException; |
15 | import java.io.NotSerializableException; |
16 | import java.io.ObjectInputStream; |
17 | import java.io.ObjectOutputStream; |
18 | import java.io.OptionalDataException; |
19 | import java.io.Serializable; |
20 | import java.io.StreamCorruptedException; |
21 | import java.lang.reflect.Array; |
22 | import java.lang.reflect.InvocationTargetException; |
23 | import java.math.BigDecimal; |
24 | import java.math.BigInteger; |
25 | import java.util.ArrayList; |
26 | import java.util.Calendar; |
27 | import java.util.Currency; |
28 | import java.util.Date; |
29 | import java.util.Iterator; |
30 | import java.util.List; |
31 | import java.util.Locale; |
32 | import java.util.TimeZone; |
33 | import java.util.UUID; |
34 | import javax.annotation.Generated; |
35 | import javax.xml.bind.JAXBElement; |
36 | import javax.xml.bind.annotation.XmlAccessType; |
37 | import javax.xml.bind.annotation.XmlAccessorType; |
38 | import javax.xml.bind.annotation.XmlAnyElement; |
39 | import javax.xml.bind.annotation.XmlAttribute; |
40 | import javax.xml.bind.annotation.XmlType; |
41 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; |
42 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
43 | import javax.xml.datatype.Duration; |
44 | import javax.xml.datatype.XMLGregorianCalendar; |
45 | import javax.xml.namespace.QName; |
46 | import org.w3c.dom.Element; |
47 | |
48 | |
49 | /** |
50 | * |
51 | * Model of an implementation. |
52 | * |
53 | * The 'Implementation' type defines attributes 'identifier', 'name', 'class', 'location', 'vendor', 'version', 'final', |
54 | * 'stateless' and 'abstract'. Attribute 'identifier' holds an identifier uniquely identifying the implementation in a set |
55 | * of implementations. Attribute 'name' holds a name uniquely identifying the implementation for its implemented |
56 | * specifications. Attribute 'class' holds an identifier of the class providing implementation instances. Attribute |
57 | * 'location' holds an URI of the location of instances of the implementation. Attribute 'vendor' holds vendor information |
58 | * for the vendor providing the implementation. Attribute 'version' holds a version of the implementation. Dependencies, |
59 | * messages, properties and specifications may be inherited from multiple parent implementations. The 'final' attribute |
60 | * flags an implementation the final node in an inheritance hierarchy. The 'stateless' attribute indicates that instances |
61 | * of the implementation do not retain state across operations. The 'abstract' attribute flags an implementation abstract. |
62 | * |
63 | * |
64 | * <p>Java class for Implementation complex type. |
65 | * |
66 | * <p>The following schema fragment specifies the expected content contained within this class. |
67 | * |
68 | * <pre> |
69 | * <complexType name="Implementation"> |
70 | * <complexContent> |
71 | * <extension base="{http://jomc.org/model}ModelObject"> |
72 | * <sequence> |
73 | * <element ref="{http://jomc.org/model}specifications" minOccurs="0"/> |
74 | * <element ref="{http://jomc.org/model}implementations" minOccurs="0"/> |
75 | * <element ref="{http://jomc.org/model}dependencies" minOccurs="0"/> |
76 | * <element ref="{http://jomc.org/model}properties" minOccurs="0"/> |
77 | * <element ref="{http://jomc.org/model}messages" minOccurs="0"/> |
78 | * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> |
79 | * </sequence> |
80 | * <attribute name="identifier" use="required" type="{http://jomc.org/model}Identifier" /> |
81 | * <attribute name="name" use="required" type="{http://jomc.org/model}Identifier" /> |
82 | * <attribute name="class" type="{http://jomc.org/model}Identifier" /> |
83 | * <attribute name="location" type="{http://jomc.org/model}URI" /> |
84 | * <attribute name="vendor" type="{http://jomc.org/model}String" /> |
85 | * <attribute name="version" type="{http://jomc.org/model}Version" /> |
86 | * <attribute name="final" type="{http://jomc.org/model}Flag" default="false" /> |
87 | * <attribute name="stateless" type="{http://jomc.org/model}Flag" default="false" /> |
88 | * <attribute name="abstract" type="{http://jomc.org/model}Flag" default="false" /> |
89 | * <attribute name="classDeclaration" type="{http://jomc.org/model}Flag" default="false" /> |
90 | * </extension> |
91 | * </complexContent> |
92 | * </complexType> |
93 | * </pre> |
94 | * |
95 | * |
96 | */ |
97 | @XmlAccessorType(XmlAccessType.FIELD) |
98 | @XmlType(name = "Implementation", propOrder = { |
99 | "specifications", |
100 | "implementations", |
101 | "dependencies", |
102 | "properties", |
103 | "messages", |
104 | "any" |
105 | }) |
106 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
107 | public class Implementation |
108 | extends ModelObject |
109 | implements Cloneable |
110 | { |
111 | |
112 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
113 | protected Specifications specifications; |
114 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
115 | protected Implementations implementations; |
116 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
117 | protected Dependencies dependencies; |
118 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
119 | protected Properties properties; |
120 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
121 | protected Messages messages; |
122 | @XmlAnyElement(lax = true) |
123 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
124 | protected List<Object> any; |
125 | @XmlAttribute(required = true) |
126 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
127 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
128 | protected String identifier; |
129 | @XmlAttribute(required = true) |
130 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
131 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
132 | protected String name; |
133 | @XmlAttribute(name = "class") |
134 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
135 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
136 | protected String clazz; |
137 | @XmlAttribute |
138 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
139 | protected String location; |
140 | @XmlAttribute |
141 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
142 | protected String vendor; |
143 | @XmlAttribute |
144 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
145 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
146 | protected String version; |
147 | @XmlAttribute(name = "final") |
148 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
149 | protected Boolean _final; |
150 | @XmlAttribute |
151 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
152 | protected Boolean stateless; |
153 | @XmlAttribute(name = "abstract") |
154 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
155 | protected Boolean _abstract; |
156 | @XmlAttribute |
157 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
158 | protected Boolean classDeclaration; |
159 | |
160 | /** |
161 | * Creates a new {@code Implementation} instance. |
162 | * |
163 | */ |
164 | public Implementation() { |
165 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
166 | super(); |
167 | } |
168 | |
169 | /** |
170 | * Creates a new {@code Implementation} instance by deeply copying a given {@code Implementation} instance. |
171 | * |
172 | * |
173 | * @param o |
174 | * The instance to copy. |
175 | * @throws NullPointerException |
176 | * if {@code o} is {@code null}. |
177 | */ |
178 | public Implementation(final Implementation o) { |
179 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
180 | super(o); |
181 | if (o == null) { |
182 | throw new NullPointerException("Cannot create a copy of 'Implementation' from 'null'."); |
183 | } |
184 | // CClassInfo: org.jomc.model.Specifications |
185 | this.specifications = ((o.getSpecifications() == null)?null:o.getSpecifications().clone()); |
186 | // CClassInfo: org.jomc.model.Implementations |
187 | this.implementations = ((o.getImplementations() == null)?null:o.getImplementations().clone()); |
188 | // CClassInfo: org.jomc.model.Dependencies |
189 | this.dependencies = ((o.getDependencies() == null)?null:o.getDependencies().clone()); |
190 | // CClassInfo: org.jomc.model.Properties |
191 | this.properties = ((o.getProperties() == null)?null:o.getProperties().clone()); |
192 | // CClassInfo: org.jomc.model.Messages |
193 | this.messages = ((o.getMessages() == null)?null:o.getMessages().clone()); |
194 | // 'Any' collection. |
195 | copyAny(o.getAny(), getAny()); |
196 | // CBuiltinLeafInfo: java.lang.String |
197 | this.identifier = o.getIdentifier(); |
198 | // CBuiltinLeafInfo: java.lang.String |
199 | this.name = o.getName(); |
200 | // CBuiltinLeafInfo: java.lang.String |
201 | this.clazz = o.getClazz(); |
202 | // CBuiltinLeafInfo: java.lang.String |
203 | this.location = o.getLocation(); |
204 | // CBuiltinLeafInfo: java.lang.String |
205 | this.vendor = o.getVendor(); |
206 | // CBuiltinLeafInfo: java.lang.String |
207 | this.version = o.getVersion(); |
208 | // CBuiltinLeafInfo: java.lang.Boolean |
209 | this._final = o.isFinal(); |
210 | // CBuiltinLeafInfo: java.lang.Boolean |
211 | this.stateless = o.isStateless(); |
212 | // CBuiltinLeafInfo: java.lang.Boolean |
213 | this._abstract = o.isAbstract(); |
214 | // CBuiltinLeafInfo: java.lang.Boolean |
215 | this.classDeclaration = o.isClassDeclaration(); |
216 | } |
217 | |
218 | /** |
219 | * References to specifications implemented by this implementation or {@code null}. |
220 | * |
221 | * @return |
222 | * possible object is |
223 | * {@link Specifications } |
224 | * |
225 | */ |
226 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
227 | public Specifications getSpecifications() { |
228 | return specifications; |
229 | } |
230 | |
231 | /** |
232 | * Sets the value of the specifications property. |
233 | * |
234 | * @param value |
235 | * allowed object is |
236 | * {@link Specifications } |
237 | * |
238 | */ |
239 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
240 | public void setSpecifications(Specifications value) { |
241 | this.specifications = value; |
242 | } |
243 | |
244 | /** |
245 | * References to implementations this implementation inherits from or {@code null}. |
246 | * |
247 | * @return |
248 | * possible object is |
249 | * {@link Implementations } |
250 | * |
251 | */ |
252 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
253 | public Implementations getImplementations() { |
254 | return implementations; |
255 | } |
256 | |
257 | /** |
258 | * Sets the value of the implementations property. |
259 | * |
260 | * @param value |
261 | * allowed object is |
262 | * {@link Implementations } |
263 | * |
264 | */ |
265 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
266 | public void setImplementations(Implementations value) { |
267 | this.implementations = value; |
268 | } |
269 | |
270 | /** |
271 | * Dependencies of this implementation or {@code null}. |
272 | * |
273 | * @return |
274 | * possible object is |
275 | * {@link Dependencies } |
276 | * |
277 | */ |
278 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
279 | public Dependencies getDependencies() { |
280 | return dependencies; |
281 | } |
282 | |
283 | /** |
284 | * Sets the value of the dependencies property. |
285 | * |
286 | * @param value |
287 | * allowed object is |
288 | * {@link Dependencies } |
289 | * |
290 | */ |
291 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
292 | public void setDependencies(Dependencies value) { |
293 | this.dependencies = value; |
294 | } |
295 | |
296 | /** |
297 | * Properties of this implementation or {@code null}. |
298 | * |
299 | * @return |
300 | * possible object is |
301 | * {@link Properties } |
302 | * |
303 | */ |
304 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
305 | public Properties getProperties() { |
306 | return properties; |
307 | } |
308 | |
309 | /** |
310 | * Sets the value of the properties property. |
311 | * |
312 | * @param value |
313 | * allowed object is |
314 | * {@link Properties } |
315 | * |
316 | */ |
317 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
318 | public void setProperties(Properties value) { |
319 | this.properties = value; |
320 | } |
321 | |
322 | /** |
323 | * Messages of this implementation or {@code null}. |
324 | * |
325 | * @return |
326 | * possible object is |
327 | * {@link Messages } |
328 | * |
329 | */ |
330 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
331 | public Messages getMessages() { |
332 | return messages; |
333 | } |
334 | |
335 | /** |
336 | * Sets the value of the messages property. |
337 | * |
338 | * @param value |
339 | * allowed object is |
340 | * {@link Messages } |
341 | * |
342 | */ |
343 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
344 | public void setMessages(Messages value) { |
345 | this.messages = value; |
346 | } |
347 | |
348 | /** |
349 | * Gets the value of the any property. |
350 | * |
351 | * <p> |
352 | * This accessor method returns a reference to the live list, |
353 | * not a snapshot. Therefore any modification you make to the |
354 | * returned list will be present inside the JAXB object. |
355 | * This is why there is not a <CODE>set</CODE> method for the any property. |
356 | * |
357 | * <p> |
358 | * For example, to add a new item, do as follows: |
359 | * <pre> |
360 | * getAny().add(newItem); |
361 | * </pre> |
362 | * |
363 | * |
364 | * <p> |
365 | * Objects of the following type(s) are allowed in the list |
366 | * {@link Element } |
367 | * {@link Object } |
368 | * |
369 | * |
370 | */ |
371 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
372 | public List<Object> getAny() { |
373 | if (any == null) { |
374 | any = new ArrayList<Object>(); |
375 | } |
376 | return this.any; |
377 | } |
378 | |
379 | /** |
380 | * The identifier of this implementation. |
381 | * |
382 | * @return |
383 | * possible object is |
384 | * {@link String } |
385 | * |
386 | */ |
387 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
388 | public String getIdentifier() { |
389 | return identifier; |
390 | } |
391 | |
392 | /** |
393 | * Sets the value of the identifier property. |
394 | * |
395 | * @param value |
396 | * allowed object is |
397 | * {@link String } |
398 | * |
399 | */ |
400 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
401 | public void setIdentifier(String value) { |
402 | this.identifier = value; |
403 | } |
404 | |
405 | /** |
406 | * The name of this implementation. |
407 | * |
408 | * @return |
409 | * possible object is |
410 | * {@link String } |
411 | * |
412 | */ |
413 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
414 | public String getName() { |
415 | return name; |
416 | } |
417 | |
418 | /** |
419 | * Sets the value of the name property. |
420 | * |
421 | * @param value |
422 | * allowed object is |
423 | * {@link String } |
424 | * |
425 | */ |
426 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
427 | public void setName(String value) { |
428 | this.name = value; |
429 | } |
430 | |
431 | /** |
432 | * The identifier of the class providing instances of this implementation or {@code null}. |
433 | * |
434 | * @return |
435 | * possible object is |
436 | * {@link String } |
437 | * |
438 | */ |
439 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
440 | public String getClazz() { |
441 | return clazz; |
442 | } |
443 | |
444 | /** |
445 | * Sets the value of the clazz property. |
446 | * |
447 | * @param value |
448 | * allowed object is |
449 | * {@link String } |
450 | * |
451 | */ |
452 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
453 | public void setClazz(String value) { |
454 | this.clazz = value; |
455 | } |
456 | |
457 | /** |
458 | * An URI of the location providing instances of this implementation or {@code null}. |
459 | * |
460 | * @return |
461 | * possible object is |
462 | * {@link String } |
463 | * |
464 | */ |
465 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
466 | public String getLocation() { |
467 | return location; |
468 | } |
469 | |
470 | /** |
471 | * Sets the value of the location property. |
472 | * |
473 | * @param value |
474 | * allowed object is |
475 | * {@link String } |
476 | * |
477 | */ |
478 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
479 | public void setLocation(String value) { |
480 | this.location = value; |
481 | } |
482 | |
483 | /** |
484 | * The vendor of this implementation or {@code null}. |
485 | * |
486 | * @return |
487 | * possible object is |
488 | * {@link String } |
489 | * |
490 | */ |
491 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
492 | public String getVendor() { |
493 | return vendor; |
494 | } |
495 | |
496 | /** |
497 | * Sets the value of the vendor property. |
498 | * |
499 | * @param value |
500 | * allowed object is |
501 | * {@link String } |
502 | * |
503 | */ |
504 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
505 | public void setVendor(String value) { |
506 | this.vendor = value; |
507 | } |
508 | |
509 | /** |
510 | * The version of this implementation or {@code null}. |
511 | * |
512 | * @return |
513 | * possible object is |
514 | * {@link String } |
515 | * |
516 | */ |
517 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
518 | public String getVersion() { |
519 | return version; |
520 | } |
521 | |
522 | /** |
523 | * Sets the value of the version property. |
524 | * |
525 | * @param value |
526 | * allowed object is |
527 | * {@link String } |
528 | * |
529 | */ |
530 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
531 | public void setVersion(String value) { |
532 | this.version = value; |
533 | } |
534 | |
535 | /** |
536 | * {@code true} if this implementation is the final node in an inheritance hierarchy. |
537 | * |
538 | * @return |
539 | * possible object is |
540 | * {@link Boolean } |
541 | * |
542 | */ |
543 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
544 | public boolean isFinal() { |
545 | if (_final == null) { |
546 | return false; |
547 | } else { |
548 | return _final; |
549 | } |
550 | } |
551 | |
552 | /** |
553 | * Sets the value of the final property. |
554 | * |
555 | * @param value |
556 | * allowed object is |
557 | * {@link Boolean } |
558 | * |
559 | */ |
560 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
561 | public void setFinal(Boolean value) { |
562 | this._final = value; |
563 | } |
564 | |
565 | /** |
566 | * {@code true} if instances of this implementation do not retain state across operations. |
567 | * |
568 | * @return |
569 | * possible object is |
570 | * {@link Boolean } |
571 | * |
572 | */ |
573 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
574 | public boolean isStateless() { |
575 | if (stateless == null) { |
576 | return false; |
577 | } else { |
578 | return stateless; |
579 | } |
580 | } |
581 | |
582 | /** |
583 | * Sets the value of the stateless property. |
584 | * |
585 | * @param value |
586 | * allowed object is |
587 | * {@link Boolean } |
588 | * |
589 | */ |
590 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
591 | public void setStateless(Boolean value) { |
592 | this.stateless = value; |
593 | } |
594 | |
595 | /** |
596 | * {@code true} if this implementation is abstract. |
597 | * |
598 | * @return |
599 | * possible object is |
600 | * {@link Boolean } |
601 | * |
602 | */ |
603 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
604 | public boolean isAbstract() { |
605 | if (_abstract == null) { |
606 | return false; |
607 | } else { |
608 | return _abstract; |
609 | } |
610 | } |
611 | |
612 | /** |
613 | * Sets the value of the abstract property. |
614 | * |
615 | * @param value |
616 | * allowed object is |
617 | * {@link Boolean } |
618 | * |
619 | */ |
620 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
621 | public void setAbstract(Boolean value) { |
622 | this._abstract = value; |
623 | } |
624 | |
625 | /** |
626 | * {@code true} if this implementation declares the class given by property {@code clazz}. |
627 | * |
628 | * @return |
629 | * possible object is |
630 | * {@link Boolean } |
631 | * |
632 | */ |
633 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
634 | public boolean isClassDeclaration() { |
635 | if (classDeclaration == null) { |
636 | return false; |
637 | } else { |
638 | return classDeclaration; |
639 | } |
640 | } |
641 | |
642 | /** |
643 | * Sets the value of the classDeclaration property. |
644 | * |
645 | * @param value |
646 | * allowed object is |
647 | * {@link Boolean } |
648 | * |
649 | */ |
650 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
651 | public void setClassDeclaration(Boolean value) { |
652 | this.classDeclaration = value; |
653 | } |
654 | |
655 | /** |
656 | * Copies all values of property {@code Any} deeply. |
657 | * |
658 | * @param target |
659 | * The target to copy {@code source} to. |
660 | * @param source |
661 | * The source to copy from. |
662 | * @throws NullPointerException |
663 | * if {@code source} or {@code target} is {@code null}. |
664 | */ |
665 | @SuppressWarnings("unchecked") |
666 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
667 | private static void copyAny(final List<Object> source, final List<Object> target) { |
668 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
669 | if (!source.isEmpty()) { |
670 | for (Iterator it = source.iterator(); it.hasNext(); ) { |
671 | final Object next = it.next(); |
672 | if (next instanceof Element) { |
673 | // CWildcardTypeInfo: org.w3c.dom.Element |
674 | target.add(((Element)((Element) next).cloneNode(true))); |
675 | continue; |
676 | } |
677 | if (next instanceof Object) { |
678 | // CBuiltinLeafInfo: java.lang.Object |
679 | target.add(copyOfObject(((Object) next))); |
680 | continue; |
681 | } |
682 | // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ |
683 | throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'Any' of class 'org.jomc.model.Implementation'.")); |
684 | } |
685 | } |
686 | } |
687 | |
688 | /** |
689 | * Creates and returns a deep copy of a given object. |
690 | * |
691 | * @param o |
692 | * The instance to copy or {@code null}. |
693 | * @return |
694 | * A deep copy of {@code o} or {@code null} if {@code o} is {@code null}. |
695 | */ |
696 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
697 | private static Object copyOfObject(final Object o) { |
698 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
699 | if (o!= null) { |
700 | if (o.getClass().isPrimitive()) { |
701 | return o; |
702 | } |
703 | if (o.getClass().isArray()) { |
704 | return copyOfArray(o); |
705 | } |
706 | if (o instanceof Boolean) { |
707 | return o; |
708 | } |
709 | if (o instanceof Byte) { |
710 | return o; |
711 | } |
712 | if (o instanceof Character) { |
713 | return o; |
714 | } |
715 | if (o instanceof Double) { |
716 | return o; |
717 | } |
718 | if (o instanceof Enum) { |
719 | return o; |
720 | } |
721 | if (o instanceof Float) { |
722 | return o; |
723 | } |
724 | if (o instanceof Integer) { |
725 | return o; |
726 | } |
727 | if (o instanceof Long) { |
728 | return o; |
729 | } |
730 | if (o instanceof Short) { |
731 | return o; |
732 | } |
733 | if (o instanceof String) { |
734 | return o; |
735 | } |
736 | if (o instanceof BigDecimal) { |
737 | return o; |
738 | } |
739 | if (o instanceof BigInteger) { |
740 | return o; |
741 | } |
742 | if (o instanceof UUID) { |
743 | return o; |
744 | } |
745 | if (o instanceof QName) { |
746 | return o; |
747 | } |
748 | if (o instanceof Duration) { |
749 | return o; |
750 | } |
751 | if (o instanceof Currency) { |
752 | return o; |
753 | } |
754 | if (o instanceof XMLGregorianCalendar) { |
755 | return ((XMLGregorianCalendar) o).clone(); |
756 | } |
757 | if (o instanceof Date) { |
758 | return ((Date) o).clone(); |
759 | } |
760 | if (o instanceof Calendar) { |
761 | return ((Calendar) o).clone(); |
762 | } |
763 | if (o instanceof TimeZone) { |
764 | return ((TimeZone) o).clone(); |
765 | } |
766 | if (o instanceof Locale) { |
767 | return ((Locale) o).clone(); |
768 | } |
769 | if (o instanceof Element) { |
770 | return ((Element)((Element) o).cloneNode(true)); |
771 | } |
772 | if (o instanceof JAXBElement) { |
773 | return copyOFJAXBElement(((JAXBElement) o)); |
774 | } |
775 | try { |
776 | return o.getClass().getMethod("clone", ((Class[]) null)).invoke(o, ((Object[]) null)); |
777 | } catch (NoSuchMethodException e) { |
778 | if (o instanceof Serializable) { |
779 | return copyOfSerializable(((Serializable) o)); |
780 | } |
781 | // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ |
782 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e)); |
783 | } catch (IllegalAccessException e) { |
784 | // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ |
785 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e)); |
786 | } catch (InvocationTargetException e) { |
787 | // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ |
788 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e)); |
789 | } catch (SecurityException e) { |
790 | // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ |
791 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e)); |
792 | } catch (IllegalArgumentException e) { |
793 | // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ |
794 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e)); |
795 | } catch (ExceptionInInitializerError e) { |
796 | // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ |
797 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ o)+"'.")).initCause(e)); |
798 | } |
799 | } |
800 | return null; |
801 | } |
802 | |
803 | /** |
804 | * Creates and returns a deep copy of a given array. |
805 | * |
806 | * @param array |
807 | * The array to copy or {@code null}. |
808 | * @return |
809 | * A deep copy of {@code array} or {@code null} if {@code array} is {@code null}. |
810 | */ |
811 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
812 | private static Object copyOfArray(final Object array) { |
813 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
814 | if (array!= null) { |
815 | if (array.getClass() == boolean[].class) { |
816 | return copyOf(((boolean[]) array)); |
817 | } |
818 | if (array.getClass() == byte[].class) { |
819 | return copyOf(((byte[]) array)); |
820 | } |
821 | if (array.getClass() == char[].class) { |
822 | return copyOf(((char[]) array)); |
823 | } |
824 | if (array.getClass() == double[].class) { |
825 | return copyOf(((double[]) array)); |
826 | } |
827 | if (array.getClass() == float[].class) { |
828 | return copyOf(((float[]) array)); |
829 | } |
830 | if (array.getClass() == int[].class) { |
831 | return copyOf(((int[]) array)); |
832 | } |
833 | if (array.getClass() == long[].class) { |
834 | return copyOf(((long[]) array)); |
835 | } |
836 | if (array.getClass() == short[].class) { |
837 | return copyOf(((short[]) array)); |
838 | } |
839 | final int len = Array.getLength(array); |
840 | final Object copy = Array.newInstance(array.getClass().getComponentType(), len); |
841 | for (int i = (len- 1); (i >= 0); i--) { |
842 | Array.set(copy, i, copyOfObject(Array.get(array, i))); |
843 | } |
844 | return copy; |
845 | } |
846 | return null; |
847 | } |
848 | |
849 | /** |
850 | * Creates and returns a deep copy of a given array. |
851 | * |
852 | * @param array |
853 | * The array to copy or {@code null}. |
854 | * @return |
855 | * A deep copy of {@code array} or {@code null} if {@code array} is {@code null}. |
856 | */ |
857 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
858 | private static boolean[] copyOf(final boolean[] array) { |
859 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
860 | if (array!= null) { |
861 | final boolean[] copy = ((boolean[]) Array.newInstance(array.getClass().getComponentType(), array.length)); |
862 | System.arraycopy(array, 0, copy, 0, array.length); |
863 | return copy; |
864 | } |
865 | return null; |
866 | } |
867 | |
868 | /** |
869 | * Creates and returns a deep copy of a given array. |
870 | * |
871 | * @param array |
872 | * The array to copy or {@code null}. |
873 | * @return |
874 | * A deep copy of {@code array} or {@code null} if {@code array} is {@code null}. |
875 | */ |
876 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
877 | private static byte[] copyOf(final byte[] array) { |
878 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
879 | if (array!= null) { |
880 | final byte[] copy = ((byte[]) Array.newInstance(array.getClass().getComponentType(), array.length)); |
881 | System.arraycopy(array, 0, copy, 0, array.length); |
882 | return copy; |
883 | } |
884 | return null; |
885 | } |
886 | |
887 | /** |
888 | * Creates and returns a deep copy of a given array. |
889 | * |
890 | * @param array |
891 | * The array to copy or {@code null}. |
892 | * @return |
893 | * A deep copy of {@code array} or {@code null} if {@code array} is {@code null}. |
894 | */ |
895 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
896 | private static char[] copyOf(final char[] array) { |
897 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
898 | if (array!= null) { |
899 | final char[] copy = ((char[]) Array.newInstance(array.getClass().getComponentType(), array.length)); |
900 | System.arraycopy(array, 0, copy, 0, array.length); |
901 | return copy; |
902 | } |
903 | return null; |
904 | } |
905 | |
906 | /** |
907 | * Creates and returns a deep copy of a given array. |
908 | * |
909 | * @param array |
910 | * The array to copy or {@code null}. |
911 | * @return |
912 | * A deep copy of {@code array} or {@code null} if {@code array} is {@code null}. |
913 | */ |
914 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
915 | private static double[] copyOf(final double[] array) { |
916 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
917 | if (array!= null) { |
918 | final double[] copy = ((double[]) Array.newInstance(array.getClass().getComponentType(), array.length)); |
919 | System.arraycopy(array, 0, copy, 0, array.length); |
920 | return copy; |
921 | } |
922 | return null; |
923 | } |
924 | |
925 | /** |
926 | * Creates and returns a deep copy of a given array. |
927 | * |
928 | * @param array |
929 | * The array to copy or {@code null}. |
930 | * @return |
931 | * A deep copy of {@code array} or {@code null} if {@code array} is {@code null}. |
932 | */ |
933 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
934 | private static float[] copyOf(final float[] array) { |
935 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
936 | if (array!= null) { |
937 | final float[] copy = ((float[]) Array.newInstance(array.getClass().getComponentType(), array.length)); |
938 | System.arraycopy(array, 0, copy, 0, array.length); |
939 | return copy; |
940 | } |
941 | return null; |
942 | } |
943 | |
944 | /** |
945 | * Creates and returns a deep copy of a given array. |
946 | * |
947 | * @param array |
948 | * The array to copy or {@code null}. |
949 | * @return |
950 | * A deep copy of {@code array} or {@code null} if {@code array} is {@code null}. |
951 | */ |
952 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
953 | private static int[] copyOf(final int[] array) { |
954 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
955 | if (array!= null) { |
956 | final int[] copy = ((int[]) Array.newInstance(array.getClass().getComponentType(), array.length)); |
957 | System.arraycopy(array, 0, copy, 0, array.length); |
958 | return copy; |
959 | } |
960 | return null; |
961 | } |
962 | |
963 | /** |
964 | * Creates and returns a deep copy of a given array. |
965 | * |
966 | * @param array |
967 | * The array to copy or {@code null}. |
968 | * @return |
969 | * A deep copy of {@code array} or {@code null} if {@code array} is {@code null}. |
970 | */ |
971 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
972 | private static long[] copyOf(final long[] array) { |
973 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
974 | if (array!= null) { |
975 | final long[] copy = ((long[]) Array.newInstance(array.getClass().getComponentType(), array.length)); |
976 | System.arraycopy(array, 0, copy, 0, array.length); |
977 | return copy; |
978 | } |
979 | return null; |
980 | } |
981 | |
982 | /** |
983 | * Creates and returns a deep copy of a given array. |
984 | * |
985 | * @param array |
986 | * The array to copy or {@code null}. |
987 | * @return |
988 | * A deep copy of {@code array} or {@code null} if {@code array} is {@code null}. |
989 | */ |
990 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
991 | private static short[] copyOf(final short[] array) { |
992 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
993 | if (array!= null) { |
994 | final short[] copy = ((short[]) Array.newInstance(array.getClass().getComponentType(), array.length)); |
995 | System.arraycopy(array, 0, copy, 0, array.length); |
996 | return copy; |
997 | } |
998 | return null; |
999 | } |
1000 | |
1001 | /** |
1002 | * Creates and returns a deep copy of a given {@code JAXBElement} instance. |
1003 | * |
1004 | * @param element |
1005 | * The instance to copy or {@code null}. |
1006 | * @return |
1007 | * A deep copy of {@code element} or {@code null} if {@code element} is {@code null}. |
1008 | */ |
1009 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
1010 | private static JAXBElement copyOFJAXBElement(final JAXBElement element) { |
1011 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
1012 | if (element!= null) { |
1013 | final JAXBElement copy = new JAXBElement(element.getName(), element.getDeclaredType(), element.getScope(), element.getValue()); |
1014 | copy.setNil(element.isNil()); |
1015 | copy.setValue(copyOfObject(copy.getValue())); |
1016 | return copy; |
1017 | } |
1018 | return null; |
1019 | } |
1020 | |
1021 | /** |
1022 | * Creates and returns a deep copy of a given {@code Serializable}. |
1023 | * |
1024 | * @param serializable |
1025 | * The instance to copy or {@code null}. |
1026 | * @return |
1027 | * A deep copy of {@code serializable} or {@code null} if {@code serializable} is {@code null}. |
1028 | */ |
1029 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
1030 | private static Serializable copyOfSerializable(final Serializable serializable) { |
1031 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
1032 | if (serializable!= null) { |
1033 | try { |
1034 | final ByteArrayOutputStream byteArrayOutput = new ByteArrayOutputStream(); |
1035 | final ObjectOutputStream out = new ObjectOutputStream(byteArrayOutput); |
1036 | out.writeObject(serializable); |
1037 | out.close(); |
1038 | final ByteArrayInputStream byteArrayInput = new ByteArrayInputStream(byteArrayOutput.toByteArray()); |
1039 | final ObjectInputStream in = new ObjectInputStream(byteArrayInput); |
1040 | final Serializable copy = ((Serializable) in.readObject()); |
1041 | in.close(); |
1042 | return copy; |
1043 | } catch (SecurityException e) { |
1044 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e)); |
1045 | } catch (ClassNotFoundException e) { |
1046 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e)); |
1047 | } catch (InvalidClassException e) { |
1048 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e)); |
1049 | } catch (NotSerializableException e) { |
1050 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e)); |
1051 | } catch (StreamCorruptedException e) { |
1052 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e)); |
1053 | } catch (OptionalDataException e) { |
1054 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e)); |
1055 | } catch (IOException e) { |
1056 | throw((AssertionError) new AssertionError((("Unexpected instance during copying object '"+ serializable)+"'.")).initCause(e)); |
1057 | } |
1058 | } |
1059 | return null; |
1060 | } |
1061 | |
1062 | /** |
1063 | * Creates and returns a deep copy of this object. |
1064 | * |
1065 | * |
1066 | * @return |
1067 | * A deep copy of this object. |
1068 | */ |
1069 | @Override |
1070 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
1071 | public Implementation clone() { |
1072 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
1073 | return new Implementation(this); |
1074 | } |
1075 | |
1076 | /** |
1077 | * Gets the location URI used for locating instances of this implementation. |
1078 | * |
1079 | * @return The location URI used for locating instances of this implementation or {@code null}, if instances of this |
1080 | * implementation do not need to be located. |
1081 | * |
1082 | * @see #getLocation() |
1083 | */ |
1084 | public java.net.URI getLocationUri() |
1085 | { |
1086 | try |
1087 | { |
1088 | java.net.URI javaLocation = null; |
1089 | |
1090 | if ( this.getLocation() != null ) |
1091 | { |
1092 | javaLocation = new java.net.URI( this.getLocation() ); |
1093 | } |
1094 | |
1095 | return javaLocation; |
1096 | } |
1097 | catch ( final java.net.URISyntaxException e ) |
1098 | { |
1099 | throw new AssertionError( e ); |
1100 | } |
1101 | } |
1102 | |
1103 | |
1104 | } |