View Javadoc

1   /**
2    * SrmStatusOfReserveSpaceRequestResponse.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 SrmStatusOfReserveSpaceRequestResponse  implements java.io.Serializable {
11      private org.ogf.srm22.TReturnStatus returnStatus;
12  
13      private java.lang.Integer estimatedProcessingTime;
14  
15      private org.ogf.srm22.TRetentionPolicyInfo retentionPolicyInfo;
16  
17      private org.apache.axis.types.UnsignedLong sizeOfTotalReservedSpace;
18  
19      private org.apache.axis.types.UnsignedLong sizeOfGuaranteedReservedSpace;
20  
21      private java.lang.Integer lifetimeOfReservedSpace;
22  
23      private java.lang.String spaceToken;
24  
25      public SrmStatusOfReserveSpaceRequestResponse() {
26      }
27  
28      public SrmStatusOfReserveSpaceRequestResponse(
29             org.ogf.srm22.TReturnStatus returnStatus,
30             java.lang.Integer estimatedProcessingTime,
31             org.ogf.srm22.TRetentionPolicyInfo retentionPolicyInfo,
32             org.apache.axis.types.UnsignedLong sizeOfTotalReservedSpace,
33             org.apache.axis.types.UnsignedLong sizeOfGuaranteedReservedSpace,
34             java.lang.Integer lifetimeOfReservedSpace,
35             java.lang.String spaceToken) {
36             this.returnStatus = returnStatus;
37             this.estimatedProcessingTime = estimatedProcessingTime;
38             this.retentionPolicyInfo = retentionPolicyInfo;
39             this.sizeOfTotalReservedSpace = sizeOfTotalReservedSpace;
40             this.sizeOfGuaranteedReservedSpace = sizeOfGuaranteedReservedSpace;
41             this.lifetimeOfReservedSpace = lifetimeOfReservedSpace;
42             this.spaceToken = spaceToken;
43      }
44  
45  
46      /**
47       * Gets the returnStatus value for this SrmStatusOfReserveSpaceRequestResponse.
48       * 
49       * @return returnStatus
50       */
51      public org.ogf.srm22.TReturnStatus getReturnStatus() {
52          return returnStatus;
53      }
54  
55  
56      /**
57       * Sets the returnStatus value for this SrmStatusOfReserveSpaceRequestResponse.
58       * 
59       * @param returnStatus
60       */
61      public void setReturnStatus(org.ogf.srm22.TReturnStatus returnStatus) {
62          this.returnStatus = returnStatus;
63      }
64  
65  
66      /**
67       * Gets the estimatedProcessingTime value for this SrmStatusOfReserveSpaceRequestResponse.
68       * 
69       * @return estimatedProcessingTime
70       */
71      public java.lang.Integer getEstimatedProcessingTime() {
72          return estimatedProcessingTime;
73      }
74  
75  
76      /**
77       * Sets the estimatedProcessingTime value for this SrmStatusOfReserveSpaceRequestResponse.
78       * 
79       * @param estimatedProcessingTime
80       */
81      public void setEstimatedProcessingTime(java.lang.Integer estimatedProcessingTime) {
82          this.estimatedProcessingTime = estimatedProcessingTime;
83      }
84  
85  
86      /**
87       * Gets the retentionPolicyInfo value for this SrmStatusOfReserveSpaceRequestResponse.
88       * 
89       * @return retentionPolicyInfo
90       */
91      public org.ogf.srm22.TRetentionPolicyInfo getRetentionPolicyInfo() {
92          return retentionPolicyInfo;
93      }
94  
95  
96      /**
97       * Sets the retentionPolicyInfo value for this SrmStatusOfReserveSpaceRequestResponse.
98       * 
99       * @param retentionPolicyInfo
100      */
101     public void setRetentionPolicyInfo(org.ogf.srm22.TRetentionPolicyInfo retentionPolicyInfo) {
102         this.retentionPolicyInfo = retentionPolicyInfo;
103     }
104 
105 
106     /**
107      * Gets the sizeOfTotalReservedSpace value for this SrmStatusOfReserveSpaceRequestResponse.
108      * 
109      * @return sizeOfTotalReservedSpace
110      */
111     public org.apache.axis.types.UnsignedLong getSizeOfTotalReservedSpace() {
112         return sizeOfTotalReservedSpace;
113     }
114 
115 
116     /**
117      * Sets the sizeOfTotalReservedSpace value for this SrmStatusOfReserveSpaceRequestResponse.
118      * 
119      * @param sizeOfTotalReservedSpace
120      */
121     public void setSizeOfTotalReservedSpace(org.apache.axis.types.UnsignedLong sizeOfTotalReservedSpace) {
122         this.sizeOfTotalReservedSpace = sizeOfTotalReservedSpace;
123     }
124 
125 
126     /**
127      * Gets the sizeOfGuaranteedReservedSpace value for this SrmStatusOfReserveSpaceRequestResponse.
128      * 
129      * @return sizeOfGuaranteedReservedSpace
130      */
131     public org.apache.axis.types.UnsignedLong getSizeOfGuaranteedReservedSpace() {
132         return sizeOfGuaranteedReservedSpace;
133     }
134 
135 
136     /**
137      * Sets the sizeOfGuaranteedReservedSpace value for this SrmStatusOfReserveSpaceRequestResponse.
138      * 
139      * @param sizeOfGuaranteedReservedSpace
140      */
141     public void setSizeOfGuaranteedReservedSpace(org.apache.axis.types.UnsignedLong sizeOfGuaranteedReservedSpace) {
142         this.sizeOfGuaranteedReservedSpace = sizeOfGuaranteedReservedSpace;
143     }
144 
145 
146     /**
147      * Gets the lifetimeOfReservedSpace value for this SrmStatusOfReserveSpaceRequestResponse.
148      * 
149      * @return lifetimeOfReservedSpace
150      */
151     public java.lang.Integer getLifetimeOfReservedSpace() {
152         return lifetimeOfReservedSpace;
153     }
154 
155 
156     /**
157      * Sets the lifetimeOfReservedSpace value for this SrmStatusOfReserveSpaceRequestResponse.
158      * 
159      * @param lifetimeOfReservedSpace
160      */
161     public void setLifetimeOfReservedSpace(java.lang.Integer lifetimeOfReservedSpace) {
162         this.lifetimeOfReservedSpace = lifetimeOfReservedSpace;
163     }
164 
165 
166     /**
167      * Gets the spaceToken value for this SrmStatusOfReserveSpaceRequestResponse.
168      * 
169      * @return spaceToken
170      */
171     public java.lang.String getSpaceToken() {
172         return spaceToken;
173     }
174 
175 
176     /**
177      * Sets the spaceToken value for this SrmStatusOfReserveSpaceRequestResponse.
178      * 
179      * @param spaceToken
180      */
181     public void setSpaceToken(java.lang.String spaceToken) {
182         this.spaceToken = spaceToken;
183     }
184 
185     private java.lang.Object __equalsCalc = null;
186     public synchronized boolean equals(java.lang.Object obj) {
187         if (!(obj instanceof SrmStatusOfReserveSpaceRequestResponse)) return false;
188         SrmStatusOfReserveSpaceRequestResponse other = (SrmStatusOfReserveSpaceRequestResponse) obj;
189         if (obj == null) return false;
190         if (this == obj) return true;
191         if (__equalsCalc != null) {
192             return (__equalsCalc == obj);
193         }
194         __equalsCalc = obj;
195         boolean _equals;
196         _equals = true && 
197             ((this.returnStatus==null && other.getReturnStatus()==null) || 
198              (this.returnStatus!=null &&
199               this.returnStatus.equals(other.getReturnStatus()))) &&
200             ((this.estimatedProcessingTime==null && other.getEstimatedProcessingTime()==null) || 
201              (this.estimatedProcessingTime!=null &&
202               this.estimatedProcessingTime.equals(other.getEstimatedProcessingTime()))) &&
203             ((this.retentionPolicyInfo==null && other.getRetentionPolicyInfo()==null) || 
204              (this.retentionPolicyInfo!=null &&
205               this.retentionPolicyInfo.equals(other.getRetentionPolicyInfo()))) &&
206             ((this.sizeOfTotalReservedSpace==null && other.getSizeOfTotalReservedSpace()==null) || 
207              (this.sizeOfTotalReservedSpace!=null &&
208               this.sizeOfTotalReservedSpace.equals(other.getSizeOfTotalReservedSpace()))) &&
209             ((this.sizeOfGuaranteedReservedSpace==null && other.getSizeOfGuaranteedReservedSpace()==null) || 
210              (this.sizeOfGuaranteedReservedSpace!=null &&
211               this.sizeOfGuaranteedReservedSpace.equals(other.getSizeOfGuaranteedReservedSpace()))) &&
212             ((this.lifetimeOfReservedSpace==null && other.getLifetimeOfReservedSpace()==null) || 
213              (this.lifetimeOfReservedSpace!=null &&
214               this.lifetimeOfReservedSpace.equals(other.getLifetimeOfReservedSpace()))) &&
215             ((this.spaceToken==null && other.getSpaceToken()==null) || 
216              (this.spaceToken!=null &&
217               this.spaceToken.equals(other.getSpaceToken())));
218         __equalsCalc = null;
219         return _equals;
220     }
221 
222     private boolean __hashCodeCalc = false;
223     public synchronized int hashCode() {
224         if (__hashCodeCalc) {
225             return 0;
226         }
227         __hashCodeCalc = true;
228         int _hashCode = 1;
229         if (getReturnStatus() != null) {
230             _hashCode += getReturnStatus().hashCode();
231         }
232         if (getEstimatedProcessingTime() != null) {
233             _hashCode += getEstimatedProcessingTime().hashCode();
234         }
235         if (getRetentionPolicyInfo() != null) {
236             _hashCode += getRetentionPolicyInfo().hashCode();
237         }
238         if (getSizeOfTotalReservedSpace() != null) {
239             _hashCode += getSizeOfTotalReservedSpace().hashCode();
240         }
241         if (getSizeOfGuaranteedReservedSpace() != null) {
242             _hashCode += getSizeOfGuaranteedReservedSpace().hashCode();
243         }
244         if (getLifetimeOfReservedSpace() != null) {
245             _hashCode += getLifetimeOfReservedSpace().hashCode();
246         }
247         if (getSpaceToken() != null) {
248             _hashCode += getSpaceToken().hashCode();
249         }
250         __hashCodeCalc = false;
251         return _hashCode;
252     }
253 
254     // Type metadata
255     private static org.apache.axis.description.TypeDesc typeDesc =
256         new org.apache.axis.description.TypeDesc(SrmStatusOfReserveSpaceRequestResponse.class, true);
257 
258     static {
259         typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "srmStatusOfReserveSpaceRequestResponse"));
260         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
261         elemField.setFieldName("returnStatus");
262         elemField.setXmlName(new javax.xml.namespace.QName("", "returnStatus"));
263         elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TReturnStatus"));
264         elemField.setNillable(false);
265         typeDesc.addFieldDesc(elemField);
266         elemField = new org.apache.axis.description.ElementDesc();
267         elemField.setFieldName("estimatedProcessingTime");
268         elemField.setXmlName(new javax.xml.namespace.QName("", "estimatedProcessingTime"));
269         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
270         elemField.setMinOccurs(0);
271         elemField.setNillable(true);
272         typeDesc.addFieldDesc(elemField);
273         elemField = new org.apache.axis.description.ElementDesc();
274         elemField.setFieldName("retentionPolicyInfo");
275         elemField.setXmlName(new javax.xml.namespace.QName("", "retentionPolicyInfo"));
276         elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TRetentionPolicyInfo"));
277         elemField.setMinOccurs(0);
278         elemField.setNillable(true);
279         typeDesc.addFieldDesc(elemField);
280         elemField = new org.apache.axis.description.ElementDesc();
281         elemField.setFieldName("sizeOfTotalReservedSpace");
282         elemField.setXmlName(new javax.xml.namespace.QName("", "sizeOfTotalReservedSpace"));
283         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedLong"));
284         elemField.setMinOccurs(0);
285         elemField.setNillable(true);
286         typeDesc.addFieldDesc(elemField);
287         elemField = new org.apache.axis.description.ElementDesc();
288         elemField.setFieldName("sizeOfGuaranteedReservedSpace");
289         elemField.setXmlName(new javax.xml.namespace.QName("", "sizeOfGuaranteedReservedSpace"));
290         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedLong"));
291         elemField.setMinOccurs(0);
292         elemField.setNillable(true);
293         typeDesc.addFieldDesc(elemField);
294         elemField = new org.apache.axis.description.ElementDesc();
295         elemField.setFieldName("lifetimeOfReservedSpace");
296         elemField.setXmlName(new javax.xml.namespace.QName("", "lifetimeOfReservedSpace"));
297         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
298         elemField.setMinOccurs(0);
299         elemField.setNillable(true);
300         typeDesc.addFieldDesc(elemField);
301         elemField = new org.apache.axis.description.ElementDesc();
302         elemField.setFieldName("spaceToken");
303         elemField.setXmlName(new javax.xml.namespace.QName("", "spaceToken"));
304         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
305         elemField.setMinOccurs(0);
306         elemField.setNillable(true);
307         typeDesc.addFieldDesc(elemField);
308     }
309 
310     /**
311      * Return type metadata object
312      */
313     public static org.apache.axis.description.TypeDesc getTypeDesc() {
314         return typeDesc;
315     }
316 
317     /**
318      * Get Custom Serializer
319      */
320     public static org.apache.axis.encoding.Serializer getSerializer(
321            java.lang.String mechType, 
322            java.lang.Class _javaType,  
323            javax.xml.namespace.QName _xmlType) {
324         return 
325           new  org.apache.axis.encoding.ser.BeanSerializer(
326             _javaType, _xmlType, typeDesc);
327     }
328 
329     /**
330      * Get Custom Deserializer
331      */
332     public static org.apache.axis.encoding.Deserializer getDeserializer(
333            java.lang.String mechType, 
334            java.lang.Class _javaType,  
335            javax.xml.namespace.QName _xmlType) {
336         return 
337           new  org.apache.axis.encoding.ser.BeanDeserializer(
338             _javaType, _xmlType, typeDesc);
339     }
340 
341 }