]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.xml.sax/src/org/w3/_2001/xmlschema/Restriction.java
XML Schema converter
[simantics/interop.git] / org.simantics.xml.sax / src / org / w3 / _2001 / xmlschema / Restriction.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.JAXBElement;\r
14 import javax.xml.bind.annotation.XmlAccessType;\r
15 import javax.xml.bind.annotation.XmlAccessorType;\r
16 import javax.xml.bind.annotation.XmlAttribute;\r
17 import javax.xml.bind.annotation.XmlElementRef;\r
18 import javax.xml.bind.annotation.XmlElementRefs;\r
19 import javax.xml.bind.annotation.XmlRootElement;\r
20 import javax.xml.bind.annotation.XmlType;\r
21 import javax.xml.namespace.QName;\r
22 \r
23 \r
24 /**\r
25  * \r
26  *           base attribute and simpleType child are mutually\r
27  *           exclusive, but one or other is required\r
28  *         \r
29  * \r
30  * <p>Java class for anonymous complex type.\r
31  * \r
32  * <p>The following schema fragment specifies the expected content contained within this class.\r
33  * \r
34  * <pre>\r
35  * &lt;complexType>\r
36  *   &lt;complexContent>\r
37  *     &lt;extension base="{http://www.w3.org/2001/XMLSchema}annotated">\r
38  *       &lt;group ref="{http://www.w3.org/2001/XMLSchema}simpleRestrictionModel"/>\r
39  *       &lt;attribute name="base" type="{http://www.w3.org/2001/XMLSchema}QName" />\r
40  *       &lt;anyAttribute processContents='lax' namespace='##other'/>\r
41  *     &lt;/extension>\r
42  *   &lt;/complexContent>\r
43  * &lt;/complexType>\r
44  * </pre>\r
45  * \r
46  * \r
47  */\r
48 @XmlAccessorType(XmlAccessType.FIELD)\r
49 @XmlType(name = "", propOrder = {\r
50     "simpleType",\r
51     "facets"\r
52 })\r
53 @XmlRootElement(name = "restriction")\r
54 public class Restriction\r
55     extends Annotated\r
56 {\r
57 \r
58     protected LocalSimpleType simpleType;\r
59     @XmlElementRefs({\r
60         @XmlElementRef(name = "enumeration", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
61         @XmlElementRef(name = "fractionDigits", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
62         @XmlElementRef(name = "totalDigits", namespace = "http://www.w3.org/2001/XMLSchema", type = TotalDigits.class, required = false),\r
63         @XmlElementRef(name = "minInclusive", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
64         @XmlElementRef(name = "pattern", namespace = "http://www.w3.org/2001/XMLSchema", type = Pattern.class, required = false),\r
65         @XmlElementRef(name = "whiteSpace", namespace = "http://www.w3.org/2001/XMLSchema", type = WhiteSpace.class, required = false),\r
66         @XmlElementRef(name = "minLength", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
67         @XmlElementRef(name = "maxLength", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
68         @XmlElementRef(name = "maxInclusive", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
69         @XmlElementRef(name = "length", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
70         @XmlElementRef(name = "maxExclusive", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false),\r
71         @XmlElementRef(name = "minExclusive", namespace = "http://www.w3.org/2001/XMLSchema", type = JAXBElement.class, required = false)\r
72     })\r
73     protected List<Object> facets;\r
74     @XmlAttribute(name = "base")\r
75     protected QName base;\r
76 \r
77     /**\r
78      * Gets the value of the simpleType property.\r
79      * \r
80      * @return\r
81      *     possible object is\r
82      *     {@link LocalSimpleType }\r
83      *     \r
84      */\r
85     public LocalSimpleType getSimpleType() {\r
86         return simpleType;\r
87     }\r
88 \r
89     /**\r
90      * Sets the value of the simpleType property.\r
91      * \r
92      * @param value\r
93      *     allowed object is\r
94      *     {@link LocalSimpleType }\r
95      *     \r
96      */\r
97     public void setSimpleType(LocalSimpleType value) {\r
98         this.simpleType = value;\r
99     }\r
100 \r
101     /**\r
102      * Gets the value of the facets property.\r
103      * \r
104      * <p>\r
105      * This accessor method returns a reference to the live list,\r
106      * not a snapshot. Therefore any modification you make to the\r
107      * returned list will be present inside the JAXB object.\r
108      * This is why there is not a <CODE>set</CODE> method for the facets property.\r
109      * \r
110      * <p>\r
111      * For example, to add a new item, do as follows:\r
112      * <pre>\r
113      *    getFacets().add(newItem);\r
114      * </pre>\r
115      * \r
116      * \r
117      * <p>\r
118      * Objects of the following type(s) are allowed in the list\r
119      * {@link JAXBElement }{@code <}{@link NumFacet }{@code >}\r
120      * {@link JAXBElement }{@code <}{@link NoFixedFacet }{@code >}\r
121      * {@link TotalDigits }\r
122      * {@link JAXBElement }{@code <}{@link Facet }{@code >}\r
123      * {@link JAXBElement }{@code <}{@link NumFacet }{@code >}\r
124      * {@link WhiteSpace }\r
125      * {@link Pattern }\r
126      * {@link JAXBElement }{@code <}{@link NumFacet }{@code >}\r
127      * {@link JAXBElement }{@code <}{@link Facet }{@code >}\r
128      * {@link JAXBElement }{@code <}{@link Facet }{@code >}\r
129      * {@link JAXBElement }{@code <}{@link NumFacet }{@code >}\r
130      * {@link JAXBElement }{@code <}{@link Facet }{@code >}\r
131      * \r
132      * \r
133      */\r
134     public List<Object> getFacets() {\r
135         if (facets == null) {\r
136             facets = new ArrayList<Object>();\r
137         }\r
138         return this.facets;\r
139     }\r
140 \r
141     /**\r
142      * Gets the value of the base property.\r
143      * \r
144      * @return\r
145      *     possible object is\r
146      *     {@link QName }\r
147      *     \r
148      */\r
149     public QName getBase() {\r
150         return base;\r
151     }\r
152 \r
153     /**\r
154      * Sets the value of the base property.\r
155      * \r
156      * @param value\r
157      *     allowed object is\r
158      *     {@link QName }\r
159      *     \r
160      */\r
161     public void setBase(QName value) {\r
162         this.base = value;\r
163     }\r
164 \r
165 }\r