org.mixer2.jaxb.xhtml.ULStyle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mixer2-java5 Show documentation
Show all versions of mixer2-java5 Show documentation
mixer2 for java5. This is experimental project.
The newest version!
package org.mixer2.jaxb.xhtml;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* ULStyleのJavaクラス。
*
*
次のスキーマ・フラグメントは、このクラス内に含まれる予期されるコンテンツを指定します。
*
*
* <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);
}
}