01: //
02: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-3509
03: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
04: // Any modifications to this file will be lost upon recompilation of the source schema.
05: // Generated on: 2006.09.12 at 08:57:41 PM IST
06: //
07:
08: package com.sun.xml.wss.saml.internal.saml20.jaxb20;
09:
10: import javax.xml.bind.annotation.XmlEnum;
11: import javax.xml.bind.annotation.XmlEnumValue;
12:
13: /**
14: * <p>Java class for DecisionType.
15: *
16: * <p>The following schema fragment specifies the expected content contained within this class.
17: * <p>
18: * <pre>
19: * <simpleType name="DecisionType">
20: * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
21: * <enumeration value="Permit"/>
22: * <enumeration value="Deny"/>
23: * <enumeration value="Indeterminate"/>
24: * </restriction>
25: * </simpleType>
26: * </pre>
27: *
28: */
29: @XmlEnum
30: public enum DecisionType {
31:
32: @XmlEnumValue("Permit")
33: PERMIT("Permit"), @XmlEnumValue("Deny")
34: DENY("Deny"), @XmlEnumValue("Indeterminate")
35: INDETERMINATE("Indeterminate");
36: private final String value;
37:
38: DecisionType(String v) {
39: value = v;
40: }
41:
42: public String value() {
43: return value;
44: }
45:
46: public static DecisionType fromValue(String v) {
47: for (DecisionType c : DecisionType.values()) {
48: if (c.value.equals(v)) {
49: return c;
50: }
51: }
52: throw new IllegalArgumentException(v.toString());
53: }
54:
55: }
|