]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.xml.sax/src/org/w3/_2001/xmlschema/TypeDerivationControl.java
XML Schema converter
[simantics/interop.git] / org.simantics.xml.sax / src / org / w3 / _2001 / xmlschema / TypeDerivationControl.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 javax.xml.bind.annotation.XmlEnum;\r
12 import javax.xml.bind.annotation.XmlEnumValue;\r
13 import javax.xml.bind.annotation.XmlType;\r
14 \r
15 \r
16 /**\r
17  * <p>Java class for typeDerivationControl.\r
18  * \r
19  * <p>The following schema fragment specifies the expected content contained within this class.\r
20  * <p>\r
21  * <pre>\r
22  * &lt;simpleType name="typeDerivationControl">\r
23  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}derivationControl">\r
24  *     &lt;enumeration value="extension"/>\r
25  *     &lt;enumeration value="restriction"/>\r
26  *     &lt;enumeration value="list"/>\r
27  *     &lt;enumeration value="union"/>\r
28  *   &lt;/restriction>\r
29  * &lt;/simpleType>\r
30  * </pre>\r
31  * \r
32  */\r
33 @XmlType(name = "typeDerivationControl")\r
34 @XmlEnum(DerivationControl.class)\r
35 public enum TypeDerivationControl {\r
36 \r
37     @XmlEnumValue("extension")\r
38     EXTENSION(DerivationControl.EXTENSION),\r
39     @XmlEnumValue("restriction")\r
40     RESTRICTION(DerivationControl.RESTRICTION),\r
41     @XmlEnumValue("list")\r
42     LIST(DerivationControl.LIST),\r
43     @XmlEnumValue("union")\r
44     UNION(DerivationControl.UNION);\r
45     private final DerivationControl value;\r
46 \r
47     TypeDerivationControl(DerivationControl v) {\r
48         value = v;\r
49     }\r
50 \r
51     public DerivationControl value() {\r
52         return value;\r
53     }\r
54 \r
55     public static TypeDerivationControl fromValue(DerivationControl v) {\r
56         for (TypeDerivationControl c: TypeDerivationControl.values()) {\r
57             if (c.value.equals(v)) {\r
58                 return c;\r
59             }\r
60         }\r
61         throw new IllegalArgumentException(v.toString());\r
62     }\r
63 \r
64 }\r