View Javadoc

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