ParseType.java

  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: 2020.11.01 at 07:11:19 PM CET
  6. //


  7. package org.opentrafficsim.xml.generated;

  8. import javax.annotation.Generated;
  9. import javax.xml.bind.annotation.XmlEnum;
  10. import javax.xml.bind.annotation.XmlEnumValue;
  11. import javax.xml.bind.annotation.XmlType;


  12. /**
  13.  * <p>Java class for parseType.
  14.  *
  15.  * <p>The following schema fragment specifies the expected content contained within this class.
  16.  * <p>
  17.  * <pre>
  18.  * &lt;simpleType name="parseType"&gt;
  19.  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token"&gt;
  20.  *     &lt;enumeration value="xml"/&gt;
  21.  *     &lt;enumeration value="text"/&gt;
  22.  *   &lt;/restriction&gt;
  23.  * &lt;/simpleType&gt;
  24.  * </pre>
  25.  *
  26.  */
  27. @XmlType(name = "parseType", namespace = "http://www.w3.org/2001/XInclude")
  28. @XmlEnum
  29. @Generated(value = "com.sun.tools.xjc.Driver", date = "2020-11-01T07:11:19+01:00", comments = "JAXB RI v2.3.0")
  30. public enum ParseType {

  31.     @XmlEnumValue("xml")
  32.     XML("xml"),
  33.     @XmlEnumValue("text")
  34.     TEXT("text");
  35.     private final String value;

  36.     ParseType(String v) {
  37.         value = v;
  38.     }

  39.     public String value() {
  40.         return value;
  41.     }

  42.     public static ParseType fromValue(String v) {
  43.         for (ParseType c: ParseType.values()) {
  44.             if (c.value.equals(v)) {
  45.                 return c;
  46.             }
  47.         }
  48.         throw new IllegalArgumentException(v);
  49.     }

  50. }