com.hubject.datex.energyinfrastructure.generated.common.VehicleUsageEnum2 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.common;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for VehicleUsageEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="VehicleUsageEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="agricultural"/>
* <enumeration value="carSharing"/>
* <enumeration value="cityLogistics"/>
* <enumeration value="commercial"/>
* <enumeration value="emergencyServices"/>
* <enumeration value="military"/>
* <enumeration value="nonCommercial"/>
* <enumeration value="patrol"/>
* <enumeration value="recoveryServices"/>
* <enumeration value="roadMaintenanceOrConstruction"/>
* <enumeration value="roadOperator"/>
* <enumeration value="taxi"/>
* <enumeration value="_extended"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "VehicleUsageEnum")
@XmlEnum
public enum VehicleUsageEnum2 {
@XmlEnumValue("agricultural")
AGRICULTURAL("agricultural"),
@XmlEnumValue("carSharing")
CAR_SHARING("carSharing"),
@XmlEnumValue("cityLogistics")
CITY_LOGISTICS("cityLogistics"),
@XmlEnumValue("commercial")
COMMERCIAL("commercial"),
@XmlEnumValue("emergencyServices")
EMERGENCY_SERVICES("emergencyServices"),
@XmlEnumValue("military")
MILITARY("military"),
@XmlEnumValue("nonCommercial")
NON_COMMERCIAL("nonCommercial"),
@XmlEnumValue("patrol")
PATROL("patrol"),
@XmlEnumValue("recoveryServices")
RECOVERY_SERVICES("recoveryServices"),
@XmlEnumValue("roadMaintenanceOrConstruction")
ROAD_MAINTENANCE_OR_CONSTRUCTION("roadMaintenanceOrConstruction"),
@XmlEnumValue("roadOperator")
ROAD_OPERATOR("roadOperator"),
@XmlEnumValue("taxi")
TAXI("taxi"),
@XmlEnumValue("_extended")
EXTENDED("_extended");
private final String value;
VehicleUsageEnum2(String v) {
value = v;
}
public String value() {
return value;
}
public static VehicleUsageEnum2 fromValue(String v) {
for (VehicleUsageEnum2 c: VehicleUsageEnum2 .values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}