View Javadoc

1   /**
2    * TFileLocality.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 TFileLocality 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 TFileLocality(java.lang.String value) {
16          _value_ = value;
17          _table_.put(_value_,this);
18      }
19  
20      public static final java.lang.String _ONLINE = "ONLINE";
21      public static final java.lang.String _NEARLINE = "NEARLINE";
22      public static final java.lang.String _ONLINE_AND_NEARLINE = "ONLINE_AND_NEARLINE";
23      public static final java.lang.String _LOST = "LOST";
24      public static final java.lang.String _NONE = "NONE";
25      public static final java.lang.String _UNAVAILABLE = "UNAVAILABLE";
26      public static final TFileLocality ONLINE = new TFileLocality(_ONLINE);
27      public static final TFileLocality NEARLINE = new TFileLocality(_NEARLINE);
28      public static final TFileLocality ONLINE_AND_NEARLINE = new TFileLocality(_ONLINE_AND_NEARLINE);
29      public static final TFileLocality LOST = new TFileLocality(_LOST);
30      public static final TFileLocality NONE = new TFileLocality(_NONE);
31      public static final TFileLocality UNAVAILABLE = new TFileLocality(_UNAVAILABLE);
32      public java.lang.String getValue() { return _value_;}
33      public static TFileLocality fromValue(java.lang.String value)
34            throws java.lang.IllegalArgumentException {
35          TFileLocality enumeration = (TFileLocality)
36              _table_.get(value);
37          if (enumeration==null) throw new java.lang.IllegalArgumentException();
38          return enumeration;
39      }
40      public static TFileLocality fromString(java.lang.String value)
41            throws java.lang.IllegalArgumentException {
42          return fromValue(value);
43      }
44      public boolean equals(java.lang.Object obj) {return (obj == this);}
45      public int hashCode() { return toString().hashCode();}
46      public java.lang.String toString() { return _value_;}
47      public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
48      public static org.apache.axis.encoding.Serializer getSerializer(
49             java.lang.String mechType, 
50             java.lang.Class _javaType,  
51             javax.xml.namespace.QName _xmlType) {
52          return 
53            new org.apache.axis.encoding.ser.EnumSerializer(
54              _javaType, _xmlType);
55      }
56      public static org.apache.axis.encoding.Deserializer getDeserializer(
57             java.lang.String mechType, 
58             java.lang.Class _javaType,  
59             javax.xml.namespace.QName _xmlType) {
60          return 
61            new org.apache.axis.encoding.ser.EnumDeserializer(
62              _javaType, _xmlType);
63      }
64      // Type metadata
65      private static org.apache.axis.description.TypeDesc typeDesc =
66          new org.apache.axis.description.TypeDesc(TFileLocality.class);
67  
68      static {
69          typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TFileLocality"));
70      }
71      /**
72       * Return type metadata object
73       */
74      public static org.apache.axis.description.TypeDesc getTypeDesc() {
75          return typeDesc;
76      }
77  
78  }