package ebayopensource.apis.eblbasecomponents;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for WarningLevelCodeType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="WarningLevelCodeType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="Low"/>
* <enumeration value="High"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "WarningLevelCodeType")
@XmlEnum
public enum WarningLevelCodeType {
@XmlEnumValue("Low")
LOW("Low"),
@XmlEnumValue("High")
HIGH("High");
private final String value;
WarningLevelCodeType(String v) {
value = v;
}
public String value() {
return value;
}
public static WarningLevelCodeType fromValue(String v) {
for (WarningLevelCodeType c: WarningLevelCodeType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}