org.mixer2.jaxb.xhtml.Scope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mixer2 Show documentation
Show all versions of mixer2 Show documentation
Mixer2 is template engine for java.
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 Scope.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="Scope">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="row"/>
* <enumeration value="col"/>
* <enumeration value="rowgroup"/>
* <enumeration value="colgroup"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "Scope")
@XmlEnum
public enum Scope {
@XmlEnumValue("row")
ROW("row"),
@XmlEnumValue("col")
COL("col"),
@XmlEnumValue("rowgroup")
ROWGROUP("rowgroup"),
@XmlEnumValue("colgroup")
COLGROUP("colgroup");
private final String value;
Scope(String v) {
value = v;
}
public String value() {
return value;
}
public static Scope fromValue(String v) {
for (Scope c: Scope.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}