it.bz.opendatahub.alpinebits.xml.schema.ota.AgeQualifyingEnum Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.10.22 at 07:23:30 PM GMT
//
package it.bz.opendatahub.alpinebits.xml.schema.ota;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for AgeQualifyingEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="AgeQualifyingEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Additional occupant with adult"/>
* <enumeration value="Additional occupant without adult"/>
* <enumeration value="Adult"/>
* <enumeration value="Child"/>
* <enumeration value="Free adult"/>
* <enumeration value="Free child"/>
* <enumeration value="Infant"/>
* <enumeration value="Over 21"/>
* <enumeration value="Over 65"/>
* <enumeration value="Senior "/>
* <enumeration value="Teenager"/>
* <enumeration value="Under 10"/>
* <enumeration value="Under 12"/>
* <enumeration value="Under 17"/>
* <enumeration value="Under 2"/>
* <enumeration value="Under 21"/>
* <enumeration value="Young driver"/>
* <enumeration value="Younger driver"/>
* <enumeration value="Other_"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "AgeQualifyingEnum")
@XmlEnum
public enum AgeQualifyingEnum {
@XmlEnumValue("Additional occupant with adult")
ADDITIONAL_OCCUPANT_WITH_ADULT("Additional occupant with adult"),
@XmlEnumValue("Additional occupant without adult")
ADDITIONAL_OCCUPANT_WITHOUT_ADULT("Additional occupant without adult"),
@XmlEnumValue("Adult")
ADULT("Adult"),
@XmlEnumValue("Child")
CHILD("Child"),
@XmlEnumValue("Free adult")
FREE_ADULT("Free adult"),
@XmlEnumValue("Free child")
FREE_CHILD("Free child"),
@XmlEnumValue("Infant")
INFANT("Infant"),
@XmlEnumValue("Over 21")
OVER_21("Over 21"),
@XmlEnumValue("Over 65")
OVER_65("Over 65"),
@XmlEnumValue("Senior ")
SENIOR("Senior "),
@XmlEnumValue("Teenager")
TEENAGER("Teenager"),
@XmlEnumValue("Under 10")
UNDER_10("Under 10"),
@XmlEnumValue("Under 12")
UNDER_12("Under 12"),
@XmlEnumValue("Under 17")
UNDER_17("Under 17"),
@XmlEnumValue("Under 2")
UNDER_2("Under 2"),
@XmlEnumValue("Under 21")
UNDER_21("Under 21"),
@XmlEnumValue("Young driver")
YOUNG_DRIVER("Young driver"),
@XmlEnumValue("Younger driver")
YOUNGER_DRIVER("Younger driver"),
@XmlEnumValue("Other_")
OTHER("Other_");
private final String value;
AgeQualifyingEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static AgeQualifyingEnum fromValue(String v) {
for (AgeQualifyingEnum c: AgeQualifyingEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}