package org.oasis.wsrp.v2; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CookieProtocol. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <simpleType name="CookieProtocol"> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="none"/> * <enumeration value="perUser"/> * <enumeration value="perGroup"/> * </restriction> * </simpleType> * </pre> * */ @XmlType(name = "CookieProtocol") @XmlEnum public enum CookieProtocol { @XmlEnumValue("none") NONE("none"), @XmlEnumValue("perUser") PER_USER("perUser"), @XmlEnumValue("perGroup") PER_GROUP("perGroup"); private final String value; CookieProtocol(String v) { value = v; } public String value() { return value; } public static CookieProtocol fromValue(String v) { for (CookieProtocol c: CookieProtocol.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }