AggregationType.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: 2018.12.31 at 10:32:54 AM CET
  7. //

  8. package nl.b3p.topnl.top50nl;

  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 AggregationType.
  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="AggregationType">
  21.  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
  22.  *     &lt;enumeration value="set"/>
  23.  *     &lt;enumeration value="bag"/>
  24.  *     &lt;enumeration value="sequence"/>
  25.  *     &lt;enumeration value="array"/>
  26.  *     &lt;enumeration value="record"/>
  27.  *     &lt;enumeration value="table"/>
  28.  *   &lt;/restriction>
  29.  * &lt;/simpleType>
  30.  * </pre>
  31.  */
  32. @XmlType(name = "AggregationType")
  33. @XmlEnum
  34. public enum AggregationType {
  35.   @XmlEnumValue("set")
  36.   SET("set"),
  37.   @XmlEnumValue("bag")
  38.   BAG("bag"),
  39.   @XmlEnumValue("sequence")
  40.   SEQUENCE("sequence"),
  41.   @XmlEnumValue("array")
  42.   ARRAY("array"),
  43.   @XmlEnumValue("record")
  44.   RECORD("record"),
  45.   @XmlEnumValue("table")
  46.   TABLE("table");
  47.   private final String value;

  48.   AggregationType(String v) {
  49.     value = v;
  50.   }

  51.   public String value() {
  52.     return value;
  53.   }

  54.   public static AggregationType fromValue(String v) {
  55.     for (AggregationType c : AggregationType.values()) {
  56.       if (c.value.equals(v)) {
  57.         return c;
  58.       }
  59.     }
  60.     throw new IllegalArgumentException(v);
  61.   }
  62. }