
de.vdv.ojp20.siri.CoachSubmodesOfTransportEnumeration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ojp-java-model Show documentation
Show all versions of ojp-java-model Show documentation
Generates Java model from OJP xsds using jaxb.
The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
//
package de.vdv.ojp20.siri;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
*
*
* Java class for CoachSubmodesOfTransportEnumeration
.
*
* The following schema fragment specifies the expected content contained within this class.
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*/
@XmlType(name = "CoachSubmodesOfTransportEnumeration")
@XmlEnum
public enum CoachSubmodesOfTransportEnumeration {
@XmlEnumValue("unknown")
UNKNOWN("unknown"),
@XmlEnumValue("undefined")
UNDEFINED("undefined"),
@XmlEnumValue("internationalCoach")
INTERNATIONAL_COACH("internationalCoach"),
@XmlEnumValue("nationalCoach")
NATIONAL_COACH("nationalCoach"),
@XmlEnumValue("shuttleCoach")
SHUTTLE_COACH("shuttleCoach"),
@XmlEnumValue("regionalCoach")
REGIONAL_COACH("regionalCoach"),
@XmlEnumValue("specialCoach")
SPECIAL_COACH("specialCoach"),
@XmlEnumValue("schoolCoach")
SCHOOL_COACH("schoolCoach"),
@XmlEnumValue("sightseeingCoach")
SIGHTSEEING_COACH("sightseeingCoach"),
@XmlEnumValue("touristCoach")
TOURIST_COACH("touristCoach"),
@XmlEnumValue("commuterCoach")
COMMUTER_COACH("commuterCoach"),
@XmlEnumValue("internationalCoachService")
INTERNATIONAL_COACH_SERVICE("internationalCoachService"),
@XmlEnumValue("nationalCoachService")
NATIONAL_COACH_SERVICE("nationalCoachService"),
@XmlEnumValue("shuttleCoachService")
SHUTTLE_COACH_SERVICE("shuttleCoachService"),
@XmlEnumValue("regionalCoachService")
REGIONAL_COACH_SERVICE("regionalCoachService"),
@XmlEnumValue("additionalCoachService")
ADDITIONAL_COACH_SERVICE("additionalCoachService"),
@XmlEnumValue("nightCoachService")
NIGHT_COACH_SERVICE("nightCoachService"),
@XmlEnumValue("specialCoachService")
SPECIAL_COACH_SERVICE("specialCoachService"),
@XmlEnumValue("sightseeingCoachService")
SIGHTSEEING_COACH_SERVICE("sightseeingCoachService"),
@XmlEnumValue("touristCoachService")
TOURIST_COACH_SERVICE("touristCoachService"),
@XmlEnumValue("commuterCoachService")
COMMUTER_COACH_SERVICE("commuterCoachService"),
@XmlEnumValue("onDemandService")
ON_DEMAND_SERVICE("onDemandService"),
@XmlEnumValue("undefinedCoachService")
UNDEFINED_COACH_SERVICE("undefinedCoachService"),
@XmlEnumValue("allCoachServices")
ALL_COACH_SERVICES("allCoachServices"),
@XmlEnumValue("pti3_0")
PTI_3___0("pti3_0"),
@XmlEnumValue("pti3_1")
PTI_3___1("pti3_1"),
@XmlEnumValue("pti3_2")
PTI_3___2("pti3_2"),
@XmlEnumValue("pti3_3")
PTI_3___3("pti3_3"),
@XmlEnumValue("pti3_4")
PTI_3___4("pti3_4"),
@XmlEnumValue("pti3_5")
PTI_3___5("pti3_5"),
@XmlEnumValue("pti3_6")
PTI_3___6("pti3_6"),
@XmlEnumValue("pti3_7")
PTI_3___7("pti3_7"),
@XmlEnumValue("pti3_8")
PTI_3___8("pti3_8"),
@XmlEnumValue("pti3_9")
PTI_3___9("pti3_9"),
@XmlEnumValue("pti3_255")
PTI_3___255("pti3_255");
private final String value;
CoachSubmodesOfTransportEnumeration(String v) {
value = v;
}
/**
* Gets the value associated to the enum constant.
*
* @return
* The value linked to the enum.
*/
public String value() {
return value;
}
/**
* Gets the enum associated to the value passed as parameter.
*
* @param v
* The value to get the enum from.
* @return
* The enum which corresponds to the value, if it exists.
* @throws IllegalArgumentException
* If no value matches in the enum declaration.
*/
public static CoachSubmodesOfTransportEnumeration fromValue(String v) {
for (CoachSubmodesOfTransportEnumeration c: CoachSubmodesOfTransportEnumeration.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy