1
7
8 package com.liferay.client.soap.portlet.announcements.model;
9
10 public class AnnouncementsEntrySoap implements java.io.Serializable {
11 private boolean alert;
12
13 private long classNameId;
14
15 private long classPK;
16
17 private long companyId;
18
19 private java.lang.String content;
20
21 private java.util.Calendar createDate;
22
23 private java.util.Calendar displayDate;
24
25 private long entryId;
26
27 private java.util.Calendar expirationDate;
28
29 private java.util.Calendar modifiedDate;
30
31 private long primaryKey;
32
33 private int priority;
34
35 private java.lang.String title;
36
37 private java.lang.String type;
38
39 private java.lang.String url;
40
41 private long userId;
42
43 private java.lang.String userName;
44
45 private java.lang.String uuid;
46
47 public AnnouncementsEntrySoap() {
48 }
49
50 public AnnouncementsEntrySoap(
51 boolean alert,
52 long classNameId,
53 long classPK,
54 long companyId,
55 java.lang.String content,
56 java.util.Calendar createDate,
57 java.util.Calendar displayDate,
58 long entryId,
59 java.util.Calendar expirationDate,
60 java.util.Calendar modifiedDate,
61 long primaryKey,
62 int priority,
63 java.lang.String title,
64 java.lang.String type,
65 java.lang.String url,
66 long userId,
67 java.lang.String userName,
68 java.lang.String uuid) {
69 this.alert = alert;
70 this.classNameId = classNameId;
71 this.classPK = classPK;
72 this.companyId = companyId;
73 this.content = content;
74 this.createDate = createDate;
75 this.displayDate = displayDate;
76 this.entryId = entryId;
77 this.expirationDate = expirationDate;
78 this.modifiedDate = modifiedDate;
79 this.primaryKey = primaryKey;
80 this.priority = priority;
81 this.title = title;
82 this.type = type;
83 this.url = url;
84 this.userId = userId;
85 this.userName = userName;
86 this.uuid = uuid;
87 }
88
89
90
95 public boolean isAlert() {
96 return alert;
97 }
98
99
100
105 public void setAlert(boolean alert) {
106 this.alert = alert;
107 }
108
109
110
115 public long getClassNameId() {
116 return classNameId;
117 }
118
119
120
125 public void setClassNameId(long classNameId) {
126 this.classNameId = classNameId;
127 }
128
129
130
135 public long getClassPK() {
136 return classPK;
137 }
138
139
140
145 public void setClassPK(long classPK) {
146 this.classPK = classPK;
147 }
148
149
150
155 public long getCompanyId() {
156 return companyId;
157 }
158
159
160
165 public void setCompanyId(long companyId) {
166 this.companyId = companyId;
167 }
168
169
170
175 public java.lang.String getContent() {
176 return content;
177 }
178
179
180
185 public void setContent(java.lang.String content) {
186 this.content = content;
187 }
188
189
190
195 public java.util.Calendar getCreateDate() {
196 return createDate;
197 }
198
199
200
205 public void setCreateDate(java.util.Calendar createDate) {
206 this.createDate = createDate;
207 }
208
209
210
215 public java.util.Calendar getDisplayDate() {
216 return displayDate;
217 }
218
219
220
225 public void setDisplayDate(java.util.Calendar displayDate) {
226 this.displayDate = displayDate;
227 }
228
229
230
235 public long getEntryId() {
236 return entryId;
237 }
238
239
240
245 public void setEntryId(long entryId) {
246 this.entryId = entryId;
247 }
248
249
250
255 public java.util.Calendar getExpirationDate() {
256 return expirationDate;
257 }
258
259
260
265 public void setExpirationDate(java.util.Calendar expirationDate) {
266 this.expirationDate = expirationDate;
267 }
268
269
270
275 public java.util.Calendar getModifiedDate() {
276 return modifiedDate;
277 }
278
279
280
285 public void setModifiedDate(java.util.Calendar modifiedDate) {
286 this.modifiedDate = modifiedDate;
287 }
288
289
290
295 public long getPrimaryKey() {
296 return primaryKey;
297 }
298
299
300
305 public void setPrimaryKey(long primaryKey) {
306 this.primaryKey = primaryKey;
307 }
308
309
310
315 public int getPriority() {
316 return priority;
317 }
318
319
320
325 public void setPriority(int priority) {
326 this.priority = priority;
327 }
328
329
330
335 public java.lang.String getTitle() {
336 return title;
337 }
338
339
340
345 public void setTitle(java.lang.String title) {
346 this.title = title;
347 }
348
349
350
355 public java.lang.String getType() {
356 return type;
357 }
358
359
360
365 public void setType(java.lang.String type) {
366 this.type = type;
367 }
368
369
370
375 public java.lang.String getUrl() {
376 return url;
377 }
378
379
380
385 public void setUrl(java.lang.String url) {
386 this.url = url;
387 }
388
389
390
395 public long getUserId() {
396 return userId;
397 }
398
399
400
405 public void setUserId(long userId) {
406 this.userId = userId;
407 }
408
409
410
415 public java.lang.String getUserName() {
416 return userName;
417 }
418
419
420
425 public void setUserName(java.lang.String userName) {
426 this.userName = userName;
427 }
428
429
430
435 public java.lang.String getUuid() {
436 return uuid;
437 }
438
439
440
445 public void setUuid(java.lang.String uuid) {
446 this.uuid = uuid;
447 }
448
449 private java.lang.Object __equalsCalc = null;
450 public synchronized boolean equals(java.lang.Object obj) {
451 if (!(obj instanceof AnnouncementsEntrySoap)) return false;
452 AnnouncementsEntrySoap other = (AnnouncementsEntrySoap) obj;
453 if (obj == null) return false;
454 if (this == obj) return true;
455 if (__equalsCalc != null) {
456 return (__equalsCalc == obj);
457 }
458 __equalsCalc = obj;
459 boolean _equals;
460 _equals = true &&
461 this.alert == other.isAlert() &&
462 this.classNameId == other.getClassNameId() &&
463 this.classPK == other.getClassPK() &&
464 this.companyId == other.getCompanyId() &&
465 ((this.content==null && other.getContent()==null) ||
466 (this.content!=null &&
467 this.content.equals(other.getContent()))) &&
468 ((this.createDate==null && other.getCreateDate()==null) ||
469 (this.createDate!=null &&
470 this.createDate.equals(other.getCreateDate()))) &&
471 ((this.displayDate==null && other.getDisplayDate()==null) ||
472 (this.displayDate!=null &&
473 this.displayDate.equals(other.getDisplayDate()))) &&
474 this.entryId == other.getEntryId() &&
475 ((this.expirationDate==null && other.getExpirationDate()==null) ||
476 (this.expirationDate!=null &&
477 this.expirationDate.equals(other.getExpirationDate()))) &&
478 ((this.modifiedDate==null && other.getModifiedDate()==null) ||
479 (this.modifiedDate!=null &&
480 this.modifiedDate.equals(other.getModifiedDate()))) &&
481 this.primaryKey == other.getPrimaryKey() &&
482 this.priority == other.getPriority() &&
483 ((this.title==null && other.getTitle()==null) ||
484 (this.title!=null &&
485 this.title.equals(other.getTitle()))) &&
486 ((this.type==null && other.getType()==null) ||
487 (this.type!=null &&
488 this.type.equals(other.getType()))) &&
489 ((this.url==null && other.getUrl()==null) ||
490 (this.url!=null &&
491 this.url.equals(other.getUrl()))) &&
492 this.userId == other.getUserId() &&
493 ((this.userName==null && other.getUserName()==null) ||
494 (this.userName!=null &&
495 this.userName.equals(other.getUserName()))) &&
496 ((this.uuid==null && other.getUuid()==null) ||
497 (this.uuid!=null &&
498 this.uuid.equals(other.getUuid())));
499 __equalsCalc = null;
500 return _equals;
501 }
502
503 private boolean __hashCodeCalc = false;
504 public synchronized int hashCode() {
505 if (__hashCodeCalc) {
506 return 0;
507 }
508 __hashCodeCalc = true;
509 int _hashCode = 1;
510 _hashCode += (isAlert() ? Boolean.TRUE : Boolean.FALSE).hashCode();
511 _hashCode += new Long(getClassNameId()).hashCode();
512 _hashCode += new Long(getClassPK()).hashCode();
513 _hashCode += new Long(getCompanyId()).hashCode();
514 if (getContent() != null) {
515 _hashCode += getContent().hashCode();
516 }
517 if (getCreateDate() != null) {
518 _hashCode += getCreateDate().hashCode();
519 }
520 if (getDisplayDate() != null) {
521 _hashCode += getDisplayDate().hashCode();
522 }
523 _hashCode += new Long(getEntryId()).hashCode();
524 if (getExpirationDate() != null) {
525 _hashCode += getExpirationDate().hashCode();
526 }
527 if (getModifiedDate() != null) {
528 _hashCode += getModifiedDate().hashCode();
529 }
530 _hashCode += new Long(getPrimaryKey()).hashCode();
531 _hashCode += getPriority();
532 if (getTitle() != null) {
533 _hashCode += getTitle().hashCode();
534 }
535 if (getType() != null) {
536 _hashCode += getType().hashCode();
537 }
538 if (getUrl() != null) {
539 _hashCode += getUrl().hashCode();
540 }
541 _hashCode += new Long(getUserId()).hashCode();
542 if (getUserName() != null) {
543 _hashCode += getUserName().hashCode();
544 }
545 if (getUuid() != null) {
546 _hashCode += getUuid().hashCode();
547 }
548 __hashCodeCalc = false;
549 return _hashCode;
550 }
551
552 private static org.apache.axis.description.TypeDesc typeDesc =
554 new org.apache.axis.description.TypeDesc(AnnouncementsEntrySoap.class, true);
555
556 static {
557 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.announcements.portlet.liferay.com", "AnnouncementsEntrySoap"));
558 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
559 elemField.setFieldName("alert");
560 elemField.setXmlName(new javax.xml.namespace.QName("", "alert"));
561 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
562 elemField.setNillable(false);
563 typeDesc.addFieldDesc(elemField);
564 elemField = new org.apache.axis.description.ElementDesc();
565 elemField.setFieldName("classNameId");
566 elemField.setXmlName(new javax.xml.namespace.QName("", "classNameId"));
567 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
568 elemField.setNillable(false);
569 typeDesc.addFieldDesc(elemField);
570 elemField = new org.apache.axis.description.ElementDesc();
571 elemField.setFieldName("classPK");
572 elemField.setXmlName(new javax.xml.namespace.QName("", "classPK"));
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("companyId");
578 elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
579 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
580 elemField.setNillable(false);
581 typeDesc.addFieldDesc(elemField);
582 elemField = new org.apache.axis.description.ElementDesc();
583 elemField.setFieldName("content");
584 elemField.setXmlName(new javax.xml.namespace.QName("", "content"));
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("createDate");
590 elemField.setXmlName(new javax.xml.namespace.QName("", "createDate"));
591 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
592 elemField.setNillable(true);
593 typeDesc.addFieldDesc(elemField);
594 elemField = new org.apache.axis.description.ElementDesc();
595 elemField.setFieldName("displayDate");
596 elemField.setXmlName(new javax.xml.namespace.QName("", "displayDate"));
597 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
598 elemField.setNillable(true);
599 typeDesc.addFieldDesc(elemField);
600 elemField = new org.apache.axis.description.ElementDesc();
601 elemField.setFieldName("entryId");
602 elemField.setXmlName(new javax.xml.namespace.QName("", "entryId"));
603 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
604 elemField.setNillable(false);
605 typeDesc.addFieldDesc(elemField);
606 elemField = new org.apache.axis.description.ElementDesc();
607 elemField.setFieldName("expirationDate");
608 elemField.setXmlName(new javax.xml.namespace.QName("", "expirationDate"));
609 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
610 elemField.setNillable(true);
611 typeDesc.addFieldDesc(elemField);
612 elemField = new org.apache.axis.description.ElementDesc();
613 elemField.setFieldName("modifiedDate");
614 elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
615 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
616 elemField.setNillable(true);
617 typeDesc.addFieldDesc(elemField);
618 elemField = new org.apache.axis.description.ElementDesc();
619 elemField.setFieldName("primaryKey");
620 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
621 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
622 elemField.setNillable(false);
623 typeDesc.addFieldDesc(elemField);
624 elemField = new org.apache.axis.description.ElementDesc();
625 elemField.setFieldName("priority");
626 elemField.setXmlName(new javax.xml.namespace.QName("", "priority"));
627 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
628 elemField.setNillable(false);
629 typeDesc.addFieldDesc(elemField);
630 elemField = new org.apache.axis.description.ElementDesc();
631 elemField.setFieldName("title");
632 elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
633 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
634 elemField.setNillable(true);
635 typeDesc.addFieldDesc(elemField);
636 elemField = new org.apache.axis.description.ElementDesc();
637 elemField.setFieldName("type");
638 elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
639 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
640 elemField.setNillable(true);
641 typeDesc.addFieldDesc(elemField);
642 elemField = new org.apache.axis.description.ElementDesc();
643 elemField.setFieldName("url");
644 elemField.setXmlName(new javax.xml.namespace.QName("", "url"));
645 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
646 elemField.setNillable(true);
647 typeDesc.addFieldDesc(elemField);
648 elemField = new org.apache.axis.description.ElementDesc();
649 elemField.setFieldName("userId");
650 elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
651 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
652 elemField.setNillable(false);
653 typeDesc.addFieldDesc(elemField);
654 elemField = new org.apache.axis.description.ElementDesc();
655 elemField.setFieldName("userName");
656 elemField.setXmlName(new javax.xml.namespace.QName("", "userName"));
657 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
658 elemField.setNillable(true);
659 typeDesc.addFieldDesc(elemField);
660 elemField = new org.apache.axis.description.ElementDesc();
661 elemField.setFieldName("uuid");
662 elemField.setXmlName(new javax.xml.namespace.QName("", "uuid"));
663 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
664 elemField.setNillable(true);
665 typeDesc.addFieldDesc(elemField);
666 }
667
668
671 public static org.apache.axis.description.TypeDesc getTypeDesc() {
672 return typeDesc;
673 }
674
675
678 public static org.apache.axis.encoding.Serializer getSerializer(
679 java.lang.String mechType,
680 java.lang.Class _javaType,
681 javax.xml.namespace.QName _xmlType) {
682 return
683 new org.apache.axis.encoding.ser.BeanSerializer(
684 _javaType, _xmlType, typeDesc);
685 }
686
687
690 public static org.apache.axis.encoding.Deserializer getDeserializer(
691 java.lang.String mechType,
692 java.lang.Class _javaType,
693 javax.xml.namespace.QName _xmlType) {
694 return
695 new org.apache.axis.encoding.ser.BeanDeserializer(
696 _javaType, _xmlType, typeDesc);
697 }
698
699 }
700