]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.xml.sax/src/org/w3/_2001/xmlschema/Union.java
XML Schema converter
[simantics/interop.git] / org.simantics.xml.sax / src / org / w3 / _2001 / xmlschema / Union.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.util.ArrayList;\r
12 import java.util.List;\r
13 import javax.xml.bind.annotation.XmlAccessType;\r
14 import javax.xml.bind.annotation.XmlAccessorType;\r
15 import javax.xml.bind.annotation.XmlAttribute;\r
16 import javax.xml.bind.annotation.XmlRootElement;\r
17 import javax.xml.bind.annotation.XmlType;\r
18 import javax.xml.namespace.QName;\r
19 \r
20 \r
21 /**\r
22  * \r
23  *           memberTypes attribute must be non-empty or there must be\r
24  *           at least one simpleType child\r
25  *         \r
26  * \r
27  * <p>Java class for anonymous complex type.\r
28  * \r
29  * <p>The following schema fragment specifies the expected content contained within this class.\r
30  * \r
31  * <pre>\r
32  * &lt;complexType>\r
33  *   &lt;complexContent>\r
34  *     &lt;extension base="{http://www.w3.org/2001/XMLSchema}annotated">\r
35  *       &lt;sequence>\r
36  *         &lt;element name="simpleType" type="{http://www.w3.org/2001/XMLSchema}localSimpleType" maxOccurs="unbounded" minOccurs="0"/>\r
37  *       &lt;/sequence>\r
38  *       &lt;attribute name="memberTypes">\r
39  *         &lt;simpleType>\r
40  *           &lt;list itemType="{http://www.w3.org/2001/XMLSchema}QName" />\r
41  *         &lt;/simpleType>\r
42  *       &lt;/attribute>\r
43  *       &lt;anyAttribute processContents='lax' namespace='##other'/>\r
44  *     &lt;/extension>\r
45  *   &lt;/complexContent>\r
46  * &lt;/complexType>\r
47  * </pre>\r
48  * \r
49  * \r
50  */\r
51 @XmlAccessorType(XmlAccessType.FIELD)\r
52 @XmlType(name = "", propOrder = {\r
53     "simpleType"\r
54 })\r
55 @XmlRootElement(name = "union")\r
56 public class Union\r
57     extends Annotated\r
58 {\r
59 \r
60     protected List<LocalSimpleType> simpleType;\r
61     @XmlAttribute(name = "memberTypes")\r
62     protected List<QName> memberTypes;\r
63 \r
64     /**\r
65      * Gets the value of the simpleType property.\r
66      * \r
67      * <p>\r
68      * This accessor method returns a reference to the live list,\r
69      * not a snapshot. Therefore any modification you make to the\r
70      * returned list will be present inside the JAXB object.\r
71      * This is why there is not a <CODE>set</CODE> method for the simpleType property.\r
72      * \r
73      * <p>\r
74      * For example, to add a new item, do as follows:\r
75      * <pre>\r
76      *    getSimpleType().add(newItem);\r
77      * </pre>\r
78      * \r
79      * \r
80      * <p>\r
81      * Objects of the following type(s) are allowed in the list\r
82      * {@link LocalSimpleType }\r
83      * \r
84      * \r
85      */\r
86     public List<LocalSimpleType> getSimpleType() {\r
87         if (simpleType == null) {\r
88             simpleType = new ArrayList<LocalSimpleType>();\r
89         }\r
90         return this.simpleType;\r
91     }\r
92 \r
93     /**\r
94      * Gets the value of the memberTypes property.\r
95      * \r
96      * <p>\r
97      * This accessor method returns a reference to the live list,\r
98      * not a snapshot. Therefore any modification you make to the\r
99      * returned list will be present inside the JAXB object.\r
100      * This is why there is not a <CODE>set</CODE> method for the memberTypes property.\r
101      * \r
102      * <p>\r
103      * For example, to add a new item, do as follows:\r
104      * <pre>\r
105      *    getMemberTypes().add(newItem);\r
106      * </pre>\r
107      * \r
108      * \r
109      * <p>\r
110      * Objects of the following type(s) are allowed in the list\r
111      * {@link QName }\r
112      * \r
113      * \r
114      */\r
115     public List<QName> getMemberTypes() {\r
116         if (memberTypes == null) {\r
117             memberTypes = new ArrayList<QName>();\r
118         }\r
119         return this.memberTypes;\r
120     }\r
121 \r
122 }\r