View Javadoc

1   /**
2    * TOverwriteMode.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 TOverwriteMode 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 TOverwriteMode(java.lang.String value) {
16          _value_ = value;
17          _table_.put(_value_,this);
18      }
19  
20      public static final java.lang.String _NEVER = "NEVER";
21      public static final java.lang.String _ALWAYS = "ALWAYS";
22      public static final java.lang.String _WHEN_FILES_ARE_DIFFERENT = "WHEN_FILES_ARE_DIFFERENT";
23      public static final TOverwriteMode NEVER = new TOverwriteMode(_NEVER);
24      public static final TOverwriteMode ALWAYS = new TOverwriteMode(_ALWAYS);
25      public static final TOverwriteMode WHEN_FILES_ARE_DIFFERENT = new TOverwriteMode(_WHEN_FILES_ARE_DIFFERENT);
26      public java.lang.String getValue() { return _value_;}
27      public static TOverwriteMode fromValue(java.lang.String value)
28            throws java.lang.IllegalArgumentException {
29          TOverwriteMode enumeration = (TOverwriteMode)
30              _table_.get(value);
31          if (enumeration==null) throw new java.lang.IllegalArgumentException();
32          return enumeration;
33      }
34      public static TOverwriteMode 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(TOverwriteMode.class);
61  
62      static {
63          typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TOverwriteMode"));
64      }
65      /**
66       * Return type metadata object
67       */
68      public static org.apache.axis.description.TypeDesc getTypeDesc() {
69          return typeDesc;
70      }
71  
72  }