org.apache.cxf.configuration.foo.DrivingDecision Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.3-b01-fcs
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009.07.29 at 09:31:36 AM EDT
//
package org.apache.cxf.configuration.foo;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* Java class for drivingDecision.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="drivingDecision">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="RightTurn"/>
* <enumeration value="LeftTurn"/>
* <enumeration value="U-Turn"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlEnum
public enum DrivingDecision {
@XmlEnumValue("RightTurn")
RIGHT_TURN("RightTurn"),
@XmlEnumValue("LeftTurn")
LEFT_TURN("LeftTurn"),
@XmlEnumValue("U-Turn")
U_TURN("U-Turn");
private final String value;
DrivingDecision(String v) {
value = v;
}
public String value() {
return value;
}
public static DrivingDecision fromValue(String v) {
for (DrivingDecision c: DrivingDecision.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v.toString());
}
}