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.soap.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 boolean minorEdit;
22  
23      private java.util.Calendar modifiedDate;
24  
25      private long nodeId;
26  
27      private long pageId;
28  
29      private java.lang.String parentTitle;
30  
31      private long primaryKey;
32  
33      private java.lang.String redirectTitle;
34  
35      private long resourcePrimKey;
36  
37      private java.lang.String summary;
38  
39      private java.lang.String title;
40  
41      private long userId;
42  
43      private java.lang.String userName;
44  
45      private java.lang.String uuid;
46  
47      private double version;
48  
49      public WikiPageSoap() {
50      }
51  
52      public WikiPageSoap(
53             long companyId,
54             java.lang.String content,
55             java.util.Calendar createDate,
56             java.lang.String format,
57             boolean head,
58             boolean minorEdit,
59             java.util.Calendar modifiedDate,
60             long nodeId,
61             long pageId,
62             java.lang.String parentTitle,
63             long primaryKey,
64             java.lang.String redirectTitle,
65             long resourcePrimKey,
66             java.lang.String summary,
67             java.lang.String title,
68             long userId,
69             java.lang.String userName,
70             java.lang.String uuid,
71             double version) {
72             this.companyId = companyId;
73             this.content = content;
74             this.createDate = createDate;
75             this.format = format;
76             this.head = head;
77             this.minorEdit = minorEdit;
78             this.modifiedDate = modifiedDate;
79             this.nodeId = nodeId;
80             this.pageId = pageId;
81             this.parentTitle = parentTitle;
82             this.primaryKey = primaryKey;
83             this.redirectTitle = redirectTitle;
84             this.resourcePrimKey = resourcePrimKey;
85             this.summary = summary;
86             this.title = title;
87             this.userId = userId;
88             this.userName = userName;
89             this.uuid = uuid;
90             this.version = version;
91      }
92  
93  
94      /**
95       * Gets the companyId value for this WikiPageSoap.
96       * 
97       * @return companyId
98       */
99      public long getCompanyId() {
100         return companyId;
101     }
102 
103 
104     /**
105      * Sets the companyId value for this WikiPageSoap.
106      * 
107      * @param companyId
108      */
109     public void setCompanyId(long companyId) {
110         this.companyId = companyId;
111     }
112 
113 
114     /**
115      * Gets the content value for this WikiPageSoap.
116      * 
117      * @return content
118      */
119     public java.lang.String getContent() {
120         return content;
121     }
122 
123 
124     /**
125      * Sets the content value for this WikiPageSoap.
126      * 
127      * @param content
128      */
129     public void setContent(java.lang.String content) {
130         this.content = content;
131     }
132 
133 
134     /**
135      * Gets the createDate value for this WikiPageSoap.
136      * 
137      * @return createDate
138      */
139     public java.util.Calendar getCreateDate() {
140         return createDate;
141     }
142 
143 
144     /**
145      * Sets the createDate value for this WikiPageSoap.
146      * 
147      * @param createDate
148      */
149     public void setCreateDate(java.util.Calendar createDate) {
150         this.createDate = createDate;
151     }
152 
153 
154     /**
155      * Gets the format value for this WikiPageSoap.
156      * 
157      * @return format
158      */
159     public java.lang.String getFormat() {
160         return format;
161     }
162 
163 
164     /**
165      * Sets the format value for this WikiPageSoap.
166      * 
167      * @param format
168      */
169     public void setFormat(java.lang.String format) {
170         this.format = format;
171     }
172 
173 
174     /**
175      * Gets the head value for this WikiPageSoap.
176      * 
177      * @return head
178      */
179     public boolean isHead() {
180         return head;
181     }
182 
183 
184     /**
185      * Sets the head value for this WikiPageSoap.
186      * 
187      * @param head
188      */
189     public void setHead(boolean head) {
190         this.head = head;
191     }
192 
193 
194     /**
195      * Gets the minorEdit value for this WikiPageSoap.
196      * 
197      * @return minorEdit
198      */
199     public boolean isMinorEdit() {
200         return minorEdit;
201     }
202 
203 
204     /**
205      * Sets the minorEdit value for this WikiPageSoap.
206      * 
207      * @param minorEdit
208      */
209     public void setMinorEdit(boolean minorEdit) {
210         this.minorEdit = minorEdit;
211     }
212 
213 
214     /**
215      * Gets the modifiedDate value for this WikiPageSoap.
216      * 
217      * @return modifiedDate
218      */
219     public java.util.Calendar getModifiedDate() {
220         return modifiedDate;
221     }
222 
223 
224     /**
225      * Sets the modifiedDate value for this WikiPageSoap.
226      * 
227      * @param modifiedDate
228      */
229     public void setModifiedDate(java.util.Calendar modifiedDate) {
230         this.modifiedDate = modifiedDate;
231     }
232 
233 
234     /**
235      * Gets the nodeId value for this WikiPageSoap.
236      * 
237      * @return nodeId
238      */
239     public long getNodeId() {
240         return nodeId;
241     }
242 
243 
244     /**
245      * Sets the nodeId value for this WikiPageSoap.
246      * 
247      * @param nodeId
248      */
249     public void setNodeId(long nodeId) {
250         this.nodeId = nodeId;
251     }
252 
253 
254     /**
255      * Gets the pageId value for this WikiPageSoap.
256      * 
257      * @return pageId
258      */
259     public long getPageId() {
260         return pageId;
261     }
262 
263 
264     /**
265      * Sets the pageId value for this WikiPageSoap.
266      * 
267      * @param pageId
268      */
269     public void setPageId(long pageId) {
270         this.pageId = pageId;
271     }
272 
273 
274     /**
275      * Gets the parentTitle value for this WikiPageSoap.
276      * 
277      * @return parentTitle
278      */
279     public java.lang.String getParentTitle() {
280         return parentTitle;
281     }
282 
283 
284     /**
285      * Sets the parentTitle value for this WikiPageSoap.
286      * 
287      * @param parentTitle
288      */
289     public void setParentTitle(java.lang.String parentTitle) {
290         this.parentTitle = parentTitle;
291     }
292 
293 
294     /**
295      * Gets the primaryKey value for this WikiPageSoap.
296      * 
297      * @return primaryKey
298      */
299     public long getPrimaryKey() {
300         return primaryKey;
301     }
302 
303 
304     /**
305      * Sets the primaryKey value for this WikiPageSoap.
306      * 
307      * @param primaryKey
308      */
309     public void setPrimaryKey(long primaryKey) {
310         this.primaryKey = primaryKey;
311     }
312 
313 
314     /**
315      * Gets the redirectTitle value for this WikiPageSoap.
316      * 
317      * @return redirectTitle
318      */
319     public java.lang.String getRedirectTitle() {
320         return redirectTitle;
321     }
322 
323 
324     /**
325      * Sets the redirectTitle value for this WikiPageSoap.
326      * 
327      * @param redirectTitle
328      */
329     public void setRedirectTitle(java.lang.String redirectTitle) {
330         this.redirectTitle = redirectTitle;
331     }
332 
333 
334     /**
335      * Gets the resourcePrimKey value for this WikiPageSoap.
336      * 
337      * @return resourcePrimKey
338      */
339     public long getResourcePrimKey() {
340         return resourcePrimKey;
341     }
342 
343 
344     /**
345      * Sets the resourcePrimKey value for this WikiPageSoap.
346      * 
347      * @param resourcePrimKey
348      */
349     public void setResourcePrimKey(long resourcePrimKey) {
350         this.resourcePrimKey = resourcePrimKey;
351     }
352 
353 
354     /**
355      * Gets the summary value for this WikiPageSoap.
356      * 
357      * @return summary
358      */
359     public java.lang.String getSummary() {
360         return summary;
361     }
362 
363 
364     /**
365      * Sets the summary value for this WikiPageSoap.
366      * 
367      * @param summary
368      */
369     public void setSummary(java.lang.String summary) {
370         this.summary = summary;
371     }
372 
373 
374     /**
375      * Gets the title value for this WikiPageSoap.
376      * 
377      * @return title
378      */
379     public java.lang.String getTitle() {
380         return title;
381     }
382 
383 
384     /**
385      * Sets the title value for this WikiPageSoap.
386      * 
387      * @param title
388      */
389     public void setTitle(java.lang.String title) {
390         this.title = title;
391     }
392 
393 
394     /**
395      * Gets the userId value for this WikiPageSoap.
396      * 
397      * @return userId
398      */
399     public long getUserId() {
400         return userId;
401     }
402 
403 
404     /**
405      * Sets the userId value for this WikiPageSoap.
406      * 
407      * @param userId
408      */
409     public void setUserId(long userId) {
410         this.userId = userId;
411     }
412 
413 
414     /**
415      * Gets the userName value for this WikiPageSoap.
416      * 
417      * @return userName
418      */
419     public java.lang.String getUserName() {
420         return userName;
421     }
422 
423 
424     /**
425      * Sets the userName value for this WikiPageSoap.
426      * 
427      * @param userName
428      */
429     public void setUserName(java.lang.String userName) {
430         this.userName = userName;
431     }
432 
433 
434     /**
435      * Gets the uuid value for this WikiPageSoap.
436      * 
437      * @return uuid
438      */
439     public java.lang.String getUuid() {
440         return uuid;
441     }
442 
443 
444     /**
445      * Sets the uuid value for this WikiPageSoap.
446      * 
447      * @param uuid
448      */
449     public void setUuid(java.lang.String uuid) {
450         this.uuid = uuid;
451     }
452 
453 
454     /**
455      * Gets the version value for this WikiPageSoap.
456      * 
457      * @return version
458      */
459     public double getVersion() {
460         return version;
461     }
462 
463 
464     /**
465      * Sets the version value for this WikiPageSoap.
466      * 
467      * @param version
468      */
469     public void setVersion(double version) {
470         this.version = version;
471     }
472 
473     private java.lang.Object __equalsCalc = null;
474     public synchronized boolean equals(java.lang.Object obj) {
475         if (!(obj instanceof WikiPageSoap)) return false;
476         WikiPageSoap other = (WikiPageSoap) obj;
477         if (obj == null) return false;
478         if (this == obj) return true;
479         if (__equalsCalc != null) {
480             return (__equalsCalc == obj);
481         }
482         __equalsCalc = obj;
483         boolean _equals;
484         _equals = true && 
485             this.companyId == other.getCompanyId() &&
486             ((this.content==null && other.getContent()==null) || 
487              (this.content!=null &&
488               this.content.equals(other.getContent()))) &&
489             ((this.createDate==null && other.getCreateDate()==null) || 
490              (this.createDate!=null &&
491               this.createDate.equals(other.getCreateDate()))) &&
492             ((this.format==null && other.getFormat()==null) || 
493              (this.format!=null &&
494               this.format.equals(other.getFormat()))) &&
495             this.head == other.isHead() &&
496             this.minorEdit == other.isMinorEdit() &&
497             ((this.modifiedDate==null && other.getModifiedDate()==null) || 
498              (this.modifiedDate!=null &&
499               this.modifiedDate.equals(other.getModifiedDate()))) &&
500             this.nodeId == other.getNodeId() &&
501             this.pageId == other.getPageId() &&
502             ((this.parentTitle==null && other.getParentTitle()==null) || 
503              (this.parentTitle!=null &&
504               this.parentTitle.equals(other.getParentTitle()))) &&
505             this.primaryKey == other.getPrimaryKey() &&
506             ((this.redirectTitle==null && other.getRedirectTitle()==null) || 
507              (this.redirectTitle!=null &&
508               this.redirectTitle.equals(other.getRedirectTitle()))) &&
509             this.resourcePrimKey == other.getResourcePrimKey() &&
510             ((this.summary==null && other.getSummary()==null) || 
511              (this.summary!=null &&
512               this.summary.equals(other.getSummary()))) &&
513             ((this.title==null && other.getTitle()==null) || 
514              (this.title!=null &&
515               this.title.equals(other.getTitle()))) &&
516             this.userId == other.getUserId() &&
517             ((this.userName==null && other.getUserName()==null) || 
518              (this.userName!=null &&
519               this.userName.equals(other.getUserName()))) &&
520             ((this.uuid==null && other.getUuid()==null) || 
521              (this.uuid!=null &&
522               this.uuid.equals(other.getUuid()))) &&
523             this.version == other.getVersion();
524         __equalsCalc = null;
525         return _equals;
526     }
527 
528     private boolean __hashCodeCalc = false;
529     public synchronized int hashCode() {
530         if (__hashCodeCalc) {
531             return 0;
532         }
533         __hashCodeCalc = true;
534         int _hashCode = 1;
535         _hashCode += new Long(getCompanyId()).hashCode();
536         if (getContent() != null) {
537             _hashCode += getContent().hashCode();
538         }
539         if (getCreateDate() != null) {
540             _hashCode += getCreateDate().hashCode();
541         }
542         if (getFormat() != null) {
543             _hashCode += getFormat().hashCode();
544         }
545         _hashCode += (isHead() ? Boolean.TRUE : Boolean.FALSE).hashCode();
546         _hashCode += (isMinorEdit() ? Boolean.TRUE : Boolean.FALSE).hashCode();
547         if (getModifiedDate() != null) {
548             _hashCode += getModifiedDate().hashCode();
549         }
550         _hashCode += new Long(getNodeId()).hashCode();
551         _hashCode += new Long(getPageId()).hashCode();
552         if (getParentTitle() != null) {
553             _hashCode += getParentTitle().hashCode();
554         }
555         _hashCode += new Long(getPrimaryKey()).hashCode();
556         if (getRedirectTitle() != null) {
557             _hashCode += getRedirectTitle().hashCode();
558         }
559         _hashCode += new Long(getResourcePrimKey()).hashCode();
560         if (getSummary() != null) {
561             _hashCode += getSummary().hashCode();
562         }
563         if (getTitle() != null) {
564             _hashCode += getTitle().hashCode();
565         }
566         _hashCode += new Long(getUserId()).hashCode();
567         if (getUserName() != null) {
568             _hashCode += getUserName().hashCode();
569         }
570         if (getUuid() != null) {
571             _hashCode += getUuid().hashCode();
572         }
573         _hashCode += new Double(getVersion()).hashCode();
574         __hashCodeCalc = false;
575         return _hashCode;
576     }
577 
578     // Type metadata
579     private static org.apache.axis.description.TypeDesc typeDesc =
580         new org.apache.axis.description.TypeDesc(WikiPageSoap.class, true);
581 
582     static {
583         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.wiki.portlet.liferay.com", "WikiPageSoap"));
584         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
585         elemField.setFieldName("companyId");
586         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
587         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
588         elemField.setNillable(false);
589         typeDesc.addFieldDesc(elemField);
590         elemField = new org.apache.axis.description.ElementDesc();
591         elemField.setFieldName("content");
592         elemField.setXmlName(new javax.xml.namespace.QName("", "content"));
593         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
594         elemField.setNillable(true);
595         typeDesc.addFieldDesc(elemField);
596         elemField = new org.apache.axis.description.ElementDesc();
597         elemField.setFieldName("createDate");
598         elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
599         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
600         elemField.setNillable(true);
601         typeDesc.addFieldDesc(elemField);
602         elemField = new org.apache.axis.description.ElementDesc();
603         elemField.setFieldName("format");
604         elemField.setXmlName(new javax.xml.namespace.QName("", "format"));
605         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
606         elemField.setNillable(true);
607         typeDesc.addFieldDesc(elemField);
608         elemField = new org.apache.axis.description.ElementDesc();
609         elemField.setFieldName("head");
610         elemField.setXmlName(new javax.xml.namespace.QName("", "head"));
611         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
612         elemField.setNillable(false);
613         typeDesc.addFieldDesc(elemField);
614         elemField = new org.apache.axis.description.ElementDesc();
615         elemField.setFieldName("minorEdit");
616         elemField.setXmlName(new javax.xml.namespace.QName("", "minorEdit"));
617         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
618         elemField.setNillable(false);
619         typeDesc.addFieldDesc(elemField);
620         elemField = new org.apache.axis.description.ElementDesc();
621         elemField.setFieldName("modifiedDate");
622         elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
623         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
624         elemField.setNillable(true);
625         typeDesc.addFieldDesc(elemField);
626         elemField = new org.apache.axis.description.ElementDesc();
627         elemField.setFieldName("nodeId");
628         elemField.setXmlName(new javax.xml.namespace.QName("", "nodeId"));
629         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
630         elemField.setNillable(false);
631         typeDesc.addFieldDesc(elemField);
632         elemField = new org.apache.axis.description.ElementDesc();
633         elemField.setFieldName("pageId");
634         elemField.setXmlName(new javax.xml.namespace.QName("", "pageId"));
635         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
636         elemField.setNillable(false);
637         typeDesc.addFieldDesc(elemField);
638         elemField = new org.apache.axis.description.ElementDesc();
639         elemField.setFieldName("parentTitle");
640         elemField.setXmlName(new javax.xml.namespace.QName("", "parentTitle"));
641         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
642         elemField.setNillable(true);
643         typeDesc.addFieldDesc(elemField);
644         elemField = new org.apache.axis.description.ElementDesc();
645         elemField.setFieldName("primaryKey");
646         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
647         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
648         elemField.setNillable(false);
649         typeDesc.addFieldDesc(elemField);
650         elemField = new org.apache.axis.description.ElementDesc();
651         elemField.setFieldName("redirectTitle");
652         elemField.setXmlName(new javax.xml.namespace.QName("", "redirectTitle"));
653         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
654         elemField.setNillable(true);
655         typeDesc.addFieldDesc(elemField);
656         elemField = new org.apache.axis.description.ElementDesc();
657         elemField.setFieldName("resourcePrimKey");
658         elemField.setXmlName(new javax.xml.namespace.QName("", "resourcePrimKey"));
659         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
660         elemField.setNillable(false);
661         typeDesc.addFieldDesc(elemField);
662         elemField = new org.apache.axis.description.ElementDesc();
663         elemField.setFieldName("summary");
664         elemField.setXmlName(new javax.xml.namespace.QName("", "summary"));
665         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
666         elemField.setNillable(true);
667         typeDesc.addFieldDesc(elemField);
668         elemField = new org.apache.axis.description.ElementDesc();
669         elemField.setFieldName("title");
670         elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
671         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
672         elemField.setNillable(true);
673         typeDesc.addFieldDesc(elemField);
674         elemField = new org.apache.axis.description.ElementDesc();
675         elemField.setFieldName("userId");
676         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
677         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
678         elemField.setNillable(false);
679         typeDesc.addFieldDesc(elemField);
680         elemField = new org.apache.axis.description.ElementDesc();
681         elemField.setFieldName("userName");
682         elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
683         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
684         elemField.setNillable(true);
685         typeDesc.addFieldDesc(elemField);
686         elemField = new org.apache.axis.description.ElementDesc();
687         elemField.setFieldName("uuid");
688         elemField.setXmlName(new javax.xml.namespace.QName("", "uuid"));
689         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
690         elemField.setNillable(true);
691         typeDesc.addFieldDesc(elemField);
692         elemField = new org.apache.axis.description.ElementDesc();
693         elemField.setFieldName("version");
694         elemField.setXmlName(new javax.xml.namespace.QName("", "version"));
695         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
696         elemField.setNillable(false);
697         typeDesc.addFieldDesc(elemField);
698     }
699 
700     /**
701      * Return type metadata object
702      */
703     public static org.apache.axis.description.TypeDesc getTypeDesc() {
704         return typeDesc;
705     }
706 
707     /**
708      * Get Custom Serializer
709      */
710     public static org.apache.axis.encoding.Serializer getSerializer(
711            java.lang.String mechType, 
712            java.lang.Class _javaType,  
713            javax.xml.namespace.QName _xmlType) {
714         return 
715           new  org.apache.axis.encoding.ser.BeanSerializer(
716             _javaType, _xmlType, typeDesc);
717     }
718 
719     /**
720      * Get Custom Deserializer
721      */
722     public static org.apache.axis.encoding.Deserializer getDeserializer(
723            java.lang.String mechType, 
724            java.lang.Class _javaType,  
725            javax.xml.namespace.QName _xmlType) {
726         return 
727           new  org.apache.axis.encoding.ser.BeanDeserializer(
728             _javaType, _xmlType, typeDesc);
729     }
730 
731 }
732