All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.vdv.ojp20.GuidanceAdviceEnumeration Maven / Gradle / Ivy

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;


/**
 * Several types of guidance advice given to traveller. Suitable values may differ by MODE (e.g., a car driver needs different advice than a person walking for a transfer.
 * 
 * 

Java class for GuidanceAdviceEnumeration

. * *

The following schema fragment specifies the expected content contained within this class.

*
{@code
 * 
 *   
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *   
 * 
 * }
* */ @XmlType(name = "GuidanceAdviceEnumeration") @XmlEnum public enum GuidanceAdviceEnumeration { /** * Defining origin. * */ @XmlEnumValue("origin") ORIGIN("origin"), /** * Defining a destination. * */ @XmlEnumValue("destination") DESTINATION("destination"), /** * Continue on the same street/road/path. * */ @XmlEnumValue("continue") CONTINUE("continue"), /** * Keep going on the same street/road/path. * */ @XmlEnumValue("keep") KEEP("keep"), /** * When this value is used, you always must consider the value in TurnAction as well. There must be a TurnAction present if "turn" is used. * */ @XmlEnumValue("turn") TURN("turn"), /** * Can be something like an elevator or a vehicle. * */ @XmlEnumValue("leave") LEAVE("leave"), /** * Can be something like an elevator or a vehicle. * */ @XmlEnumValue("enter") ENTER("enter"), /** * Entering a roundabout. * */ @XmlEnumValue("enter_roundabout") ENTER___ROUNDABOUT("enter_roundabout"), /** * Staying in the roundabout. * */ @XmlEnumValue("stay_in_roundabout") STAY___IN___ROUNDABOUT("stay_in_roundabout"), /** * Leave the roundabout. * */ @XmlEnumValue("leave_roundabout") LEAVE___ROUNDABOUT("leave_roundabout"), /** * Entering a built-up area / community. * */ @XmlEnumValue("enter_builtup_area") ENTER___BUILTUP___AREA("enter_builtup_area"), /** * Leave the built-up area / community. * */ @XmlEnumValue("leave_builtup_area") LEAVE___BUILTUP___AREA("leave_builtup_area"), /** * Access lane to highway or the like. * */ @XmlEnumValue("freewayAccessRamp") FREEWAY_ACCESS_RAMP("freewayAccessRamp"), /** * If it is unclear which lane to choose. * */ @XmlEnumValue("unknown_lane_choice") UNKNOWN___LANE___CHOICE("unknown_lane_choice"), /** * If there are more than 2 lanes, then TurnAction half_left, left, sharp_left may help decide. * */ @XmlEnumValue("left_lane") LEFT___LANE("left_lane"), /** * If there are more than 3 lanes, then Turnaction straight defines the middle one. * */ @XmlEnumValue("middle_lane") MIDDLE___LANE("middle_lane"), /** * If there are more than 2 lanes, then TurnAction half_right, right, sharp_right may help decide. * */ @XmlEnumValue("right_lane") RIGHT___LANE("right_lane"), @XmlEnumValue("unknown_turning_kind") UNKNOWN___TURNING___KIND("unknown_turning_kind"); private final String value; GuidanceAdviceEnumeration(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 GuidanceAdviceEnumeration fromValue(String v) { for (GuidanceAdviceEnumeration c: GuidanceAdviceEnumeration.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy