
de.vdv.ojp20.siri.TramSubmodesOfTransportEnumeration 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 TramSubmodesOfTransportEnumeration
.
*
* The following schema fragment specifies the expected content contained within this class.
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*/
@XmlType(name = "TramSubmodesOfTransportEnumeration")
@XmlEnum
public enum TramSubmodesOfTransportEnumeration {
@XmlEnumValue("unknown")
UNKNOWN("unknown"),
@XmlEnumValue("undefined")
UNDEFINED("undefined"),
@XmlEnumValue("cityTram")
CITY_TRAM("cityTram"),
@XmlEnumValue("localTram")
LOCAL_TRAM("localTram"),
@XmlEnumValue("regionalTram")
REGIONAL_TRAM("regionalTram"),
@XmlEnumValue("sightseeingTram")
SIGHTSEEING_TRAM("sightseeingTram"),
@XmlEnumValue("shuttleTram")
SHUTTLE_TRAM("shuttleTram"),
@XmlEnumValue("trainTram")
TRAIN_TRAM("trainTram"),
@XmlEnumValue("tramService")
TRAM_SERVICE("tramService"),
@XmlEnumValue("cityTramService")
CITY_TRAM_SERVICE("cityTramService"),
@XmlEnumValue("regionalTramService")
REGIONAL_TRAM_SERVICE("regionalTramService"),
@XmlEnumValue("sightseeingTramService")
SIGHTSEEING_TRAM_SERVICE("sightseeingTramService"),
@XmlEnumValue("nightTramService")
NIGHT_TRAM_SERVICE("nightTramService"),
@XmlEnumValue("shuttleTramService")
SHUTTLE_TRAM_SERVICE("shuttleTramService"),
@XmlEnumValue("undefinedUrbanRailwayService")
UNDEFINED_URBAN_RAILWAY_SERVICE("undefinedUrbanRailwayService"),
@XmlEnumValue("localTramService")
LOCAL_TRAM_SERVICE("localTramService"),
@XmlEnumValue("undefinedTramService")
UNDEFINED_TRAM_SERVICE("undefinedTramService"),
@XmlEnumValue("allTramServices")
ALL_TRAM_SERVICES("allTramServices"),
@XmlEnumValue("pti6_0")
PTI_6___0("pti6_0"),
@XmlEnumValue("pti6_1")
PTI_6___1("pti6_1"),
@XmlEnumValue("pti6_2")
PTI_6___2("pti6_2"),
@XmlEnumValue("pti6_3")
PTI_6___3("pti6_3"),
@XmlEnumValue("pti6_4")
PTI_6___4("pti6_4"),
@XmlEnumValue("pti6_5")
PTI_6___5("pti6_5"),
@XmlEnumValue("pti6_6")
PTI_6___6("pti6_6"),
@XmlEnumValue("pti6_255")
PTI_6___255("pti6_255"),
@XmlEnumValue("loc12_0")
LOC_12___0("loc12_0"),
@XmlEnumValue("loc12_1")
LOC_12___1("loc12_1"),
@XmlEnumValue("loc12_2")
LOC_12___2("loc12_2"),
@XmlEnumValue("loc12_255")
LOC_12___255("loc12_255");
private final String value;
TramSubmodesOfTransportEnumeration(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 TramSubmodesOfTransportEnumeration fromValue(String v) {
for (TramSubmodesOfTransportEnumeration c: TramSubmodesOfTransportEnumeration.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy