org.xmcda.v2.PreferenceDirection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xmcda Show documentation
Show all versions of xmcda Show documentation
XMCDA Java Reference Library
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.11.30 at 02:37:50 PM CET
//
package org.xmcda.v2;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for preferenceDirection.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="preferenceDirection">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="min"/>
* <enumeration value="max"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "preferenceDirection")
@XmlEnum
public enum PreferenceDirection {
@XmlEnumValue("min")
MIN("min"),
@XmlEnumValue("max")
MAX("max");
private final String value;
PreferenceDirection(String v) {
value = v;
}
public String value() {
return value;
}
public static PreferenceDirection fromValue(String v) {
for (PreferenceDirection c: PreferenceDirection.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}