]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.xml.sax/src/org/w3/_2001/xmlschema/Group.java
XML Schema converter
[simantics/interop.git] / org.simantics.xml.sax / src / org / w3 / _2001 / xmlschema / Group.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  *    group type for explicit groups, named top-level groups and\r
31  *    group references\r
32  * \r
33  * <p>Java class for group complex type.\r
34  * \r
35  * <p>The following schema fragment specifies the expected content contained within this class.\r
36  * \r
37  * <pre>\r
38  * &lt;complexType name="group">\r
39  *   &lt;complexContent>\r
40  *     &lt;extension base="{http://www.w3.org/2001/XMLSchema}annotated">\r
41  *       &lt;group ref="{http://www.w3.org/2001/XMLSchema}particle" maxOccurs="unbounded" minOccurs="0"/>\r
42  *       &lt;attGroup ref="{http://www.w3.org/2001/XMLSchema}occurs"/>\r
43  *       &lt;attGroup ref="{http://www.w3.org/2001/XMLSchema}defRef"/>\r
44  *       &lt;anyAttribute processContents='lax' namespace='##other'/>\r
45  *     &lt;/extension>\r
46  *   &lt;/complexContent>\r
47  * &lt;/complexType>\r
48  * </pre>\r
49  * \r
50  * \r
51  */\r
52 @XmlAccessorType(XmlAccessType.FIELD)\r
53 @XmlType(name = "group", propOrder = {\r
54     "particle"\r
55 })\r
56 @XmlSeeAlso({\r
57     ExplicitGroup.class,\r
58     RealGroup.class\r
59 })\r
60 public abstract class Group\r
61     extends Annotated\r
62 {\r
63 \r
64     @XmlElementRefs({\r
65         @XmlElementRef(name = "all", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
66         @XmlElementRef(name = "any", namespace = "http://www.w3.org/2001/XMLSchema", type = Any.class, required = false),\r
67         @XmlElementRef(name = "element", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
68         @XmlElementRef(name = "group", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
69         @XmlElementRef(name = "choice", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
70         @XmlElementRef(name = "sequence", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false)\r
71     })\r
72     protected List<Object> particle;\r
73     @XmlAttribute(name = "minOccurs")\r
74     @XmlSchemaType(name = "nonNegativeInteger")\r
75     protected BigInteger minOccurs;\r
76     @XmlAttribute(name = "maxOccurs")\r
77     @XmlSchemaType(name = "allNNI")\r
78     protected String maxOccurs;\r
79     @XmlAttribute(name = "name")\r
80     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)\r
81     @XmlSchemaType(name = "NCName")\r
82     protected String name;\r
83     @XmlAttribute(name = "ref")\r
84     protected QName ref;\r
85 \r
86     /**\r
87      * Gets the value of the particle property.\r
88      * \r
89      * <p>\r
90      * This accessor method returns a reference to the live list,\r
91      * not a snapshot. Therefore any modification you make to the\r
92      * returned list will be present inside the JAXB object.\r
93      * This is why there is not a <CODE>set</CODE> method for the particle property.\r
94      * \r
95      * <p>\r
96      * For example, to add a new item, do as follows:\r
97      * <pre>\r
98      *    getParticle().add(newItem);\r
99      * </pre>\r
100      * \r
101      * \r
102      * <p>\r
103      * Objects of the following type(s) are allowed in the list\r
104      * {@link JAXBElement }{@code <}{@link All }{@code >}\r
105      * {@link JAXBElement }{@code <}{@link GroupRef }{@code >}\r
106      * {@link Any }\r
107      * {@link JAXBElement }{@code <}{@link ExplicitGroup }{@code >}\r
108      * {@link JAXBElement }{@code <}{@link LocalElement }{@code >}\r
109      * {@link JAXBElement }{@code <}{@link ExplicitGroup }{@code >}\r
110      * \r
111      * \r
112      */\r
113     public List<Object> getParticle() {\r
114         if (particle == null) {\r
115             particle = new ArrayList<Object>();\r
116         }\r
117         return this.particle;\r
118     }\r
119 \r
120     /**\r
121      * Gets the value of the minOccurs property.\r
122      * \r
123      * @return\r
124      *     possible object is\r
125      *     {@link BigInteger }\r
126      *     \r
127      */\r
128     public BigInteger getMinOccurs() {\r
129         if (minOccurs == null) {\r
130             return new BigInteger("1");\r
131         } else {\r
132             return minOccurs;\r
133         }\r
134     }\r
135 \r
136     /**\r
137      * Sets the value of the minOccurs property.\r
138      * \r
139      * @param value\r
140      *     allowed object is\r
141      *     {@link BigInteger }\r
142      *     \r
143      */\r
144     public void setMinOccurs(BigInteger value) {\r
145         this.minOccurs = value;\r
146     }\r
147 \r
148     /**\r
149      * Gets the value of the maxOccurs property.\r
150      * \r
151      * @return\r
152      *     possible object is\r
153      *     {@link String }\r
154      *     \r
155      */\r
156     public String getMaxOccurs() {\r
157         if (maxOccurs == null) {\r
158             return "1";\r
159         } else {\r
160             return maxOccurs;\r
161         }\r
162     }\r
163 \r
164     /**\r
165      * Sets the value of the maxOccurs property.\r
166      * \r
167      * @param value\r
168      *     allowed object is\r
169      *     {@link String }\r
170      *     \r
171      */\r
172     public void setMaxOccurs(String value) {\r
173         this.maxOccurs = value;\r
174     }\r
175 \r
176     /**\r
177      * Gets the value of the name property.\r
178      * \r
179      * @return\r
180      *     possible object is\r
181      *     {@link String }\r
182      *     \r
183      */\r
184     public String getName() {\r
185         return name;\r
186     }\r
187 \r
188     /**\r
189      * Sets the value of the name property.\r
190      * \r
191      * @param value\r
192      *     allowed object is\r
193      *     {@link String }\r
194      *     \r
195      */\r
196     public void setName(String value) {\r
197         this.name = value;\r
198     }\r
199 \r
200     /**\r
201      * Gets the value of the ref property.\r
202      * \r
203      * @return\r
204      *     possible object is\r
205      *     {@link QName }\r
206      *     \r
207      */\r
208     public QName getRef() {\r
209         return ref;\r
210     }\r
211 \r
212     /**\r
213      * Sets the value of the ref property.\r
214      * \r
215      * @param value\r
216      *     allowed object is\r
217      *     {@link QName }\r
218      *     \r
219      */\r
220     public void setRef(QName value) {\r
221         this.ref = value;\r
222     }\r
223 \r
224 }\r