View Javadoc

1   /**
2    * SrmUpdateSpaceResponse.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 SrmUpdateSpaceResponse  implements java.io.Serializable {
11      private org.ogf.srm22.TReturnStatus returnStatus;
12  
13      private java.lang.String requestToken;
14  
15      private org.apache.axis.types.UnsignedLong sizeOfTotalSpace;
16  
17      private org.apache.axis.types.UnsignedLong sizeOfGuaranteedSpace;
18  
19      private java.lang.Integer lifetimeGranted;
20  
21      public SrmUpdateSpaceResponse() {
22      }
23  
24      public SrmUpdateSpaceResponse(
25             org.ogf.srm22.TReturnStatus returnStatus,
26             java.lang.String requestToken,
27             org.apache.axis.types.UnsignedLong sizeOfTotalSpace,
28             org.apache.axis.types.UnsignedLong sizeOfGuaranteedSpace,
29             java.lang.Integer lifetimeGranted) {
30             this.returnStatus = returnStatus;
31             this.requestToken = requestToken;
32             this.sizeOfTotalSpace = sizeOfTotalSpace;
33             this.sizeOfGuaranteedSpace = sizeOfGuaranteedSpace;
34             this.lifetimeGranted = lifetimeGranted;
35      }
36  
37  
38      /**
39       * Gets the returnStatus value for this SrmUpdateSpaceResponse.
40       * 
41       * @return returnStatus
42       */
43      public org.ogf.srm22.TReturnStatus getReturnStatus() {
44          return returnStatus;
45      }
46  
47  
48      /**
49       * Sets the returnStatus value for this SrmUpdateSpaceResponse.
50       * 
51       * @param returnStatus
52       */
53      public void setReturnStatus(org.ogf.srm22.TReturnStatus returnStatus) {
54          this.returnStatus = returnStatus;
55      }
56  
57  
58      /**
59       * Gets the requestToken value for this SrmUpdateSpaceResponse.
60       * 
61       * @return requestToken
62       */
63      public java.lang.String getRequestToken() {
64          return requestToken;
65      }
66  
67  
68      /**
69       * Sets the requestToken value for this SrmUpdateSpaceResponse.
70       * 
71       * @param requestToken
72       */
73      public void setRequestToken(java.lang.String requestToken) {
74          this.requestToken = requestToken;
75      }
76  
77  
78      /**
79       * Gets the sizeOfTotalSpace value for this SrmUpdateSpaceResponse.
80       * 
81       * @return sizeOfTotalSpace
82       */
83      public org.apache.axis.types.UnsignedLong getSizeOfTotalSpace() {
84          return sizeOfTotalSpace;
85      }
86  
87  
88      /**
89       * Sets the sizeOfTotalSpace value for this SrmUpdateSpaceResponse.
90       * 
91       * @param sizeOfTotalSpace
92       */
93      public void setSizeOfTotalSpace(org.apache.axis.types.UnsignedLong sizeOfTotalSpace) {
94          this.sizeOfTotalSpace = sizeOfTotalSpace;
95      }
96  
97  
98      /**
99       * Gets the sizeOfGuaranteedSpace value for this SrmUpdateSpaceResponse.
100      * 
101      * @return sizeOfGuaranteedSpace
102      */
103     public org.apache.axis.types.UnsignedLong getSizeOfGuaranteedSpace() {
104         return sizeOfGuaranteedSpace;
105     }
106 
107 
108     /**
109      * Sets the sizeOfGuaranteedSpace value for this SrmUpdateSpaceResponse.
110      * 
111      * @param sizeOfGuaranteedSpace
112      */
113     public void setSizeOfGuaranteedSpace(org.apache.axis.types.UnsignedLong sizeOfGuaranteedSpace) {
114         this.sizeOfGuaranteedSpace = sizeOfGuaranteedSpace;
115     }
116 
117 
118     /**
119      * Gets the lifetimeGranted value for this SrmUpdateSpaceResponse.
120      * 
121      * @return lifetimeGranted
122      */
123     public java.lang.Integer getLifetimeGranted() {
124         return lifetimeGranted;
125     }
126 
127 
128     /**
129      * Sets the lifetimeGranted value for this SrmUpdateSpaceResponse.
130      * 
131      * @param lifetimeGranted
132      */
133     public void setLifetimeGranted(java.lang.Integer lifetimeGranted) {
134         this.lifetimeGranted = lifetimeGranted;
135     }
136 
137     private java.lang.Object __equalsCalc = null;
138     public synchronized boolean equals(java.lang.Object obj) {
139         if (!(obj instanceof SrmUpdateSpaceResponse)) return false;
140         SrmUpdateSpaceResponse other = (SrmUpdateSpaceResponse) obj;
141         if (obj == null) return false;
142         if (this == obj) return true;
143         if (__equalsCalc != null) {
144             return (__equalsCalc == obj);
145         }
146         __equalsCalc = obj;
147         boolean _equals;
148         _equals = true && 
149             ((this.returnStatus==null && other.getReturnStatus()==null) || 
150              (this.returnStatus!=null &&
151               this.returnStatus.equals(other.getReturnStatus()))) &&
152             ((this.requestToken==null && other.getRequestToken()==null) || 
153              (this.requestToken!=null &&
154               this.requestToken.equals(other.getRequestToken()))) &&
155             ((this.sizeOfTotalSpace==null && other.getSizeOfTotalSpace()==null) || 
156              (this.sizeOfTotalSpace!=null &&
157               this.sizeOfTotalSpace.equals(other.getSizeOfTotalSpace()))) &&
158             ((this.sizeOfGuaranteedSpace==null && other.getSizeOfGuaranteedSpace()==null) || 
159              (this.sizeOfGuaranteedSpace!=null &&
160               this.sizeOfGuaranteedSpace.equals(other.getSizeOfGuaranteedSpace()))) &&
161             ((this.lifetimeGranted==null && other.getLifetimeGranted()==null) || 
162              (this.lifetimeGranted!=null &&
163               this.lifetimeGranted.equals(other.getLifetimeGranted())));
164         __equalsCalc = null;
165         return _equals;
166     }
167 
168     private boolean __hashCodeCalc = false;
169     public synchronized int hashCode() {
170         if (__hashCodeCalc) {
171             return 0;
172         }
173         __hashCodeCalc = true;
174         int _hashCode = 1;
175         if (getReturnStatus() != null) {
176             _hashCode += getReturnStatus().hashCode();
177         }
178         if (getRequestToken() != null) {
179             _hashCode += getRequestToken().hashCode();
180         }
181         if (getSizeOfTotalSpace() != null) {
182             _hashCode += getSizeOfTotalSpace().hashCode();
183         }
184         if (getSizeOfGuaranteedSpace() != null) {
185             _hashCode += getSizeOfGuaranteedSpace().hashCode();
186         }
187         if (getLifetimeGranted() != null) {
188             _hashCode += getLifetimeGranted().hashCode();
189         }
190         __hashCodeCalc = false;
191         return _hashCode;
192     }
193 
194     // Type metadata
195     private static org.apache.axis.description.TypeDesc typeDesc =
196         new org.apache.axis.description.TypeDesc(SrmUpdateSpaceResponse.class, true);
197 
198     static {
199         typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "srmUpdateSpaceResponse"));
200         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
201         elemField.setFieldName("returnStatus");
202         elemField.setXmlName(new javax.xml.namespace.QName("", "returnStatus"));
203         elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TReturnStatus"));
204         elemField.setNillable(false);
205         typeDesc.addFieldDesc(elemField);
206         elemField = new org.apache.axis.description.ElementDesc();
207         elemField.setFieldName("requestToken");
208         elemField.setXmlName(new javax.xml.namespace.QName("", "requestToken"));
209         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
210         elemField.setMinOccurs(0);
211         elemField.setNillable(true);
212         typeDesc.addFieldDesc(elemField);
213         elemField = new org.apache.axis.description.ElementDesc();
214         elemField.setFieldName("sizeOfTotalSpace");
215         elemField.setXmlName(new javax.xml.namespace.QName("", "sizeOfTotalSpace"));
216         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedLong"));
217         elemField.setMinOccurs(0);
218         elemField.setNillable(true);
219         typeDesc.addFieldDesc(elemField);
220         elemField = new org.apache.axis.description.ElementDesc();
221         elemField.setFieldName("sizeOfGuaranteedSpace");
222         elemField.setXmlName(new javax.xml.namespace.QName("", "sizeOfGuaranteedSpace"));
223         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedLong"));
224         elemField.setMinOccurs(0);
225         elemField.setNillable(true);
226         typeDesc.addFieldDesc(elemField);
227         elemField = new org.apache.axis.description.ElementDesc();
228         elemField.setFieldName("lifetimeGranted");
229         elemField.setXmlName(new javax.xml.namespace.QName("", "lifetimeGranted"));
230         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
231         elemField.setMinOccurs(0);
232         elemField.setNillable(true);
233         typeDesc.addFieldDesc(elemField);
234     }
235 
236     /**
237      * Return type metadata object
238      */
239     public static org.apache.axis.description.TypeDesc getTypeDesc() {
240         return typeDesc;
241     }
242 
243     /**
244      * Get Custom Serializer
245      */
246     public static org.apache.axis.encoding.Serializer getSerializer(
247            java.lang.String mechType, 
248            java.lang.Class _javaType,  
249            javax.xml.namespace.QName _xmlType) {
250         return 
251           new  org.apache.axis.encoding.ser.BeanSerializer(
252             _javaType, _xmlType, typeDesc);
253     }
254 
255     /**
256      * Get Custom Deserializer
257      */
258     public static org.apache.axis.encoding.Deserializer getDeserializer(
259            java.lang.String mechType, 
260            java.lang.Class _javaType,  
261            javax.xml.namespace.QName _xmlType) {
262         return 
263           new  org.apache.axis.encoding.ser.BeanDeserializer(
264             _javaType, _xmlType, typeDesc);
265     }
266 
267 }