|
package trax.skp5;
|
|
import javax.xml.bind.annotation.XmlEnum;
|
import javax.xml.bind.annotation.XmlEnumValue;
|
import javax.xml.bind.annotation.XmlType;
|
|
|
/**
|
* <p>Clase Java para OnOffType.
|
*
|
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
|
* <p>
|
* <pre>
|
* <simpleType name="OnOffType">
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
* <enumeration value="Off"/>
|
* <enumeration value="On"/>
|
* </restriction>
|
* </simpleType>
|
* </pre>
|
*
|
*/
|
@XmlType(name = "OnOffType")
|
@XmlEnum
|
public enum OnOffType {
|
|
|
/**
|
* OFF
|
*
|
*/
|
@XmlEnumValue("Off")
|
OFF("Off"),
|
|
/**
|
* ON
|
*
|
*/
|
@XmlEnumValue("On")
|
ON("On");
|
private final String value;
|
|
OnOffType(String v) {
|
value = v;
|
}
|
|
public String value() {
|
return value;
|
}
|
|
public static OnOffType fromValue(String v) {
|
for (OnOffType c: OnOffType.values()) {
|
if (c.value.equals(v)) {
|
return c;
|
}
|
}
|
throw new IllegalArgumentException(v);
|
}
|
|
}
|