org.mixer2.jaxb.xhtml.CAlign 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;
/**
* CAlignのJavaクラス。
*
*
次のスキーマ・フラグメントは、このクラス内に含まれる予期されるコンテンツを指定します。
*
*
* <simpleType name="CAlign">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="top"/>
* <enumeration value="bottom"/>
* <enumeration value="left"/>
* <enumeration value="right"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "CAlign")
@XmlEnum
public enum CAlign {
@XmlEnumValue("top")
TOP("top"),
@XmlEnumValue("bottom")
BOTTOM("bottom"),
@XmlEnumValue("left")
LEFT("left"),
@XmlEnumValue("right")
RIGHT("right");
private final String value;
CAlign(String v) {
value = v;
}
public String value() {
return value;
}
public static CAlign fromValue(String v) {
for (CAlign c: CAlign.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}