org.hibernate.internal.jaxb.mapping.hbm.JaxbCacheModeAttribute 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: 2014.05.28 at 02:02:03 PM PDT
//
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 cache-mode-attribute.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="cache-mode-attribute">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="get"/>
* <enumeration value="ignore"/>
* <enumeration value="normal"/>
* <enumeration value="put"/>
* <enumeration value="refresh"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "cache-mode-attribute")
@XmlEnum
public enum JaxbCacheModeAttribute {
@XmlEnumValue("get")
GET("get"),
@XmlEnumValue("ignore")
IGNORE("ignore"),
@XmlEnumValue("normal")
NORMAL("normal"),
@XmlEnumValue("put")
PUT("put"),
@XmlEnumValue("refresh")
REFRESH("refresh");
private final String value;
JaxbCacheModeAttribute(String v) {
value = v;
}
public String value() {
return value;
}
public static JaxbCacheModeAttribute fromValue(String v) {
for (JaxbCacheModeAttribute c: JaxbCacheModeAttribute.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}