package ocpp.v15.cs;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for UnitOfMeasure.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="UnitOfMeasure">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Wh"/>
* <enumeration value="kWh"/>
* <enumeration value="varh"/>
* <enumeration value="kvarh"/>
* <enumeration value="W"/>
* <enumeration value="kW"/>
* <enumeration value="var"/>
* <enumeration value="kvar"/>
* <enumeration value="Amp"/>
* <enumeration value="Volt"/>
* <enumeration value="Celsius"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "UnitOfMeasure")
@XmlEnum
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:15:01+12:00", comments = "JAXB RI v2.2.4-2")
public enum UnitOfMeasure {
@XmlEnumValue("Wh")
WH("Wh"),
@XmlEnumValue("kWh")
K_WH("kWh"),
@XmlEnumValue("varh")
VARH("varh"),
@XmlEnumValue("kvarh")
KVARH("kvarh"),
W("W"),
@XmlEnumValue("kW")
K_W("kW"),
@XmlEnumValue("var")
VAR("var"),
@XmlEnumValue("kvar")
KVAR("kvar"),
@XmlEnumValue("Amp")
AMP("Amp"),
@XmlEnumValue("Volt")
VOLT("Volt"),
@XmlEnumValue("Celsius")
CELSIUS("Celsius");
private final String value;
UnitOfMeasure(String v) {
value = v;
}
public String value() {
return value;
}
public static UnitOfMeasure fromValue(String v) {
for (UnitOfMeasure c: UnitOfMeasure.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}