org.hibernate.internal.jaxb.mapping.hbm.JaxbLockModeAttribute Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-520
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.04.25 at 10:42:09 AM EDT
//
package org.hibernate.internal.jaxb.mapping.hbm;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for lock-mode-attribute.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="lock-mode-attribute">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="none"/>
* <enumeration value="read"/>
* <enumeration value="upgrade"/>
* <enumeration value="upgrade-nowait"/>
* <enumeration value="write"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "lock-mode-attribute")
@XmlEnum
public enum JaxbLockModeAttribute {
@XmlEnumValue("none")
NONE("none"),
@XmlEnumValue("read")
READ("read"),
@XmlEnumValue("upgrade")
UPGRADE("upgrade"),
@XmlEnumValue("upgrade-nowait")
UPGRADE_NOWAIT("upgrade-nowait"),
@XmlEnumValue("write")
WRITE("write");
private final String value;
JaxbLockModeAttribute(String v) {
value = v;
}
public String value() {
return value;
}
public static JaxbLockModeAttribute fromValue(String v) {
for (JaxbLockModeAttribute c: JaxbLockModeAttribute.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}