01: /**
02: * CookieProtocol.java
03: *
04: * This file was auto-generated from WSDL
05: * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
06: */package oasis.names.tc.wsrp.v1.types;
07:
08: public class CookieProtocol implements java.io.Serializable {
09: private java.lang.String _value_;
10: private static java.util.HashMap _table_ = new java.util.HashMap();
11:
12: // Constructor
13: protected CookieProtocol(java.lang.String value) {
14: _value_ = value;
15: _table_.put(_value_, this );
16: }
17:
18: public static final java.lang.String _none = "none";
19: public static final java.lang.String _perUser = "perUser";
20: public static final java.lang.String _perGroup = "perGroup";
21: public static final CookieProtocol none = new CookieProtocol(_none);
22: public static final CookieProtocol perUser = new CookieProtocol(
23: _perUser);
24: public static final CookieProtocol perGroup = new CookieProtocol(
25: _perGroup);
26:
27: public java.lang.String getValue() {
28: return _value_;
29: }
30:
31: public static CookieProtocol fromValue(java.lang.String value)
32: throws java.lang.IllegalArgumentException {
33: CookieProtocol enumeration = (CookieProtocol) _table_
34: .get(value);
35: if (enumeration == null)
36: throw new java.lang.IllegalArgumentException();
37: return enumeration;
38: }
39:
40: public static CookieProtocol fromString(java.lang.String value)
41: throws java.lang.IllegalArgumentException {
42: return fromValue(value);
43: }
44:
45: public boolean equals(java.lang.Object obj) {
46: return (obj == this );
47: }
48:
49: public int hashCode() {
50: return toString().hashCode();
51: }
52:
53: public java.lang.String toString() {
54: return _value_;
55: }
56:
57: public java.lang.Object readResolve()
58: throws java.io.ObjectStreamException {
59: return fromValue(_value_);
60: }
61:
62: public static org.apache.axis.encoding.Serializer getSerializer(
63: java.lang.String mechType, java.lang.Class _javaType,
64: javax.xml.namespace.QName _xmlType) {
65: return new org.apache.axis.encoding.ser.EnumSerializer(
66: _javaType, _xmlType);
67: }
68:
69: public static org.apache.axis.encoding.Deserializer getDeserializer(
70: java.lang.String mechType, java.lang.Class _javaType,
71: javax.xml.namespace.QName _xmlType) {
72: return new org.apache.axis.encoding.ser.EnumDeserializer(
73: _javaType, _xmlType);
74: }
75:
76: // Type metadata
77: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
78: CookieProtocol.class);
79:
80: static {
81: typeDesc.setXmlType(new javax.xml.namespace.QName(
82: "urn:oasis:names:tc:wsrp:v1:types", "CookieProtocol"));
83: }
84:
85: /**
86: * Return type metadata object
87: */
88: public static org.apache.axis.description.TypeDesc getTypeDesc() {
89: return typeDesc;
90: }
91:
92: }
|