
de.vdv.ojp20.ConventionalModesOfOperationEnumeration 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;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Types of MODES OF OPERATION are scheduled, classic and flexible. From NeTEx.
*
* Java class for ConventionalModesOfOperationEnumeration
.
*
* The following schema fragment specifies the expected content contained within this class.
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*/
@XmlType(name = "ConventionalModesOfOperationEnumeration")
@XmlEnum
public enum ConventionalModesOfOperationEnumeration {
/**
* Regular MODE OF OPERATION for CONVENTIONAL MODE OF OPERATION. Based on SCHEDULED STOP POINTs and timetables.
*
*/
@XmlEnumValue("scheduled")
SCHEDULED("scheduled"),
/**
* Demand responsive services. General term when nothing else is known. Requires SCHEDULED STOP POINTs. The more taxi-like a demand responsive service becomes the more probable it is better to use ALTERNATIVE MODE OF OPERATION.
*
*/
@XmlEnumValue("demandResponsive")
DEMAND_RESPONSIVE("demandResponsive"),
/**
* Specialisation of demand responsive MODE OF OPERATION. The service is still based on a ROUTE.
*
*/
@XmlEnumValue("flexibleRoute")
FLEXIBLE_ROUTE("flexibleRoute"),
/**
* Specialisation of demand responsive MODE OF OPERATION. The service is based on AREAs, but still SCHEDULED STOP POINTs are used. Sometimes the characteristics of a given demand responsive service makes it mor of an ALTERNATIVE MODE OF OPERATION (e.g., pure area service). A conventional mode of operation is more indicated, when there is a limited list of stops within the area.
*
*/
@XmlEnumValue("flexibleArea")
FLEXIBLE_AREA("flexibleArea"),
/**
* If the service is provided as a form of shuttle.
*
*/
@XmlEnumValue("shuttle")
SHUTTLE("shuttle"),
/**
* In some cases, pooling is not an ALTERNATIVE MODE OF OPERATION, but is better served with a TimedLeg. Then this MODE OF OPERATION is to be used.
*
*/
@XmlEnumValue("pooling")
POOLING("pooling"),
/**
* The service is provided as a replacement of a SCHEDULED service.
*
*/
@XmlEnumValue("replacement")
REPLACEMENT("replacement"),
/**
* MODE OF OPERATION that specifically states that it is school related. Specialisation of demand responsive or scheduled.
*
*/
@XmlEnumValue("school")
SCHOOL("school"),
/**
* If for a scheduled, conventional service a special additional vehicle is needed to provide for special PRM needs. This kind of MODE OF OPERATION is to be used.
*
*/
@XmlEnumValue("pRM")
P_RM("pRM");
private final String value;
ConventionalModesOfOperationEnumeration(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 ConventionalModesOfOperationEnumeration fromValue(String v) {
for (ConventionalModesOfOperationEnumeration c: ConventionalModesOfOperationEnumeration.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy