View Javadoc

1   /**
2    * SrmLsResponse.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 SrmLsResponse  implements java.io.Serializable {
11      private org.ogf.srm22.TReturnStatus returnStatus;
12  
13      private java.lang.String requestToken;
14  
15      private org.ogf.srm22.ArrayOfTMetaDataPathDetail details;
16  
17      public SrmLsResponse() {
18      }
19  
20      public SrmLsResponse(
21             org.ogf.srm22.TReturnStatus returnStatus,
22             java.lang.String requestToken,
23             org.ogf.srm22.ArrayOfTMetaDataPathDetail details) {
24             this.returnStatus = returnStatus;
25             this.requestToken = requestToken;
26             this.details = details;
27      }
28  
29  
30      /**
31       * Gets the returnStatus value for this SrmLsResponse.
32       * 
33       * @return returnStatus
34       */
35      public org.ogf.srm22.TReturnStatus getReturnStatus() {
36          return returnStatus;
37      }
38  
39  
40      /**
41       * Sets the returnStatus value for this SrmLsResponse.
42       * 
43       * @param returnStatus
44       */
45      public void setReturnStatus(org.ogf.srm22.TReturnStatus returnStatus) {
46          this.returnStatus = returnStatus;
47      }
48  
49  
50      /**
51       * Gets the requestToken value for this SrmLsResponse.
52       * 
53       * @return requestToken
54       */
55      public java.lang.String getRequestToken() {
56          return requestToken;
57      }
58  
59  
60      /**
61       * Sets the requestToken value for this SrmLsResponse.
62       * 
63       * @param requestToken
64       */
65      public void setRequestToken(java.lang.String requestToken) {
66          this.requestToken = requestToken;
67      }
68  
69  
70      /**
71       * Gets the details value for this SrmLsResponse.
72       * 
73       * @return details
74       */
75      public org.ogf.srm22.ArrayOfTMetaDataPathDetail getDetails() {
76          return details;
77      }
78  
79  
80      /**
81       * Sets the details value for this SrmLsResponse.
82       * 
83       * @param details
84       */
85      public void setDetails(org.ogf.srm22.ArrayOfTMetaDataPathDetail details) {
86          this.details = details;
87      }
88  
89      private java.lang.Object __equalsCalc = null;
90      public synchronized boolean equals(java.lang.Object obj) {
91          if (!(obj instanceof SrmLsResponse)) return false;
92          SrmLsResponse other = (SrmLsResponse) obj;
93          if (obj == null) return false;
94          if (this == obj) return true;
95          if (__equalsCalc != null) {
96              return (__equalsCalc == obj);
97          }
98          __equalsCalc = obj;
99          boolean _equals;
100         _equals = true && 
101             ((this.returnStatus==null && other.getReturnStatus()==null) || 
102              (this.returnStatus!=null &&
103               this.returnStatus.equals(other.getReturnStatus()))) &&
104             ((this.requestToken==null && other.getRequestToken()==null) || 
105              (this.requestToken!=null &&
106               this.requestToken.equals(other.getRequestToken()))) &&
107             ((this.details==null && other.getDetails()==null) || 
108              (this.details!=null &&
109               this.details.equals(other.getDetails())));
110         __equalsCalc = null;
111         return _equals;
112     }
113 
114     private boolean __hashCodeCalc = false;
115     public synchronized int hashCode() {
116         if (__hashCodeCalc) {
117             return 0;
118         }
119         __hashCodeCalc = true;
120         int _hashCode = 1;
121         if (getReturnStatus() != null) {
122             _hashCode += getReturnStatus().hashCode();
123         }
124         if (getRequestToken() != null) {
125             _hashCode += getRequestToken().hashCode();
126         }
127         if (getDetails() != null) {
128             _hashCode += getDetails().hashCode();
129         }
130         __hashCodeCalc = false;
131         return _hashCode;
132     }
133 
134     // Type metadata
135     private static org.apache.axis.description.TypeDesc typeDesc =
136         new org.apache.axis.description.TypeDesc(SrmLsResponse.class, true);
137 
138     static {
139         typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "srmLsResponse"));
140         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
141         elemField.setFieldName("returnStatus");
142         elemField.setXmlName(new javax.xml.namespace.QName("", "returnStatus"));
143         elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TReturnStatus"));
144         elemField.setNillable(false);
145         typeDesc.addFieldDesc(elemField);
146         elemField = new org.apache.axis.description.ElementDesc();
147         elemField.setFieldName("requestToken");
148         elemField.setXmlName(new javax.xml.namespace.QName("", "requestToken"));
149         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
150         elemField.setMinOccurs(0);
151         elemField.setNillable(true);
152         typeDesc.addFieldDesc(elemField);
153         elemField = new org.apache.axis.description.ElementDesc();
154         elemField.setFieldName("details");
155         elemField.setXmlName(new javax.xml.namespace.QName("", "details"));
156         elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "ArrayOfTMetaDataPathDetail"));
157         elemField.setMinOccurs(0);
158         elemField.setNillable(true);
159         typeDesc.addFieldDesc(elemField);
160     }
161 
162     /**
163      * Return type metadata object
164      */
165     public static org.apache.axis.description.TypeDesc getTypeDesc() {
166         return typeDesc;
167     }
168 
169     /**
170      * Get Custom Serializer
171      */
172     public static org.apache.axis.encoding.Serializer getSerializer(
173            java.lang.String mechType, 
174            java.lang.Class _javaType,  
175            javax.xml.namespace.QName _xmlType) {
176         return 
177           new  org.apache.axis.encoding.ser.BeanSerializer(
178             _javaType, _xmlType, typeDesc);
179     }
180 
181     /**
182      * Get Custom Deserializer
183      */
184     public static org.apache.axis.encoding.Deserializer getDeserializer(
185            java.lang.String mechType, 
186            java.lang.Class _javaType,  
187            javax.xml.namespace.QName _xmlType) {
188         return 
189           new  org.apache.axis.encoding.ser.BeanDeserializer(
190             _javaType, _xmlType, typeDesc);
191     }
192 
193 }