View Javadoc

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