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