com.hubject.datex.energyinfrastructure.generated.infrastructure.PricingPolicyEnum2 Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2022.10.06 at 11:44:34 AM CEST
//
package com.hubject.datex.energyinfrastructure.generated.infrastructure;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for PricingPolicyEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="PricingPolicyEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="pricePerChargingTime"/>
* <enumeration value="pricePerDeliveryUnit"/>
* <enumeration value="contract"/>
* <enumeration value="flatRate"/>
* <enumeration value="unknown"/>
* <enumeration value="free"/>
* <enumeration value="other"/>
* <enumeration value="_extended"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "PricingPolicyEnum")
@XmlEnum
public enum PricingPolicyEnum2 {
@XmlEnumValue("pricePerChargingTime")
PRICE_PER_CHARGING_TIME("pricePerChargingTime"),
@XmlEnumValue("pricePerDeliveryUnit")
PRICE_PER_DELIVERY_UNIT("pricePerDeliveryUnit"),
@XmlEnumValue("contract")
CONTRACT("contract"),
@XmlEnumValue("flatRate")
FLAT_RATE("flatRate"),
@XmlEnumValue("unknown")
UNKNOWN("unknown"),
@XmlEnumValue("free")
FREE("free"),
@XmlEnumValue("other")
OTHER("other"),
@XmlEnumValue("_extended")
EXTENDED("_extended");
private final String value;
PricingPolicyEnum2(String v) {
value = v;
}
public String value() {
return value;
}
public static PricingPolicyEnum2 fromValue(String v) {
for (PricingPolicyEnum2 c: PricingPolicyEnum2 .values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}