org.dmtf.wsman.PolicyType Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.08.05 at 05:23:55 PM EDT
//
package org.dmtf.wsman;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for PolicyType.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="PolicyType">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="CancelSubscription"/>
* <enumeration value="Skip"/>
* <enumeration value="Notify"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "PolicyType")
@XmlEnum
public enum PolicyType {
@XmlEnumValue("CancelSubscription")
CANCEL_SUBSCRIPTION("CancelSubscription"),
@XmlEnumValue("Skip")
SKIP("Skip"),
@XmlEnumValue("Notify")
NOTIFY("Notify");
private final String value;
PolicyType(String v) {
value = v;
}
public String value() {
return value;
}
public static PolicyType fromValue(String v) {
for (PolicyType c: PolicyType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}