View Javadoc

1   /**
2    * TRetentionPolicy.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package org.ogf.srm22;
9   
10  public class TRetentionPolicy implements java.io.Serializable {
11      private java.lang.String _value_;
12      private static java.util.HashMap _table_ = new java.util.HashMap();
13  
14      // Constructor
15      protected TRetentionPolicy(java.lang.String value) {
16          _value_ = value;
17          _table_.put(_value_,this);
18      }
19  
20      public static final java.lang.String _REPLICA = "REPLICA";
21      public static final java.lang.String _OUTPUT = "OUTPUT";
22      public static final java.lang.String _CUSTODIAL = "CUSTODIAL";
23      public static final TRetentionPolicy REPLICA = new TRetentionPolicy(_REPLICA);
24      public static final TRetentionPolicy OUTPUT = new TRetentionPolicy(_OUTPUT);
25      public static final TRetentionPolicy CUSTODIAL = new TRetentionPolicy(_CUSTODIAL);
26      public java.lang.String getValue() { return _value_;}
27      public static TRetentionPolicy fromValue(java.lang.String value)
28            throws java.lang.IllegalArgumentException {
29          TRetentionPolicy enumeration = (TRetentionPolicy)
30              _table_.get(value);
31          if (enumeration==null) throw new java.lang.IllegalArgumentException();
32          return enumeration;
33      }
34      public static TRetentionPolicy fromString(java.lang.String value)
35            throws java.lang.IllegalArgumentException {
36          return fromValue(value);
37      }
38      public boolean equals(java.lang.Object obj) {return (obj == this);}
39      public int hashCode() { return toString().hashCode();}
40      public java.lang.String toString() { return _value_;}
41      public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
42      public static org.apache.axis.encoding.Serializer getSerializer(
43             java.lang.String mechType, 
44             java.lang.Class _javaType,  
45             javax.xml.namespace.QName _xmlType) {
46          return 
47            new org.apache.axis.encoding.ser.EnumSerializer(
48              _javaType, _xmlType);
49      }
50      public static org.apache.axis.encoding.Deserializer getDeserializer(
51             java.lang.String mechType, 
52             java.lang.Class _javaType,  
53             javax.xml.namespace.QName _xmlType) {
54          return 
55            new org.apache.axis.encoding.ser.EnumDeserializer(
56              _javaType, _xmlType);
57      }
58      // Type metadata
59      private static org.apache.axis.description.TypeDesc typeDesc =
60          new org.apache.axis.description.TypeDesc(TRetentionPolicy.class);
61  
62      static {
63          typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TRetentionPolicy"));
64      }
65      /**
66       * Return type metadata object
67       */
68      public static org.apache.axis.description.TypeDesc getTypeDesc() {
69          return typeDesc;
70      }
71  
72  }