]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.xml.sax/src/org/w3/_2001/xmlschema/Element.java
XML Schema converter
[simantics/interop.git] / org.simantics.xml.sax / src / org / w3 / _2001 / xmlschema / Element.java
1 //\r
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
6 //\r
7 \r
8 \r
9 package org.w3._2001.xmlschema;\r
10 \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
26 \r
27 \r
28 /**\r
29  * \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
35  * \r
36  * <p>Java class for element complex type.\r
37  * \r
38  * <p>The following schema fragment specifies the expected content contained within this class.\r
39  * \r
40  * <pre>\r
41  * &lt;complexType name="element">\r
42  *   &lt;complexContent>\r
43  *     &lt;extension base="{http://www.w3.org/2001/XMLSchema}annotated">\r
44  *       &lt;sequence>\r
45  *         &lt;choice minOccurs="0">\r
46  *           &lt;element name="simpleType" type="{http://www.w3.org/2001/XMLSchema}localSimpleType"/>\r
47  *           &lt;element name="complexType" type="{http://www.w3.org/2001/XMLSchema}localComplexType"/>\r
48  *         &lt;/choice>\r
49  *         &lt;group ref="{http://www.w3.org/2001/XMLSchema}identityConstraint" maxOccurs="unbounded" minOccurs="0"/>\r
50  *       &lt;/sequence>\r
51  *       &lt;attGroup ref="{http://www.w3.org/2001/XMLSchema}defRef"/>\r
52  *       &lt;attGroup ref="{http://www.w3.org/2001/XMLSchema}occurs"/>\r
53  *       &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}QName" />\r
54  *       &lt;attribute name="substitutionGroup" type="{http://www.w3.org/2001/XMLSchema}QName" />\r
55  *       &lt;attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" />\r
56  *       &lt;attribute name="fixed" type="{http://www.w3.org/2001/XMLSchema}string" />\r
57  *       &lt;attribute name="nillable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />\r
58  *       &lt;attribute name="abstract" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />\r
59  *       &lt;attribute name="final" type="{http://www.w3.org/2001/XMLSchema}derivationSet" />\r
60  *       &lt;attribute name="block" type="{http://www.w3.org/2001/XMLSchema}blockSet" />\r
61  *       &lt;attribute name="form" type="{http://www.w3.org/2001/XMLSchema}formChoice" />\r
62  *       &lt;anyAttribute processContents='lax' namespace='##other'/>\r
63  *     &lt;/extension>\r
64  *   &lt;/complexContent>\r
65  * &lt;/complexType>\r
66  * </pre>\r
67  * \r
68  * \r
69  */\r
70 @XmlAccessorType(XmlAccessType.FIELD)\r
71 @XmlType(name = "element", propOrder = {\r
72     "simpleType",\r
73     "complexType",\r
74     "identityConstraint"\r
75 })\r
76 @XmlSeeAlso({\r
77     TopLevelElement.class,\r
78     LocalElement.class\r
79 })\r
80 public abstract class Element\r
81     extends Annotated\r
82 {\r
83 \r
84     protected LocalSimpleType simpleType;\r
85     protected LocalComplexType complexType;\r
86     @XmlElementRefs({\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
90     })\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
124 \r
125     /**\r
126      * Gets the value of the simpleType property.\r
127      * \r
128      * @return\r
129      *     possible object is\r
130      *     {@link LocalSimpleType }\r
131      *     \r
132      */\r
133     public LocalSimpleType getSimpleType() {\r
134         return simpleType;\r
135     }\r
136 \r
137     /**\r
138      * Sets the value of the simpleType property.\r
139      * \r
140      * @param value\r
141      *     allowed object is\r
142      *     {@link LocalSimpleType }\r
143      *     \r
144      */\r
145     public void setSimpleType(LocalSimpleType value) {\r
146         this.simpleType = value;\r
147     }\r
148 \r
149     /**\r
150      * Gets the value of the complexType property.\r
151      * \r
152      * @return\r
153      *     possible object is\r
154      *     {@link LocalComplexType }\r
155      *     \r
156      */\r
157     public LocalComplexType getComplexType() {\r
158         return complexType;\r
159     }\r
160 \r
161     /**\r
162      * Sets the value of the complexType property.\r
163      * \r
164      * @param value\r
165      *     allowed object is\r
166      *     {@link LocalComplexType }\r
167      *     \r
168      */\r
169     public void setComplexType(LocalComplexType value) {\r
170         this.complexType = value;\r
171     }\r
172 \r
173     /**\r
174      * Gets the value of the identityConstraint property.\r
175      * \r
176      * <p>\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
181      * \r
182      * <p>\r
183      * For example, to add a new item, do as follows:\r
184      * <pre>\r
185      *    getIdentityConstraint().add(newItem);\r
186      * </pre>\r
187      * \r
188      * \r
189      * <p>\r
190      * Objects of the following type(s) are allowed in the list\r
191      * {@link JAXBElement }{@code <}{@link Keybase }{@code >}\r
192      * {@link Keyref }\r
193      * {@link JAXBElement }{@code <}{@link Keybase }{@code >}\r
194      * \r
195      * \r
196      */\r
197     public List<Object> getIdentityConstraint() {\r
198         if (identityConstraint == null) {\r
199             identityConstraint = new ArrayList<Object>();\r
200         }\r
201         return this.identityConstraint;\r
202     }\r
203 \r
204     /**\r
205      * Gets the value of the type property.\r
206      * \r
207      * @return\r
208      *     possible object is\r
209      *     {@link QName }\r
210      *     \r
211      */\r
212     public QName getType() {\r
213         return type;\r
214     }\r
215 \r
216     /**\r
217      * Sets the value of the type property.\r
218      * \r
219      * @param value\r
220      *     allowed object is\r
221      *     {@link QName }\r
222      *     \r
223      */\r
224     public void setType(QName value) {\r
225         this.type = value;\r
226     }\r
227 \r
228     /**\r
229      * Gets the value of the substitutionGroup property.\r
230      * \r
231      * @return\r
232      *     possible object is\r
233      *     {@link QName }\r
234      *     \r
235      */\r
236     public QName getSubstitutionGroup() {\r
237         return substitutionGroup;\r
238     }\r
239 \r
240     /**\r
241      * Sets the value of the substitutionGroup property.\r
242      * \r
243      * @param value\r
244      *     allowed object is\r
245      *     {@link QName }\r
246      *     \r
247      */\r
248     public void setSubstitutionGroup(QName value) {\r
249         this.substitutionGroup = value;\r
250     }\r
251 \r
252     /**\r
253      * Gets the value of the default property.\r
254      * \r
255      * @return\r
256      *     possible object is\r
257      *     {@link String }\r
258      *     \r
259      */\r
260     public String getDefault() {\r
261         return _default;\r
262     }\r
263 \r
264     /**\r
265      * Sets the value of the default property.\r
266      * \r
267      * @param value\r
268      *     allowed object is\r
269      *     {@link String }\r
270      *     \r
271      */\r
272     public void setDefault(String value) {\r
273         this._default = value;\r
274     }\r
275 \r
276     /**\r
277      * Gets the value of the fixed property.\r
278      * \r
279      * @return\r
280      *     possible object is\r
281      *     {@link String }\r
282      *     \r
283      */\r
284     public String getFixed() {\r
285         return fixed;\r
286     }\r
287 \r
288     /**\r
289      * Sets the value of the fixed property.\r
290      * \r
291      * @param value\r
292      *     allowed object is\r
293      *     {@link String }\r
294      *     \r
295      */\r
296     public void setFixed(String value) {\r
297         this.fixed = value;\r
298     }\r
299 \r
300     /**\r
301      * Gets the value of the nillable property.\r
302      * \r
303      * @return\r
304      *     possible object is\r
305      *     {@link Boolean }\r
306      *     \r
307      */\r
308     public boolean isNillable() {\r
309         if (nillable == null) {\r
310             return false;\r
311         } else {\r
312             return nillable;\r
313         }\r
314     }\r
315 \r
316     /**\r
317      * Sets the value of the nillable property.\r
318      * \r
319      * @param value\r
320      *     allowed object is\r
321      *     {@link Boolean }\r
322      *     \r
323      */\r
324     public void setNillable(Boolean value) {\r
325         this.nillable = value;\r
326     }\r
327 \r
328     /**\r
329      * Gets the value of the abstract property.\r
330      * \r
331      * @return\r
332      *     possible object is\r
333      *     {@link Boolean }\r
334      *     \r
335      */\r
336     public boolean isAbstract() {\r
337         if (_abstract == null) {\r
338             return false;\r
339         } else {\r
340             return _abstract;\r
341         }\r
342     }\r
343 \r
344     /**\r
345      * Sets the value of the abstract property.\r
346      * \r
347      * @param value\r
348      *     allowed object is\r
349      *     {@link Boolean }\r
350      *     \r
351      */\r
352     public void setAbstract(Boolean value) {\r
353         this._abstract = value;\r
354     }\r
355 \r
356     /**\r
357      * Gets the value of the final property.\r
358      * \r
359      * <p>\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
364      * \r
365      * <p>\r
366      * For example, to add a new item, do as follows:\r
367      * <pre>\r
368      *    getFinal().add(newItem);\r
369      * </pre>\r
370      * \r
371      * \r
372      * <p>\r
373      * Objects of the following type(s) are allowed in the list\r
374      * {@link String }\r
375      * \r
376      * \r
377      */\r
378     public List<String> getFinal() {\r
379         if (_final == null) {\r
380             _final = new ArrayList<String>();\r
381         }\r
382         return this._final;\r
383     }\r
384 \r
385     /**\r
386      * Gets the value of the block property.\r
387      * \r
388      * <p>\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
393      * \r
394      * <p>\r
395      * For example, to add a new item, do as follows:\r
396      * <pre>\r
397      *    getBlock().add(newItem);\r
398      * </pre>\r
399      * \r
400      * \r
401      * <p>\r
402      * Objects of the following type(s) are allowed in the list\r
403      * {@link String }\r
404      * \r
405      * \r
406      */\r
407     public List<String> getBlock() {\r
408         if (block == null) {\r
409             block = new ArrayList<String>();\r
410         }\r
411         return this.block;\r
412     }\r
413 \r
414     /**\r
415      * Gets the value of the form property.\r
416      * \r
417      * @return\r
418      *     possible object is\r
419      *     {@link FormChoice }\r
420      *     \r
421      */\r
422     public FormChoice getForm() {\r
423         return form;\r
424     }\r
425 \r
426     /**\r
427      * Sets the value of the form property.\r
428      * \r
429      * @param value\r
430      *     allowed object is\r
431      *     {@link FormChoice }\r
432      *     \r
433      */\r
434     public void setForm(FormChoice value) {\r
435         this.form = value;\r
436     }\r
437 \r
438     /**\r
439      * Gets the value of the name property.\r
440      * \r
441      * @return\r
442      *     possible object is\r
443      *     {@link String }\r
444      *     \r
445      */\r
446     public String getName() {\r
447         return name;\r
448     }\r
449 \r
450     /**\r
451      * Sets the value of the name property.\r
452      * \r
453      * @param value\r
454      *     allowed object is\r
455      *     {@link String }\r
456      *     \r
457      */\r
458     public void setName(String value) {\r
459         this.name = value;\r
460     }\r
461 \r
462     /**\r
463      * Gets the value of the ref property.\r
464      * \r
465      * @return\r
466      *     possible object is\r
467      *     {@link QName }\r
468      *     \r
469      */\r
470     public QName getRef() {\r
471         return ref;\r
472     }\r
473 \r
474     /**\r
475      * Sets the value of the ref property.\r
476      * \r
477      * @param value\r
478      *     allowed object is\r
479      *     {@link QName }\r
480      *     \r
481      */\r
482     public void setRef(QName value) {\r
483         this.ref = value;\r
484     }\r
485 \r
486     /**\r
487      * Gets the value of the minOccurs property.\r
488      * \r
489      * @return\r
490      *     possible object is\r
491      *     {@link BigInteger }\r
492      *     \r
493      */\r
494     public BigInteger getMinOccurs() {\r
495         if (minOccurs == null) {\r
496             return new BigInteger("1");\r
497         } else {\r
498             return minOccurs;\r
499         }\r
500     }\r
501 \r
502     /**\r
503      * Sets the value of the minOccurs property.\r
504      * \r
505      * @param value\r
506      *     allowed object is\r
507      *     {@link BigInteger }\r
508      *     \r
509      */\r
510     public void setMinOccurs(BigInteger value) {\r
511         this.minOccurs = value;\r
512     }\r
513 \r
514     /**\r
515      * Gets the value of the maxOccurs property.\r
516      * \r
517      * @return\r
518      *     possible object is\r
519      *     {@link String }\r
520      *     \r
521      */\r
522     public String getMaxOccurs() {\r
523         if (maxOccurs == null) {\r
524             return "1";\r
525         } else {\r
526             return maxOccurs;\r
527         }\r
528     }\r
529 \r
530     /**\r
531      * Sets the value of the maxOccurs property.\r
532      * \r
533      * @param value\r
534      *     allowed object is\r
535      *     {@link String }\r
536      *     \r
537      */\r
538     public void setMaxOccurs(String value) {\r
539         this.maxOccurs = value;\r
540     }\r
541 \r
542 }\r