package org.docx4j.sharedtypes;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ST_YAlign.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="ST_YAlign">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="inline"/>
* <enumeration value="top"/>
* <enumeration value="center"/>
* <enumeration value="bottom"/>
* <enumeration value="inside"/>
* <enumeration value="outside"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "ST_YAlign", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes")
@XmlEnum
public enum STYAlign {
/**
* In line With Text
*
*/
@XmlEnumValue("inline")
INLINE("inline"),
/**
* Top
*
*/
@XmlEnumValue("top")
TOP("top"),
/**
* Centered Vertically
*
*/
@XmlEnumValue("center")
CENTER("center"),
/**
* Bottom
*
*/
@XmlEnumValue("bottom")
BOTTOM("bottom"),
/**
* Inside Anchor Extents
*
*/
@XmlEnumValue("inside")
INSIDE("inside"),
/**
* Outside Anchor Extents
*
*/
@XmlEnumValue("outside")
OUTSIDE("outside");
private final String value;
STYAlign(String v) {
value = v;
}
public String value() {
return value;
}
public static STYAlign fromValue(String v) {
for (STYAlign c: STYAlign.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}