//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-520
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.08.05 at 08:54:31 PM PDT
//
package org.hibernate.internal.jaxb.cfg;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
Java class for usage-attribute.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="usage-attribute">
<restriction base="{http://www.w3.org/2001/XMLSchema}token">
<enumeration value="nonstrict-read-write"/>
<enumeration value="read-only"/>
<enumeration value="read-write"/>
<enumeration value="transactional"/>
</restriction>
</simpleType>
/**
* <p>Java class for usage-attribute.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="usage-attribute">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="nonstrict-read-write"/>
* <enumeration value="read-only"/>
* <enumeration value="read-write"/>
* <enumeration value="transactional"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "usage-attribute")
@XmlEnum
public enum JaxbUsageAttribute {
@XmlEnumValue("nonstrict-read-write")
NONSTRICT_READ_WRITE("nonstrict-read-write"),
@XmlEnumValue("read-only")
READ_ONLY("read-only"),
@XmlEnumValue("read-write")
READ_WRITE("read-write"),
@XmlEnumValue("transactional")
TRANSACTIONAL("transactional");
private final String value;
JaxbUsageAttribute(String v) {
value = v;
}
public String value() {
return value;
}
public static JaxbUsageAttribute fromValue(String v) {
for (JaxbUsageAttribute c: JaxbUsageAttribute.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}