DecisionType.java revision fb98811412f1a61efdc30b38091bf4708148a806
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster//
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster// Any modifications to this file will be lost upon recompilation of the source schema.
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster// Generated on: 2012.06.11 at 10:26:55 AM PDT
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster//
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster
fb98811412f1a61efdc30b38091bf4708148a806Allan Fosterpackage com.sun.identity.entitlement.xacml3.core;
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster
fb98811412f1a61efdc30b38091bf4708148a806Allan Fosterimport javax.xml.bind.annotation.XmlEnum;
fb98811412f1a61efdc30b38091bf4708148a806Allan Fosterimport javax.xml.bind.annotation.XmlEnumValue;
fb98811412f1a61efdc30b38091bf4708148a806Allan Fosterimport javax.xml.bind.annotation.XmlType;
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster/**
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * <p>Java class for DecisionType.
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster *
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * <p>The following schema fragment specifies the expected content contained within this class.
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * <p>
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * <pre>
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * &lt;simpleType name="DecisionType">
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * &lt;enumeration value="Permit"/>
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * &lt;enumeration value="Deny"/>
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * &lt;enumeration value="Indeterminate"/>
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * &lt;enumeration value="NotApplicable"/>
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * &lt;/restriction>
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * &lt;/simpleType>
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster * </pre>
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster *
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster */
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster@XmlType(name = "DecisionType")
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster@XmlEnum
fb98811412f1a61efdc30b38091bf4708148a806Allan Fosterpublic enum DecisionType {
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster @XmlEnumValue("Permit")
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster PERMIT("Permit"),
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster @XmlEnumValue("Deny")
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster DENY("Deny"),
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster @XmlEnumValue("Indeterminate")
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster INDETERMINATE("Indeterminate"),
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster @XmlEnumValue("NotApplicable")
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster NOT_APPLICABLE("NotApplicable");
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster private final String value;
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster DecisionType(String v) {
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster value = v;
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster }
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster public String value() {
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster return value;
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster }
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster public static DecisionType fromValue(String v) {
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster for (DecisionType c: DecisionType.values()) {
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster if (c.value.equals(v)) {
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster return c;
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster }
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster }
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster throw new IllegalArgumentException(v);
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster }
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster
fb98811412f1a61efdc30b38091bf4708148a806Allan Foster}