View Javadoc
1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
3   // See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2019.04.20 at 02:12:22 AM CEST 
6   //
7   
8   
9   package org.opentrafficsim.xml.generated;
10  
11  import javax.annotation.Generated;
12  import javax.xml.bind.annotation.XmlEnum;
13  import javax.xml.bind.annotation.XmlEnumValue;
14  import javax.xml.bind.annotation.XmlType;
15  
16  
17  /**
18   * <p>Java class for parseType.
19   * 
20   * <p>The following schema fragment specifies the expected content contained within this class.
21   * <p>
22   * <pre>
23   * &lt;simpleType name="parseType"&gt;
24   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token"&gt;
25   *     &lt;enumeration value="xml"/&gt;
26   *     &lt;enumeration value="text"/&gt;
27   *   &lt;/restriction&gt;
28   * &lt;/simpleType&gt;
29   * </pre>
30   * 
31   */
32  @XmlType(name = "parseType", namespace = "http://www.w3.org/2001/XInclude")
33  @XmlEnum
34  @Generated(value = "com.sun.tools.xjc.Driver", date = "2019-04-20T02:12:22+02:00", comments = "JAXB RI v2.3.0")
35  public enum ParseType {
36  
37      @XmlEnumValue("xml")
38      XML("xml"),
39      @XmlEnumValue("text")
40      TEXT("text");
41      private final String value;
42  
43      ParseType(String v) {
44          value = v;
45      }
46  
47      public String value() {
48          return value;
49      }
50  
51      public static ParseType fromValue(String v) {
52          for (ParseType c: ParseType.values()) {
53              if (c.value.equals(v)) {
54                  return c;
55              }
56          }
57          throw new IllegalArgumentException(v);
58      }
59  
60  }