1
2
3
4
5
6
7
8 package org.ogf.srm22;
9
10 public class TPermissionMode implements java.io.Serializable {
11 private java.lang.String _value_;
12 private static java.util.HashMap _table_ = new java.util.HashMap();
13
14
15 protected TPermissionMode(java.lang.String value) {
16 _value_ = value;
17 _table_.put(_value_,this);
18 }
19
20 public static final java.lang.String _NONE = "NONE";
21 public static final java.lang.String _X = "X";
22 public static final java.lang.String _W = "W";
23 public static final java.lang.String _WX = "WX";
24 public static final java.lang.String _R = "R";
25 public static final java.lang.String _RX = "RX";
26 public static final java.lang.String _RW = "RW";
27 public static final java.lang.String _RWX = "RWX";
28 public static final TPermissionMode NONE = new TPermissionMode(_NONE);
29 public static final TPermissionMode X = new TPermissionMode(_X);
30 public static final TPermissionMode W = new TPermissionMode(_W);
31 public static final TPermissionMode WX = new TPermissionMode(_WX);
32 public static final TPermissionMode R = new TPermissionMode(_R);
33 public static final TPermissionMode RX = new TPermissionMode(_RX);
34 public static final TPermissionMode RW = new TPermissionMode(_RW);
35 public static final TPermissionMode RWX = new TPermissionMode(_RWX);
36 public java.lang.String getValue() { return _value_;}
37 public static TPermissionMode fromValue(java.lang.String value)
38 throws java.lang.IllegalArgumentException {
39 TPermissionMode enumeration = (TPermissionMode)
40 _table_.get(value);
41 if (enumeration==null) throw new java.lang.IllegalArgumentException();
42 return enumeration;
43 }
44 public static TPermissionMode fromString(java.lang.String value)
45 throws java.lang.IllegalArgumentException {
46 return fromValue(value);
47 }
48 public boolean equals(java.lang.Object obj) {return (obj == this);}
49 public int hashCode() { return toString().hashCode();}
50 public java.lang.String toString() { return _value_;}
51 public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
52 public static org.apache.axis.encoding.Serializer getSerializer(
53 java.lang.String mechType,
54 java.lang.Class _javaType,
55 javax.xml.namespace.QName _xmlType) {
56 return
57 new org.apache.axis.encoding.ser.EnumSerializer(
58 _javaType, _xmlType);
59 }
60 public static org.apache.axis.encoding.Deserializer getDeserializer(
61 java.lang.String mechType,
62 java.lang.Class _javaType,
63 javax.xml.namespace.QName _xmlType) {
64 return
65 new org.apache.axis.encoding.ser.EnumDeserializer(
66 _javaType, _xmlType);
67 }
68
69 private static org.apache.axis.description.TypeDesc typeDesc =
70 new org.apache.axis.description.TypeDesc(TPermissionMode.class);
71
72 static {
73 typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TPermissionMode"));
74 }
75
76
77
78 public static org.apache.axis.description.TypeDesc getTypeDesc() {
79 return typeDesc;
80 }
81
82 }