1   /**
2    * DLFileVersionSoap.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 com.liferay.client.soap.portlet.documentlibrary.model;
9   
10  public class DLFileVersionSoap  implements java.io.Serializable {
11      private long companyId;
12  
13      private java.util.Calendar createDate;
14  
15      private java.lang.String description;
16  
17      private long fileVersionId;
18  
19      private long folderId;
20  
21      private long groupId;
22  
23      private java.lang.String name;
24  
25      private long primaryKey;
26  
27      private int size;
28  
29      private long userId;
30  
31      private java.lang.String userName;
32  
33      private double version;
34  
35      public DLFileVersionSoap() {
36      }
37  
38      public DLFileVersionSoap(
39             long companyId,
40             java.util.Calendar createDate,
41             java.lang.String description,
42             long fileVersionId,
43             long folderId,
44             long groupId,
45             java.lang.String name,
46             long primaryKey,
47             int size,
48             long userId,
49             java.lang.String userName,
50             double version) {
51             this.companyId = companyId;
52             this.createDate = createDate;
53             this.description = description;
54             this.fileVersionId = fileVersionId;
55             this.folderId = folderId;
56             this.groupId = groupId;
57             this.name = name;
58             this.primaryKey = primaryKey;
59             this.size = size;
60             this.userId = userId;
61             this.userName = userName;
62             this.version = version;
63      }
64  
65  
66      /**
67       * Gets the companyId value for this DLFileVersionSoap.
68       * 
69       * @return companyId
70       */
71      public long getCompanyId() {
72          return companyId;
73      }
74  
75  
76      /**
77       * Sets the companyId value for this DLFileVersionSoap.
78       * 
79       * @param companyId
80       */
81      public void setCompanyId(long companyId) {
82          this.companyId = companyId;
83      }
84  
85  
86      /**
87       * Gets the createDate value for this DLFileVersionSoap.
88       * 
89       * @return createDate
90       */
91      public java.util.Calendar getCreateDate() {
92          return createDate;
93      }
94  
95  
96      /**
97       * Sets the createDate value for this DLFileVersionSoap.
98       * 
99       * @param createDate
100      */
101     public void setCreateDate(java.util.Calendar createDate) {
102         this.createDate = createDate;
103     }
104 
105 
106     /**
107      * Gets the description value for this DLFileVersionSoap.
108      * 
109      * @return description
110      */
111     public java.lang.String getDescription() {
112         return description;
113     }
114 
115 
116     /**
117      * Sets the description value for this DLFileVersionSoap.
118      * 
119      * @param description
120      */
121     public void setDescription(java.lang.String description) {
122         this.description = description;
123     }
124 
125 
126     /**
127      * Gets the fileVersionId value for this DLFileVersionSoap.
128      * 
129      * @return fileVersionId
130      */
131     public long getFileVersionId() {
132         return fileVersionId;
133     }
134 
135 
136     /**
137      * Sets the fileVersionId value for this DLFileVersionSoap.
138      * 
139      * @param fileVersionId
140      */
141     public void setFileVersionId(long fileVersionId) {
142         this.fileVersionId = fileVersionId;
143     }
144 
145 
146     /**
147      * Gets the folderId value for this DLFileVersionSoap.
148      * 
149      * @return folderId
150      */
151     public long getFolderId() {
152         return folderId;
153     }
154 
155 
156     /**
157      * Sets the folderId value for this DLFileVersionSoap.
158      * 
159      * @param folderId
160      */
161     public void setFolderId(long folderId) {
162         this.folderId = folderId;
163     }
164 
165 
166     /**
167      * Gets the groupId value for this DLFileVersionSoap.
168      * 
169      * @return groupId
170      */
171     public long getGroupId() {
172         return groupId;
173     }
174 
175 
176     /**
177      * Sets the groupId value for this DLFileVersionSoap.
178      * 
179      * @param groupId
180      */
181     public void setGroupId(long groupId) {
182         this.groupId = groupId;
183     }
184 
185 
186     /**
187      * Gets the name value for this DLFileVersionSoap.
188      * 
189      * @return name
190      */
191     public java.lang.String getName() {
192         return name;
193     }
194 
195 
196     /**
197      * Sets the name value for this DLFileVersionSoap.
198      * 
199      * @param name
200      */
201     public void setName(java.lang.String name) {
202         this.name = name;
203     }
204 
205 
206     /**
207      * Gets the primaryKey value for this DLFileVersionSoap.
208      * 
209      * @return primaryKey
210      */
211     public long getPrimaryKey() {
212         return primaryKey;
213     }
214 
215 
216     /**
217      * Sets the primaryKey value for this DLFileVersionSoap.
218      * 
219      * @param primaryKey
220      */
221     public void setPrimaryKey(long primaryKey) {
222         this.primaryKey = primaryKey;
223     }
224 
225 
226     /**
227      * Gets the size value for this DLFileVersionSoap.
228      * 
229      * @return size
230      */
231     public int getSize() {
232         return size;
233     }
234 
235 
236     /**
237      * Sets the size value for this DLFileVersionSoap.
238      * 
239      * @param size
240      */
241     public void setSize(int size) {
242         this.size = size;
243     }
244 
245 
246     /**
247      * Gets the userId value for this DLFileVersionSoap.
248      * 
249      * @return userId
250      */
251     public long getUserId() {
252         return userId;
253     }
254 
255 
256     /**
257      * Sets the userId value for this DLFileVersionSoap.
258      * 
259      * @param userId
260      */
261     public void setUserId(long userId) {
262         this.userId = userId;
263     }
264 
265 
266     /**
267      * Gets the userName value for this DLFileVersionSoap.
268      * 
269      * @return userName
270      */
271     public java.lang.String getUserName() {
272         return userName;
273     }
274 
275 
276     /**
277      * Sets the userName value for this DLFileVersionSoap.
278      * 
279      * @param userName
280      */
281     public void setUserName(java.lang.String userName) {
282         this.userName = userName;
283     }
284 
285 
286     /**
287      * Gets the version value for this DLFileVersionSoap.
288      * 
289      * @return version
290      */
291     public double getVersion() {
292         return version;
293     }
294 
295 
296     /**
297      * Sets the version value for this DLFileVersionSoap.
298      * 
299      * @param version
300      */
301     public void setVersion(double version) {
302         this.version = version;
303     }
304 
305     private java.lang.Object __equalsCalc = null;
306     public synchronized boolean equals(java.lang.Object obj) {
307         if (!(obj instanceof DLFileVersionSoap)) return false;
308         DLFileVersionSoap other = (DLFileVersionSoap) obj;
309         if (obj == null) return false;
310         if (this == obj) return true;
311         if (__equalsCalc != null) {
312             return (__equalsCalc == obj);
313         }
314         __equalsCalc = obj;
315         boolean _equals;
316         _equals = true && 
317             this.companyId == other.getCompanyId() &&
318             ((this.createDate==null && other.getCreateDate()==null) || 
319              (this.createDate!=null &&
320               this.createDate.equals(other.getCreateDate()))) &&
321             ((this.description==null && other.getDescription()==null) || 
322              (this.description!=null &&
323               this.description.equals(other.getDescription()))) &&
324             this.fileVersionId == other.getFileVersionId() &&
325             this.folderId == other.getFolderId() &&
326             this.groupId == other.getGroupId() &&
327             ((this.name==null && other.getName()==null) || 
328              (this.name!=null &&
329               this.name.equals(other.getName()))) &&
330             this.primaryKey == other.getPrimaryKey() &&
331             this.size == other.getSize() &&
332             this.userId == other.getUserId() &&
333             ((this.userName==null && other.getUserName()==null) || 
334              (this.userName!=null &&
335               this.userName.equals(other.getUserName()))) &&
336             this.version == other.getVersion();
337         __equalsCalc = null;
338         return _equals;
339     }
340 
341     private boolean __hashCodeCalc = false;
342     public synchronized int hashCode() {
343         if (__hashCodeCalc) {
344             return 0;
345         }
346         __hashCodeCalc = true;
347         int _hashCode = 1;
348         _hashCode += new Long(getCompanyId()).hashCode();
349         if (getCreateDate() != null) {
350             _hashCode += getCreateDate().hashCode();
351         }
352         if (getDescription() != null) {
353             _hashCode += getDescription().hashCode();
354         }
355         _hashCode += new Long(getFileVersionId()).hashCode();
356         _hashCode += new Long(getFolderId()).hashCode();
357         _hashCode += new Long(getGroupId()).hashCode();
358         if (getName() != null) {
359             _hashCode += getName().hashCode();
360         }
361         _hashCode += new Long(getPrimaryKey()).hashCode();
362         _hashCode += getSize();
363         _hashCode += new Long(getUserId()).hashCode();
364         if (getUserName() != null) {
365             _hashCode += getUserName().hashCode();
366         }
367         _hashCode += new Double(getVersion()).hashCode();
368         __hashCodeCalc = false;
369         return _hashCode;
370     }
371 
372     // Type metadata
373     private static org.apache.axis.description.TypeDesc typeDesc =
374         new org.apache.axis.description.TypeDesc(DLFileVersionSoap.class, true);
375 
376     static {
377         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.documentlibrary.portlet.liferay.com", "DLFileVersionSoap"));
378         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
379         elemField.setFieldName("companyId");
380         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
381         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
382         elemField.setNillable(false);
383         typeDesc.addFieldDesc(elemField);
384         elemField = new org.apache.axis.description.ElementDesc();
385         elemField.setFieldName("createDate");
386         elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
387         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
388         elemField.setNillable(true);
389         typeDesc.addFieldDesc(elemField);
390         elemField = new org.apache.axis.description.ElementDesc();
391         elemField.setFieldName("description");
392         elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
393         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
394         elemField.setNillable(true);
395         typeDesc.addFieldDesc(elemField);
396         elemField = new org.apache.axis.description.ElementDesc();
397         elemField.setFieldName("fileVersionId");
398         elemField.setXmlName(new javax.xml.namespace.QName("", "fileVersionId"));
399         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
400         elemField.setNillable(false);
401         typeDesc.addFieldDesc(elemField);
402         elemField = new org.apache.axis.description.ElementDesc();
403         elemField.setFieldName("folderId");
404         elemField.setXmlName(new javax.xml.namespace.QName("", "folderId"));
405         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
406         elemField.setNillable(false);
407         typeDesc.addFieldDesc(elemField);
408         elemField = new org.apache.axis.description.ElementDesc();
409         elemField.setFieldName("groupId");
410         elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
411         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
412         elemField.setNillable(false);
413         typeDesc.addFieldDesc(elemField);
414         elemField = new org.apache.axis.description.ElementDesc();
415         elemField.setFieldName("name");
416         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
417         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
418         elemField.setNillable(true);
419         typeDesc.addFieldDesc(elemField);
420         elemField = new org.apache.axis.description.ElementDesc();
421         elemField.setFieldName("primaryKey");
422         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
423         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
424         elemField.setNillable(false);
425         typeDesc.addFieldDesc(elemField);
426         elemField = new org.apache.axis.description.ElementDesc();
427         elemField.setFieldName("size");
428         elemField.setXmlName(new javax.xml.namespace.QName("", "size"));
429         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
430         elemField.setNillable(false);
431         typeDesc.addFieldDesc(elemField);
432         elemField = new org.apache.axis.description.ElementDesc();
433         elemField.setFieldName("userId");
434         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
435         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
436         elemField.setNillable(false);
437         typeDesc.addFieldDesc(elemField);
438         elemField = new org.apache.axis.description.ElementDesc();
439         elemField.setFieldName("userName");
440         elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
441         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
442         elemField.setNillable(true);
443         typeDesc.addFieldDesc(elemField);
444         elemField = new org.apache.axis.description.ElementDesc();
445         elemField.setFieldName("version");
446         elemField.setXmlName(new javax.xml.namespace.QName("", "version"));
447         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
448         elemField.setNillable(false);
449         typeDesc.addFieldDesc(elemField);
450     }
451 
452     /**
453      * Return type metadata object
454      */
455     public static org.apache.axis.description.TypeDesc getTypeDesc() {
456         return typeDesc;
457     }
458 
459     /**
460      * Get Custom Serializer
461      */
462     public static org.apache.axis.encoding.Serializer getSerializer(
463            java.lang.String mechType, 
464            java.lang.Class _javaType,  
465            javax.xml.namespace.QName _xmlType) {
466         return 
467           new  org.apache.axis.encoding.ser.BeanSerializer(
468             _javaType, _xmlType, typeDesc);
469     }
470 
471     /**
472      * Get Custom Deserializer
473      */
474     public static org.apache.axis.encoding.Deserializer getDeserializer(
475            java.lang.String mechType, 
476            java.lang.Class _javaType,  
477            javax.xml.namespace.QName _xmlType) {
478         return 
479           new  org.apache.axis.encoding.ser.BeanDeserializer(
480             _javaType, _xmlType, typeDesc);
481     }
482 
483 }
484