org.mixer2.jaxb.xhtml.ULStyle Maven / Gradle / Ivy
package org.mixer2.jaxb.xhtml;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ULStyle.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ULStyle">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="disc"/>
* <enumeration value="square"/>
* <enumeration value="circle"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ULStyle")
@XmlEnum
public enum ULStyle {
@XmlEnumValue("disc")
DISC("disc"),
@XmlEnumValue("square")
SQUARE("square"),
@XmlEnumValue("circle")
CIRCLE("circle");
private final String value;
ULStyle(String v) {
value = v;
}
public String value() {
return value;
}
public static ULStyle fromValue(String v) {
for (ULStyle c: ULStyle.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}