]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.xml.sax/src/org/w3/_2001/xmlschema/ReducedDerivationControl.java
CellDataResolverBase causes an exception when processing empty rows.
[simantics/interop.git] / org.simantics.xml.sax / src / org / w3 / _2001 / xmlschema / ReducedDerivationControl.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 reducedDerivationControl.\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="reducedDerivationControl">\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;/restriction>\r
27  * &lt;/simpleType>\r
28  * </pre>\r
29  * \r
30  */\r
31 @XmlType(name = "reducedDerivationControl")\r
32 @XmlEnum(DerivationControl.class)\r
33 public enum ReducedDerivationControl {\r
34 \r
35     @XmlEnumValue("extension")\r
36     EXTENSION(DerivationControl.EXTENSION),\r
37     @XmlEnumValue("restriction")\r
38     RESTRICTION(DerivationControl.RESTRICTION);\r
39     private final DerivationControl value;\r
40 \r
41     ReducedDerivationControl(DerivationControl v) {\r
42         value = v;\r
43     }\r
44 \r
45     public DerivationControl value() {\r
46         return value;\r
47     }\r
48 \r
49     public static ReducedDerivationControl fromValue(DerivationControl v) {\r
50         for (ReducedDerivationControl c: ReducedDerivationControl.values()) {\r
51             if (c.value.equals(v)) {\r
52                 return c;\r
53             }\r
54         }\r
55         throw new IllegalArgumentException(v.toString());\r
56     }\r
57 \r
58 }\r