it.bz.opendatahub.alpinebits.xml.schema.ota.RatePlanEnum 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 RatePlanEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="RatePlanEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Government"/>
* <enumeration value="Negotiated"/>
* <enumeration value="Preferred"/>
* <enumeration value="Other_"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "RatePlanEnum")
@XmlEnum
public enum RatePlanEnum {
/**
* Inventory is available for sale.
*
*/
@XmlEnumValue("Government")
GOVERNMENT("Government"),
/**
* Inventory is not available for sale.
*
*/
@XmlEnumValue("Negotiated")
NEGOTIATED("Negotiated"),
/**
* Inventory is not available for sale to arriving guests.
*
*/
@XmlEnumValue("Preferred")
PREFERRED("Preferred"),
/**
* Inventory may not be available for sale to arriving guests.
*
*/
@XmlEnumValue("Other_")
OTHER("Other_");
private final String value;
RatePlanEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static RatePlanEnum fromValue(String v) {
for (RatePlanEnum c: RatePlanEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}