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