View Javadoc

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