package ocpp.v15.cp;
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 UpdateStatus.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="UpdateStatus">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Accepted"/>
* <enumeration value="Failed"/>
* <enumeration value="HashError"/>
* <enumeration value="NotSupported"/>
* <enumeration value="VersionMismatch"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "UpdateStatus")
@XmlEnum
@Generated(value = "com.sun.tools.internal.xjc.Driver", date = "2015-06-12T04:14:37+12:00", comments = "JAXB RI v2.2.4-2")
public enum UpdateStatus {
@XmlEnumValue("Accepted")
ACCEPTED("Accepted"),
@XmlEnumValue("Failed")
FAILED("Failed"),
@XmlEnumValue("HashError")
HASH_ERROR("HashError"),
@XmlEnumValue("NotSupported")
NOT_SUPPORTED("NotSupported"),
@XmlEnumValue("VersionMismatch")
VERSION_MISMATCH("VersionMismatch");
private final String value;
UpdateStatus(String v) {
value = v;
}
public String value() {
return value;
}
public static UpdateStatus fromValue(String v) {
for (UpdateStatus c: UpdateStatus.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}