com.foursoft.vecmodel.vec113.VecIECPrefix Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.08.10 at 09:49:21 AM UTC
//
package com.foursoft.vecmodel.vec113;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Enumeration for the definition of IEC unit prefixes.
*
* Java class for IECPrefix.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="IECPrefix">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Yobi"/>
* <enumeration value="Zebi"/>
* <enumeration value="Exbi"/>
* <enumeration value="Pebi"/>
* <enumeration value="Tebi"/>
* <enumeration value="Gibi"/>
* <enumeration value="Mebi"/>
* <enumeration value="Kibi"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "IECPrefix")
@XmlEnum
public enum VecIECPrefix {
@XmlEnumValue("Yobi")
YOBI("Yobi"),
@XmlEnumValue("Zebi")
ZEBI("Zebi"),
@XmlEnumValue("Exbi")
EXBI("Exbi"),
@XmlEnumValue("Pebi")
PEBI("Pebi"),
@XmlEnumValue("Tebi")
TEBI("Tebi"),
@XmlEnumValue("Gibi")
GIBI("Gibi"),
@XmlEnumValue("Mebi")
MEBI("Mebi"),
@XmlEnumValue("Kibi")
KIBI("Kibi");
private final String value;
VecIECPrefix(String v) {
value = v;
}
public String value() {
return value;
}
public static VecIECPrefix fromValue(String v) {
for (VecIECPrefix c: VecIECPrefix.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}