1
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 java.lang.String uuid;
36
37 private double version;
38
39 public WikiPageSoap() {
40 }
41
42 public WikiPageSoap(
43 long companyId,
44 java.lang.String content,
45 java.util.Calendar createDate,
46 java.lang.String format,
47 boolean head,
48 long nodeId,
49 long pageId,
50 long primaryKey,
51 long resourcePrimKey,
52 java.lang.String title,
53 long userId,
54 java.lang.String userName,
55 java.lang.String uuid,
56 double version) {
57 this.companyId = companyId;
58 this.content = content;
59 this.createDate = createDate;
60 this.format = format;
61 this.head = head;
62 this.nodeId = nodeId;
63 this.pageId = pageId;
64 this.primaryKey = primaryKey;
65 this.resourcePrimKey = resourcePrimKey;
66 this.title = title;
67 this.userId = userId;
68 this.userName = userName;
69 this.uuid = uuid;
70 this.version = version;
71 }
72
73
74
79 public long getCompanyId() {
80 return companyId;
81 }
82
83
84
89 public void setCompanyId(long companyId) {
90 this.companyId = companyId;
91 }
92
93
94
99 public java.lang.String getContent() {
100 return content;
101 }
102
103
104
109 public void setContent(java.lang.String content) {
110 this.content = content;
111 }
112
113
114
119 public java.util.Calendar getCreateDate() {
120 return createDate;
121 }
122
123
124
129 public void setCreateDate(java.util.Calendar createDate) {
130 this.createDate = createDate;
131 }
132
133
134
139 public java.lang.String getFormat() {
140 return format;
141 }
142
143
144
149 public void setFormat(java.lang.String format) {
150 this.format = format;
151 }
152
153
154
159 public boolean isHead() {
160 return head;
161 }
162
163
164
169 public void setHead(boolean head) {
170 this.head = head;
171 }
172
173
174
179 public long getNodeId() {
180 return nodeId;
181 }
182
183
184
189 public void setNodeId(long nodeId) {
190 this.nodeId = nodeId;
191 }
192
193
194
199 public long getPageId() {
200 return pageId;
201 }
202
203
204
209 public void setPageId(long pageId) {
210 this.pageId = pageId;
211 }
212
213
214
219 public long getPrimaryKey() {
220 return primaryKey;
221 }
222
223
224
229 public void setPrimaryKey(long primaryKey) {
230 this.primaryKey = primaryKey;
231 }
232
233
234
239 public long getResourcePrimKey() {
240 return resourcePrimKey;
241 }
242
243
244
249 public void setResourcePrimKey(long resourcePrimKey) {
250 this.resourcePrimKey = resourcePrimKey;
251 }
252
253
254
259 public java.lang.String getTitle() {
260 return title;
261 }
262
263
264
269 public void setTitle(java.lang.String title) {
270 this.title = title;
271 }
272
273
274
279 public long getUserId() {
280 return userId;
281 }
282
283
284
289 public void setUserId(long userId) {
290 this.userId = userId;
291 }
292
293
294
299 public java.lang.String getUserName() {
300 return userName;
301 }
302
303
304
309 public void setUserName(java.lang.String userName) {
310 this.userName = userName;
311 }
312
313
314
319 public java.lang.String getUuid() {
320 return uuid;
321 }
322
323
324
329 public void setUuid(java.lang.String uuid) {
330 this.uuid = uuid;
331 }
332
333
334
339 public double getVersion() {
340 return version;
341 }
342
343
344
349 public void setVersion(double version) {
350 this.version = version;
351 }
352
353 private java.lang.Object __equalsCalc = null;
354 public synchronized boolean equals(java.lang.Object obj) {
355 if (!(obj instanceof WikiPageSoap)) return false;
356 WikiPageSoap other = (WikiPageSoap) obj;
357 if (obj == null) return false;
358 if (this == obj) return true;
359 if (__equalsCalc != null) {
360 return (__equalsCalc == obj);
361 }
362 __equalsCalc = obj;
363 boolean _equals;
364 _equals = true &&
365 this.companyId == other.getCompanyId() &&
366 ((this.content==null && other.getContent()==null) ||
367 (this.content!=null &&
368 this.content.equals(other.getContent()))) &&
369 ((this.createDate==null && other.getCreateDate()==null) ||
370 (this.createDate!=null &&
371 this.createDate.equals(other.getCreateDate()))) &&
372 ((this.format==null && other.getFormat()==null) ||
373 (this.format!=null &&
374 this.format.equals(other.getFormat()))) &&
375 this.head == other.isHead() &&
376 this.nodeId == other.getNodeId() &&
377 this.pageId == other.getPageId() &&
378 this.primaryKey == other.getPrimaryKey() &&
379 this.resourcePrimKey == other.getResourcePrimKey() &&
380 ((this.title==null && other.getTitle()==null) ||
381 (this.title!=null &&
382 this.title.equals(other.getTitle()))) &&
383 this.userId == other.getUserId() &&
384 ((this.userName==null && other.getUserName()==null) ||
385 (this.userName!=null &&
386 this.userName.equals(other.getUserName()))) &&
387 ((this.uuid==null && other.getUuid()==null) ||
388 (this.uuid!=null &&
389 this.uuid.equals(other.getUuid()))) &&
390 this.version == other.getVersion();
391 __equalsCalc = null;
392 return _equals;
393 }
394
395 private boolean __hashCodeCalc = false;
396 public synchronized int hashCode() {
397 if (__hashCodeCalc) {
398 return 0;
399 }
400 __hashCodeCalc = true;
401 int _hashCode = 1;
402 _hashCode += new Long(getCompanyId()).hashCode();
403 if (getContent() != null) {
404 _hashCode += getContent().hashCode();
405 }
406 if (getCreateDate() != null) {
407 _hashCode += getCreateDate().hashCode();
408 }
409 if (getFormat() != null) {
410 _hashCode += getFormat().hashCode();
411 }
412 _hashCode += (isHead() ? Boolean.TRUE : Boolean.FALSE).hashCode();
413 _hashCode += new Long(getNodeId()).hashCode();
414 _hashCode += new Long(getPageId()).hashCode();
415 _hashCode += new Long(getPrimaryKey()).hashCode();
416 _hashCode += new Long(getResourcePrimKey()).hashCode();
417 if (getTitle() != null) {
418 _hashCode += getTitle().hashCode();
419 }
420 _hashCode += new Long(getUserId()).hashCode();
421 if (getUserName() != null) {
422 _hashCode += getUserName().hashCode();
423 }
424 if (getUuid() != null) {
425 _hashCode += getUuid().hashCode();
426 }
427 _hashCode += new Double(getVersion()).hashCode();
428 __hashCodeCalc = false;
429 return _hashCode;
430 }
431
432 private static org.apache.axis.description.TypeDesc typeDesc =
434 new org.apache.axis.description.TypeDesc(WikiPageSoap.class, true);
435
436 static {
437 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.wiki.portlet.liferay.com", "WikiPageSoap"));
438 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
439 elemField.setFieldName("companyId");
440 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
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("content");
446 elemField.setXmlName(new javax.xml.namespace.QName("", "content"));
447 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
448 elemField.setNillable(true);
449 typeDesc.addFieldDesc(elemField);
450 elemField = new org.apache.axis.description.ElementDesc();
451 elemField.setFieldName("createDate");
452 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
453 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
454 elemField.setNillable(true);
455 typeDesc.addFieldDesc(elemField);
456 elemField = new org.apache.axis.description.ElementDesc();
457 elemField.setFieldName("format");
458 elemField.setXmlName(new javax.xml.namespace.QName("", "format"));
459 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
460 elemField.setNillable(true);
461 typeDesc.addFieldDesc(elemField);
462 elemField = new org.apache.axis.description.ElementDesc();
463 elemField.setFieldName("head");
464 elemField.setXmlName(new javax.xml.namespace.QName("", "head"));
465 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
466 elemField.setNillable(false);
467 typeDesc.addFieldDesc(elemField);
468 elemField = new org.apache.axis.description.ElementDesc();
469 elemField.setFieldName("nodeId");
470 elemField.setXmlName(new javax.xml.namespace.QName("", "nodeId"));
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("pageId");
476 elemField.setXmlName(new javax.xml.namespace.QName("", "pageId"));
477 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
478 elemField.setNillable(false);
479 typeDesc.addFieldDesc(elemField);
480 elemField = new org.apache.axis.description.ElementDesc();
481 elemField.setFieldName("primaryKey");
482 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
483 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
484 elemField.setNillable(false);
485 typeDesc.addFieldDesc(elemField);
486 elemField = new org.apache.axis.description.ElementDesc();
487 elemField.setFieldName("resourcePrimKey");
488 elemField.setXmlName(new javax.xml.namespace.QName("", "resourcePrimKey"));
489 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
490 elemField.setNillable(false);
491 typeDesc.addFieldDesc(elemField);
492 elemField = new org.apache.axis.description.ElementDesc();
493 elemField.setFieldName("title");
494 elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
495 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
496 elemField.setNillable(true);
497 typeDesc.addFieldDesc(elemField);
498 elemField = new org.apache.axis.description.ElementDesc();
499 elemField.setFieldName("userId");
500 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
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("userName");
506 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
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("uuid");
512 elemField.setXmlName(new javax.xml.namespace.QName("", "uuid"));
513 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
514 elemField.setNillable(true);
515 typeDesc.addFieldDesc(elemField);
516 elemField = new org.apache.axis.description.ElementDesc();
517 elemField.setFieldName("version");
518 elemField.setXmlName(new javax.xml.namespace.QName("", "version"));
519 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
520 elemField.setNillable(false);
521 typeDesc.addFieldDesc(elemField);
522 }
523
524
527 public static org.apache.axis.description.TypeDesc getTypeDesc() {
528 return typeDesc;
529 }
530
531
534 public static org.apache.axis.encoding.Serializer getSerializer(
535 java.lang.String mechType,
536 java.lang.Class _javaType,
537 javax.xml.namespace.QName _xmlType) {
538 return
539 new org.apache.axis.encoding.ser.BeanSerializer(
540 _javaType, _xmlType, typeDesc);
541 }
542
543
546 public static org.apache.axis.encoding.Deserializer getDeserializer(
547 java.lang.String mechType,
548 java.lang.Class _javaType,
549 javax.xml.namespace.QName _xmlType) {
550 return
551 new org.apache.axis.encoding.ser.BeanDeserializer(
552 _javaType, _xmlType, typeDesc);
553 }
554
555 }
556