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