View Javadoc

1   /***
2    * FileType.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC2 Jun 16, 2005 (10:54:53 EDT) WSDL2Java emitter.
6    */
7   
8   package org.globus.mds.glue;
9   
10  public class FileType  implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
11      private org.apache.axis.message.MessageElement [] _any;
12      private java.lang.String name;  // attribute
13      private int size;  // attribute
14      private java.util.Calendar creationDate;  // attribute
15      private java.util.Calendar lastModified;  // attribute
16      private java.util.Calendar lastAccessed;  // attribute
17      private org.apache.axis.types.Duration latency;  // attribute
18      private java.util.Calendar lifeTime;  // attribute
19      private java.lang.String owner;  // attribute
20  
21      public FileType() {
22      }
23  
24      public FileType(
25             org.apache.axis.message.MessageElement [] _any,
26             java.util.Calendar creationDate,
27             java.util.Calendar lastAccessed,
28             java.util.Calendar lastModified,
29             org.apache.axis.types.Duration latency,
30             java.util.Calendar lifeTime,
31             java.lang.String name,
32             java.lang.String owner,
33             int size) {
34             this._any = _any;
35             this.name = name;
36             this.size = size;
37             this.creationDate = creationDate;
38             this.lastModified = lastModified;
39             this.lastAccessed = lastAccessed;
40             this.latency = latency;
41             this.lifeTime = lifeTime;
42             this.owner = owner;
43      }
44  
45  
46      /***
47       * Gets the _any value for this FileType.
48       * 
49       * @return _any
50       */
51      public org.apache.axis.message.MessageElement [] get_any() {
52          return _any;
53      }
54  
55  
56      /***
57       * Sets the _any value for this FileType.
58       * 
59       * @param _any
60       */
61      public void set_any(org.apache.axis.message.MessageElement [] _any) {
62          this._any = _any;
63      }
64  
65  
66      /***
67       * Gets the name value for this FileType.
68       * 
69       * @return name
70       */
71      public java.lang.String getName() {
72          return name;
73      }
74  
75  
76      /***
77       * Sets the name value for this FileType.
78       * 
79       * @param name
80       */
81      public void setName(java.lang.String name) {
82          this.name = name;
83      }
84  
85  
86      /***
87       * Gets the size value for this FileType.
88       * 
89       * @return size
90       */
91      public int getSize() {
92          return size;
93      }
94  
95  
96      /***
97       * Sets the size value for this FileType.
98       * 
99       * @param size
100      */
101     public void setSize(int size) {
102         this.size = size;
103     }
104 
105 
106     /***
107      * Gets the creationDate value for this FileType.
108      * 
109      * @return creationDate
110      */
111     public java.util.Calendar getCreationDate() {
112         return creationDate;
113     }
114 
115 
116     /***
117      * Sets the creationDate value for this FileType.
118      * 
119      * @param creationDate
120      */
121     public void setCreationDate(java.util.Calendar creationDate) {
122         this.creationDate = creationDate;
123     }
124 
125 
126     /***
127      * Gets the lastModified value for this FileType.
128      * 
129      * @return lastModified
130      */
131     public java.util.Calendar getLastModified() {
132         return lastModified;
133     }
134 
135 
136     /***
137      * Sets the lastModified value for this FileType.
138      * 
139      * @param lastModified
140      */
141     public void setLastModified(java.util.Calendar lastModified) {
142         this.lastModified = lastModified;
143     }
144 
145 
146     /***
147      * Gets the lastAccessed value for this FileType.
148      * 
149      * @return lastAccessed
150      */
151     public java.util.Calendar getLastAccessed() {
152         return lastAccessed;
153     }
154 
155 
156     /***
157      * Sets the lastAccessed value for this FileType.
158      * 
159      * @param lastAccessed
160      */
161     public void setLastAccessed(java.util.Calendar lastAccessed) {
162         this.lastAccessed = lastAccessed;
163     }
164 
165 
166     /***
167      * Gets the latency value for this FileType.
168      * 
169      * @return latency
170      */
171     public org.apache.axis.types.Duration getLatency() {
172         return latency;
173     }
174 
175 
176     /***
177      * Sets the latency value for this FileType.
178      * 
179      * @param latency
180      */
181     public void setLatency(org.apache.axis.types.Duration latency) {
182         this.latency = latency;
183     }
184 
185 
186     /***
187      * Gets the lifeTime value for this FileType.
188      * 
189      * @return lifeTime
190      */
191     public java.util.Calendar getLifeTime() {
192         return lifeTime;
193     }
194 
195 
196     /***
197      * Sets the lifeTime value for this FileType.
198      * 
199      * @param lifeTime
200      */
201     public void setLifeTime(java.util.Calendar lifeTime) {
202         this.lifeTime = lifeTime;
203     }
204 
205 
206     /***
207      * Gets the owner value for this FileType.
208      * 
209      * @return owner
210      */
211     public java.lang.String getOwner() {
212         return owner;
213     }
214 
215 
216     /***
217      * Sets the owner value for this FileType.
218      * 
219      * @param owner
220      */
221     public void setOwner(java.lang.String owner) {
222         this.owner = owner;
223     }
224 
225     private java.lang.Object __equalsCalc = null;
226     public synchronized boolean equals(java.lang.Object obj) {
227         if (!(obj instanceof FileType)) return false;
228         FileType other = (FileType) obj;
229         if (obj == null) return false;
230         if (this == obj) return true;
231         if (__equalsCalc != null) {
232             return (__equalsCalc == obj);
233         }
234         __equalsCalc = obj;
235         boolean _equals;
236         _equals = true && 
237             ((this._any==null && other.get_any()==null) || 
238              (this._any!=null &&
239               java.util.Arrays.equals(this._any, other.get_any()))) &&
240             ((this.name==null && other.getName()==null) || 
241              (this.name!=null &&
242               this.name.equals(other.getName()))) &&
243             this.size == other.getSize() &&
244             ((this.creationDate==null && other.getCreationDate()==null) || 
245              (this.creationDate!=null &&
246               this.creationDate.equals(other.getCreationDate()))) &&
247             ((this.lastModified==null && other.getLastModified()==null) || 
248              (this.lastModified!=null &&
249               this.lastModified.equals(other.getLastModified()))) &&
250             ((this.lastAccessed==null && other.getLastAccessed()==null) || 
251              (this.lastAccessed!=null &&
252               this.lastAccessed.equals(other.getLastAccessed()))) &&
253             ((this.latency==null && other.getLatency()==null) || 
254              (this.latency!=null &&
255               this.latency.equals(other.getLatency()))) &&
256             ((this.lifeTime==null && other.getLifeTime()==null) || 
257              (this.lifeTime!=null &&
258               this.lifeTime.equals(other.getLifeTime()))) &&
259             ((this.owner==null && other.getOwner()==null) || 
260              (this.owner!=null &&
261               this.owner.equals(other.getOwner())));
262         __equalsCalc = null;
263         return _equals;
264     }
265 
266     private boolean __hashCodeCalc = false;
267     public synchronized int hashCode() {
268         if (__hashCodeCalc) {
269             return 0;
270         }
271         __hashCodeCalc = true;
272         int _hashCode = 1;
273         if (get_any() != null) {
274             for (int i=0;
275                  i<java.lang.reflect.Array.getLength(get_any());
276                  i++) {
277                 java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
278                 if (obj != null &&
279                     !obj.getClass().isArray()) {
280                     _hashCode += obj.hashCode();
281                 }
282             }
283         }
284         if (getName() != null) {
285             _hashCode += getName().hashCode();
286         }
287         _hashCode += getSize();
288         if (getCreationDate() != null) {
289             _hashCode += getCreationDate().hashCode();
290         }
291         if (getLastModified() != null) {
292             _hashCode += getLastModified().hashCode();
293         }
294         if (getLastAccessed() != null) {
295             _hashCode += getLastAccessed().hashCode();
296         }
297         if (getLatency() != null) {
298             _hashCode += getLatency().hashCode();
299         }
300         if (getLifeTime() != null) {
301             _hashCode += getLifeTime().hashCode();
302         }
303         if (getOwner() != null) {
304             _hashCode += getOwner().hashCode();
305         }
306         __hashCodeCalc = false;
307         return _hashCode;
308     }
309 
310     // Type metadata
311     private static org.apache.axis.description.TypeDesc typeDesc =
312         new org.apache.axis.description.TypeDesc(FileType.class, true);
313 
314     static {
315         typeDesc.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "FileType"));
316         org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
317         attrField.setFieldName("name");
318         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "Name"));
319         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
320         typeDesc.addFieldDesc(attrField);
321         attrField = new org.apache.axis.description.AttributeDesc();
322         attrField.setFieldName("size");
323         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "Size"));
324         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
325         typeDesc.addFieldDesc(attrField);
326         attrField = new org.apache.axis.description.AttributeDesc();
327         attrField.setFieldName("creationDate");
328         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "CreationDate"));
329         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
330         typeDesc.addFieldDesc(attrField);
331         attrField = new org.apache.axis.description.AttributeDesc();
332         attrField.setFieldName("lastModified");
333         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "LastModified"));
334         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
335         typeDesc.addFieldDesc(attrField);
336         attrField = new org.apache.axis.description.AttributeDesc();
337         attrField.setFieldName("lastAccessed");
338         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "LastAccessed"));
339         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
340         typeDesc.addFieldDesc(attrField);
341         attrField = new org.apache.axis.description.AttributeDesc();
342         attrField.setFieldName("latency");
343         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "Latency"));
344         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "duration"));
345         typeDesc.addFieldDesc(attrField);
346         attrField = new org.apache.axis.description.AttributeDesc();
347         attrField.setFieldName("lifeTime");
348         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "LifeTime"));
349         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
350         typeDesc.addFieldDesc(attrField);
351         attrField = new org.apache.axis.description.AttributeDesc();
352         attrField.setFieldName("owner");
353         attrField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "Owner"));
354         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
355         typeDesc.addFieldDesc(attrField);
356     }
357 
358     /***
359      * Return type metadata object
360      */
361     public static org.apache.axis.description.TypeDesc getTypeDesc() {
362         return typeDesc;
363     }
364 
365     /***
366      * Get Custom Serializer
367      */
368     public static org.apache.axis.encoding.Serializer getSerializer(
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.BeanSerializer(
374             _javaType, _xmlType, typeDesc);
375     }
376 
377     /***
378      * Get Custom Deserializer
379      */
380     public static org.apache.axis.encoding.Deserializer getDeserializer(
381            java.lang.String mechType, 
382            java.lang.Class _javaType,  
383            javax.xml.namespace.QName _xmlType) {
384         return 
385           new  org.apache.axis.encoding.ser.BeanDeserializer(
386             _javaType, _xmlType, typeDesc);
387     }
388 
389 }