View Javadoc

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