
org.docbook.model.Action Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docbook-model Show documentation
Show all versions of docbook-model Show documentation
Alpha system commons library
The newest version!
package org.docbook.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for action.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="action">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="click"/>
* <enumeration value="double-click"/>
* <enumeration value="press"/>
* <enumeration value="seq"/>
* <enumeration value="simul"/>
* <enumeration value="other"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "action")
@XmlEnum
public enum Action {
@XmlEnumValue("click")
CLICK("click"),
@XmlEnumValue("double-click")
DOUBLE_CLICK("double-click"),
@XmlEnumValue("press")
PRESS("press"),
@XmlEnumValue("seq")
SEQ("seq"),
@XmlEnumValue("simul")
SIMUL("simul"),
@XmlEnumValue("other")
OTHER("other");
private final String value;
Action(String v) {
value = v;
}
public String value() {
return value;
}
public static Action fromValue(String v) {
for (Action c: Action.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy