View Javadoc

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