org.musicbrainz.ns.mmd_2.DefDirection Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.04.12 at 04:01:25 PM CEST
//
package org.musicbrainz.ns.mmd_2;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for def_direction.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="def_direction">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="both"/>
* <enumeration value="forward"/>
* <enumeration value="backward"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "def_direction")
@XmlEnum
public enum DefDirection {
@XmlEnumValue("both")
BOTH("both"),
@XmlEnumValue("forward")
FORWARD("forward"),
@XmlEnumValue("backward")
BACKWARD("backward");
private final String value;
DefDirection(String v) {
value = v;
}
public String value() {
return value;
}
public static DefDirection fromValue(String v) {
for (DefDirection c: DefDirection.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}