TypeRegistratiefGebiedT100Type.java

  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
  3. // Implementation, v2.2.8-b130911.1802
  4. // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
  5. // Any modifications to this file will be lost upon recompilation of the source schema.
  6. // Generated on: 2016.12.07 at 02:40:39 PM CET
  7. //

  8. package nl.b3p.topnl.top100nl;

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

  12. /**
  13.  * Java class for TypeRegistratiefGebiedT100Type.
  14.  *
  15.  * <p>The following schema fragment specifies the expected content contained within this class.
  16.  *
  17.  * <p>
  18.  *
  19.  * <pre>
  20.  * &lt;simpleType name="TypeRegistratiefGebiedT100Type">
  21.  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
  22.  *     &lt;enumeration value="land"/>
  23.  *     &lt;enumeration value="provincie"/>
  24.  *     &lt;enumeration value="gemeente"/>
  25.  *     &lt;enumeration value="enclave"/>
  26.  *   &lt;/restriction>
  27.  * &lt;/simpleType>
  28.  * </pre>
  29.  */
  30. @XmlType(
  31.     name = "TypeRegistratiefGebiedT100Type",
  32.     namespace = "http://register.geostandaarden.nl/gmlapplicatieschema/top100nl/1.1.0")
  33. @XmlEnum
  34. public enum TypeRegistratiefGebiedT100Type {
  35.   @XmlEnumValue("land")
  36.   LAND("land"),
  37.   @XmlEnumValue("provincie")
  38.   PROVINCIE("provincie"),
  39.   @XmlEnumValue("gemeente")
  40.   GEMEENTE("gemeente"),
  41.   @XmlEnumValue("enclave")
  42.   ENCLAVE("enclave");
  43.   private final String value;

  44.   TypeRegistratiefGebiedT100Type(String v) {
  45.     value = v;
  46.   }

  47.   public String value() {
  48.     return value;
  49.   }

  50.   public static TypeRegistratiefGebiedT100Type fromValue(String v) {
  51.     for (TypeRegistratiefGebiedT100Type c : TypeRegistratiefGebiedT100Type.values()) {
  52.       if (c.value.equals(v)) {
  53.         return c;
  54.       }
  55.     }
  56.     throw new IllegalArgumentException(v);
  57.   }
  58. }