org.docx4j.wml.STDirection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j-openxml-objects Show documentation
Show all versions of docx4j-openxml-objects Show documentation
Our JAXB representation of OpenXML, except for pml and sml (handled separately)
package org.docx4j.wml;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ST_Direction.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ST_Direction">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="ltr"/>
* <enumeration value="rtl"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ST_Direction")
@XmlEnum
public enum STDirection {
@XmlEnumValue("ltr")
LTR("ltr"),
@XmlEnumValue("rtl")
RTL("rtl");
private final String value;
STDirection(String v) {
value = v;
}
public String value() {
return value;
}
public static STDirection fromValue(String v) {
for (STDirection c: STDirection.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}