2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
\r
3 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
\r
4 // Any modifications to this file will be lost upon recompilation of the source schema.
\r
5 // Generated on: 2015.06.17 at 02:58:58 PM EEST
\r
9 package org.w3._2001.xmlschema;
\r
11 import java.math.BigInteger;
\r
12 import java.util.ArrayList;
\r
13 import java.util.List;
\r
14 import javax.xml.bind.JAXBElement;
\r
15 import javax.xml.bind.annotation.XmlAccessType;
\r
16 import javax.xml.bind.annotation.XmlAccessorType;
\r
17 import javax.xml.bind.annotation.XmlAttribute;
\r
18 import javax.xml.bind.annotation.XmlElementRef;
\r
19 import javax.xml.bind.annotation.XmlElementRefs;
\r
20 import javax.xml.bind.annotation.XmlSchemaType;
\r
21 import javax.xml.bind.annotation.XmlSeeAlso;
\r
22 import javax.xml.bind.annotation.XmlType;
\r
23 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
\r
24 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
\r
25 import javax.xml.namespace.QName;
\r
30 * The element element can be used either
\r
31 * at the top level to define an element-type binding globally,
\r
32 * or within a content model to either reference a globally-defined
\r
33 * element or type or declare an element-type binding locally.
\r
34 * The ref form is not allowed at the top level.
\r
36 * <p>Java class for element complex type.
\r
38 * <p>The following schema fragment specifies the expected content contained within this class.
\r
41 * <complexType name="element">
\r
42 * <complexContent>
\r
43 * <extension base="{http://www.w3.org/2001/XMLSchema}annotated">
\r
45 * <choice minOccurs="0">
\r
46 * <element name="simpleType" type="{http://www.w3.org/2001/XMLSchema}localSimpleType"/>
\r
47 * <element name="complexType" type="{http://www.w3.org/2001/XMLSchema}localComplexType"/>
\r
49 * <group ref="{http://www.w3.org/2001/XMLSchema}identityConstraint" maxOccurs="unbounded" minOccurs="0"/>
\r
51 * <attGroup ref="{http://www.w3.org/2001/XMLSchema}defRef"/>
\r
52 * <attGroup ref="{http://www.w3.org/2001/XMLSchema}occurs"/>
\r
53 * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}QName" />
\r
54 * <attribute name="substitutionGroup" type="{http://www.w3.org/2001/XMLSchema}QName" />
\r
55 * <attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" />
\r
56 * <attribute name="fixed" type="{http://www.w3.org/2001/XMLSchema}string" />
\r
57 * <attribute name="nillable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
\r
58 * <attribute name="abstract" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
\r
59 * <attribute name="final" type="{http://www.w3.org/2001/XMLSchema}derivationSet" />
\r
60 * <attribute name="block" type="{http://www.w3.org/2001/XMLSchema}blockSet" />
\r
61 * <attribute name="form" type="{http://www.w3.org/2001/XMLSchema}formChoice" />
\r
62 * <anyAttribute processContents='lax' namespace='##other'/>
\r
64 * </complexContent>
\r
70 @XmlAccessorType(XmlAccessType.FIELD)
\r
71 @XmlType(name = "element", propOrder = {
\r
74 "identityConstraint"
\r
77 TopLevelElement.class,
\r
80 public abstract class Element
\r
84 protected LocalSimpleType simpleType;
\r
85 protected LocalComplexType complexType;
\r
87 @XmlElementRef(name = "keyref", namespace = "http://www.w3.org/2001/XMLSchema", type = Keyref.class, required = false),
\r
88 @XmlElementRef(name = "key", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),
\r
89 @XmlElementRef(name = "unique", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false)
\r
91 protected List<Object> identityConstraint;
\r
92 @XmlAttribute(name = "type")
\r
93 protected QName type;
\r
94 @XmlAttribute(name = "substitutionGroup")
\r
95 protected QName substitutionGroup;
\r
96 @XmlAttribute(name = "default")
\r
97 protected String _default;
\r
98 @XmlAttribute(name = "fixed")
\r
99 protected String fixed;
\r
100 @XmlAttribute(name = "nillable")
\r
101 protected Boolean nillable;
\r
102 @XmlAttribute(name = "abstract")
\r
103 protected Boolean _abstract;
\r
104 @XmlAttribute(name = "final")
\r
105 @XmlSchemaType(name = "derivationSet")
\r
106 protected List<String> _final;
\r
107 @XmlAttribute(name = "block")
\r
108 @XmlSchemaType(name = "blockSet")
\r
109 protected List<String> block;
\r
110 @XmlAttribute(name = "form")
\r
111 protected FormChoice form;
\r
112 @XmlAttribute(name = "name")
\r
113 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
\r
114 @XmlSchemaType(name = "NCName")
\r
115 protected String name;
\r
116 @XmlAttribute(name = "ref")
\r
117 protected QName ref;
\r
118 @XmlAttribute(name = "minOccurs")
\r
119 @XmlSchemaType(name = "nonNegativeInteger")
\r
120 protected BigInteger minOccurs;
\r
121 @XmlAttribute(name = "maxOccurs")
\r
122 @XmlSchemaType(name = "allNNI")
\r
123 protected String maxOccurs;
\r
126 * Gets the value of the simpleType property.
\r
129 * possible object is
\r
130 * {@link LocalSimpleType }
\r
133 public LocalSimpleType getSimpleType() {
\r
138 * Sets the value of the simpleType property.
\r
141 * allowed object is
\r
142 * {@link LocalSimpleType }
\r
145 public void setSimpleType(LocalSimpleType value) {
\r
146 this.simpleType = value;
\r
150 * Gets the value of the complexType property.
\r
153 * possible object is
\r
154 * {@link LocalComplexType }
\r
157 public LocalComplexType getComplexType() {
\r
158 return complexType;
\r
162 * Sets the value of the complexType property.
\r
165 * allowed object is
\r
166 * {@link LocalComplexType }
\r
169 public void setComplexType(LocalComplexType value) {
\r
170 this.complexType = value;
\r
174 * Gets the value of the identityConstraint property.
\r
177 * This accessor method returns a reference to the live list,
\r
178 * not a snapshot. Therefore any modification you make to the
\r
179 * returned list will be present inside the JAXB object.
\r
180 * This is why there is not a <CODE>set</CODE> method for the identityConstraint property.
\r
183 * For example, to add a new item, do as follows:
\r
185 * getIdentityConstraint().add(newItem);
\r
190 * Objects of the following type(s) are allowed in the list
\r
191 * {@link JAXBElement }{@code <}{@link Keybase }{@code >}
\r
193 * {@link JAXBElement }{@code <}{@link Keybase }{@code >}
\r
197 public List<Object> getIdentityConstraint() {
\r
198 if (identityConstraint == null) {
\r
199 identityConstraint = new ArrayList<Object>();
\r
201 return this.identityConstraint;
\r
205 * Gets the value of the type property.
\r
208 * possible object is
\r
212 public QName getType() {
\r
217 * Sets the value of the type property.
\r
220 * allowed object is
\r
224 public void setType(QName value) {
\r
229 * Gets the value of the substitutionGroup property.
\r
232 * possible object is
\r
236 public QName getSubstitutionGroup() {
\r
237 return substitutionGroup;
\r
241 * Sets the value of the substitutionGroup property.
\r
244 * allowed object is
\r
248 public void setSubstitutionGroup(QName value) {
\r
249 this.substitutionGroup = value;
\r
253 * Gets the value of the default property.
\r
256 * possible object is
\r
260 public String getDefault() {
\r
265 * Sets the value of the default property.
\r
268 * allowed object is
\r
272 public void setDefault(String value) {
\r
273 this._default = value;
\r
277 * Gets the value of the fixed property.
\r
280 * possible object is
\r
284 public String getFixed() {
\r
289 * Sets the value of the fixed property.
\r
292 * allowed object is
\r
296 public void setFixed(String value) {
\r
297 this.fixed = value;
\r
301 * Gets the value of the nillable property.
\r
304 * possible object is
\r
308 public boolean isNillable() {
\r
309 if (nillable == null) {
\r
317 * Sets the value of the nillable property.
\r
320 * allowed object is
\r
324 public void setNillable(Boolean value) {
\r
325 this.nillable = value;
\r
329 * Gets the value of the abstract property.
\r
332 * possible object is
\r
336 public boolean isAbstract() {
\r
337 if (_abstract == null) {
\r
345 * Sets the value of the abstract property.
\r
348 * allowed object is
\r
352 public void setAbstract(Boolean value) {
\r
353 this._abstract = value;
\r
357 * Gets the value of the final property.
\r
360 * This accessor method returns a reference to the live list,
\r
361 * not a snapshot. Therefore any modification you make to the
\r
362 * returned list will be present inside the JAXB object.
\r
363 * This is why there is not a <CODE>set</CODE> method for the final property.
\r
366 * For example, to add a new item, do as follows:
\r
368 * getFinal().add(newItem);
\r
373 * Objects of the following type(s) are allowed in the list
\r
378 public List<String> getFinal() {
\r
379 if (_final == null) {
\r
380 _final = new ArrayList<String>();
\r
382 return this._final;
\r
386 * Gets the value of the block property.
\r
389 * This accessor method returns a reference to the live list,
\r
390 * not a snapshot. Therefore any modification you make to the
\r
391 * returned list will be present inside the JAXB object.
\r
392 * This is why there is not a <CODE>set</CODE> method for the block property.
\r
395 * For example, to add a new item, do as follows:
\r
397 * getBlock().add(newItem);
\r
402 * Objects of the following type(s) are allowed in the list
\r
407 public List<String> getBlock() {
\r
408 if (block == null) {
\r
409 block = new ArrayList<String>();
\r
415 * Gets the value of the form property.
\r
418 * possible object is
\r
419 * {@link FormChoice }
\r
422 public FormChoice getForm() {
\r
427 * Sets the value of the form property.
\r
430 * allowed object is
\r
431 * {@link FormChoice }
\r
434 public void setForm(FormChoice value) {
\r
439 * Gets the value of the name property.
\r
442 * possible object is
\r
446 public String getName() {
\r
451 * Sets the value of the name property.
\r
454 * allowed object is
\r
458 public void setName(String value) {
\r
463 * Gets the value of the ref property.
\r
466 * possible object is
\r
470 public QName getRef() {
\r
475 * Sets the value of the ref property.
\r
478 * allowed object is
\r
482 public void setRef(QName value) {
\r
487 * Gets the value of the minOccurs property.
\r
490 * possible object is
\r
491 * {@link BigInteger }
\r
494 public BigInteger getMinOccurs() {
\r
495 if (minOccurs == null) {
\r
496 return new BigInteger("1");
\r
503 * Sets the value of the minOccurs property.
\r
506 * allowed object is
\r
507 * {@link BigInteger }
\r
510 public void setMinOccurs(BigInteger value) {
\r
511 this.minOccurs = value;
\r
515 * Gets the value of the maxOccurs property.
\r
518 * possible object is
\r
522 public String getMaxOccurs() {
\r
523 if (maxOccurs == null) {
\r
531 * Sets the value of the maxOccurs property.
\r
534 * allowed object is
\r
538 public void setMaxOccurs(String value) {
\r
539 this.maxOccurs = value;
\r