package org.oasis.names.tc.saml.assertion; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for DecisionType. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <simpleType name="DecisionType"> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="Permit"/> * <enumeration value="Deny"/> * <enumeration value="Indeterminate"/> * </restriction> * </simpleType> * </pre> * */ @XmlType(name = "DecisionType") @XmlEnum public enum DecisionType { @XmlEnumValue("Permit") PERMIT("Permit"), @XmlEnumValue("Deny") DENY("Deny"), @XmlEnumValue("Indeterminate") INDETERMINATE("Indeterminate"); private final String value; DecisionType(String v) { value = v; } public String value() { return value; } public static DecisionType fromValue(String v) { for (DecisionType c: DecisionType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }