View Javadoc

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