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