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