org.ehcache.xml.model.ResourceUnit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ehcache-xml Show documentation
Show all versions of ehcache-xml Show documentation
The module containing all XML parsing logic Ehcache 3
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.17-hudson-jaxb-ri-2.1-pushtomaven-253--SNAPSHOT
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.09.30 at 02:38:30 AM PDT
//
package org.ehcache.xml.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for resource-unit.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="resource-unit">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="entries"/>
* <enumeration value="B"/>
* <enumeration value="kB"/>
* <enumeration value="MB"/>
* <enumeration value="GB"/>
* <enumeration value="TB"/>
* <enumeration value="PB"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "resource-unit")
@XmlEnum
public enum ResourceUnit {
@XmlEnumValue("entries")
ENTRIES("entries"),
B("B"),
@XmlEnumValue("kB")
K_B("kB"),
MB("MB"),
GB("GB"),
TB("TB"),
PB("PB");
private final String value;
ResourceUnit(String v) {
value = v;
}
public String value() {
return value;
}
public static ResourceUnit fromValue(String v) {
for (ResourceUnit c: ResourceUnit.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy