1
7
8 package com.liferay.client.soap.portal.kernel.cal;
9
10 public class Recurrence implements java.io.Serializable {
11 private com.liferay.client.soap.portal.kernel.cal.DayAndPosition[] byDay;
12
13 private int[] byMonth;
14
15 private int[] byMonthDay;
16
17 private int[] byWeekNo;
18
19 private int[] byYearDay;
20
21 private java.util.Calendar dtEnd;
22
23 private java.util.Calendar dtStart;
24
25 private com.liferay.client.soap.portal.kernel.cal.Duration duration;
26
27 private int frequency;
28
29 private int interval;
30
31 private int occurrence;
32
33 private java.util.Calendar until;
34
35 private int weekStart;
36
37 public Recurrence() {
38 }
39
40 public Recurrence(
41 com.liferay.client.soap.portal.kernel.cal.DayAndPosition[] byDay,
42 int[] byMonth,
43 int[] byMonthDay,
44 int[] byWeekNo,
45 int[] byYearDay,
46 java.util.Calendar dtEnd,
47 java.util.Calendar dtStart,
48 com.liferay.client.soap.portal.kernel.cal.Duration duration,
49 int frequency,
50 int interval,
51 int occurrence,
52 java.util.Calendar until,
53 int weekStart) {
54 this.byDay = byDay;
55 this.byMonth = byMonth;
56 this.byMonthDay = byMonthDay;
57 this.byWeekNo = byWeekNo;
58 this.byYearDay = byYearDay;
59 this.dtEnd = dtEnd;
60 this.dtStart = dtStart;
61 this.duration = duration;
62 this.frequency = frequency;
63 this.interval = interval;
64 this.occurrence = occurrence;
65 this.until = until;
66 this.weekStart = weekStart;
67 }
68
69
70
75 public com.liferay.client.soap.portal.kernel.cal.DayAndPosition[] getByDay() {
76 return byDay;
77 }
78
79
80
85 public void setByDay(com.liferay.client.soap.portal.kernel.cal.DayAndPosition[] byDay) {
86 this.byDay = byDay;
87 }
88
89
90
95 public int[] getByMonth() {
96 return byMonth;
97 }
98
99
100
105 public void setByMonth(int[] byMonth) {
106 this.byMonth = byMonth;
107 }
108
109
110
115 public int[] getByMonthDay() {
116 return byMonthDay;
117 }
118
119
120
125 public void setByMonthDay(int[] byMonthDay) {
126 this.byMonthDay = byMonthDay;
127 }
128
129
130
135 public int[] getByWeekNo() {
136 return byWeekNo;
137 }
138
139
140
145 public void setByWeekNo(int[] byWeekNo) {
146 this.byWeekNo = byWeekNo;
147 }
148
149
150
155 public int[] getByYearDay() {
156 return byYearDay;
157 }
158
159
160
165 public void setByYearDay(int[] byYearDay) {
166 this.byYearDay = byYearDay;
167 }
168
169
170
175 public java.util.Calendar getDtEnd() {
176 return dtEnd;
177 }
178
179
180
185 public void setDtEnd(java.util.Calendar dtEnd) {
186 this.dtEnd = dtEnd;
187 }
188
189
190
195 public java.util.Calendar getDtStart() {
196 return dtStart;
197 }
198
199
200
205 public void setDtStart(java.util.Calendar dtStart) {
206 this.dtStart = dtStart;
207 }
208
209
210
215 public com.liferay.client.soap.portal.kernel.cal.Duration getDuration() {
216 return duration;
217 }
218
219
220
225 public void setDuration(com.liferay.client.soap.portal.kernel.cal.Duration duration) {
226 this.duration = duration;
227 }
228
229
230
235 public int getFrequency() {
236 return frequency;
237 }
238
239
240
245 public void setFrequency(int frequency) {
246 this.frequency = frequency;
247 }
248
249
250
255 public int getInterval() {
256 return interval;
257 }
258
259
260
265 public void setInterval(int interval) {
266 this.interval = interval;
267 }
268
269
270
275 public int getOccurrence() {
276 return occurrence;
277 }
278
279
280
285 public void setOccurrence(int occurrence) {
286 this.occurrence = occurrence;
287 }
288
289
290
295 public java.util.Calendar getUntil() {
296 return until;
297 }
298
299
300
305 public void setUntil(java.util.Calendar until) {
306 this.until = until;
307 }
308
309
310
315 public int getWeekStart() {
316 return weekStart;
317 }
318
319
320
325 public void setWeekStart(int weekStart) {
326 this.weekStart = weekStart;
327 }
328
329 private java.lang.Object __equalsCalc = null;
330 public synchronized boolean equals(java.lang.Object obj) {
331 if (!(obj instanceof Recurrence)) return false;
332 Recurrence other = (Recurrence) obj;
333 if (obj == null) return false;
334 if (this == obj) return true;
335 if (__equalsCalc != null) {
336 return (__equalsCalc == obj);
337 }
338 __equalsCalc = obj;
339 boolean _equals;
340 _equals = true &&
341 ((this.byDay==null && other.getByDay()==null) ||
342 (this.byDay!=null &&
343 java.util.Arrays.equals(this.byDay, other.getByDay()))) &&
344 ((this.byMonth==null && other.getByMonth()==null) ||
345 (this.byMonth!=null &&
346 java.util.Arrays.equals(this.byMonth, other.getByMonth()))) &&
347 ((this.byMonthDay==null && other.getByMonthDay()==null) ||
348 (this.byMonthDay!=null &&
349 java.util.Arrays.equals(this.byMonthDay, other.getByMonthDay()))) &&
350 ((this.byWeekNo==null && other.getByWeekNo()==null) ||
351 (this.byWeekNo!=null &&
352 java.util.Arrays.equals(this.byWeekNo, other.getByWeekNo()))) &&
353 ((this.byYearDay==null && other.getByYearDay()==null) ||
354 (this.byYearDay!=null &&
355 java.util.Arrays.equals(this.byYearDay, other.getByYearDay()))) &&
356 ((this.dtEnd==null && other.getDtEnd()==null) ||
357 (this.dtEnd!=null &&
358 this.dtEnd.equals(other.getDtEnd()))) &&
359 ((this.dtStart==null && other.getDtStart()==null) ||
360 (this.dtStart!=null &&
361 this.dtStart.equals(other.getDtStart()))) &&
362 ((this.duration==null && other.getDuration()==null) ||
363 (this.duration!=null &&
364 this.duration.equals(other.getDuration()))) &&
365 this.frequency == other.getFrequency() &&
366 this.interval == other.getInterval() &&
367 this.occurrence == other.getOccurrence() &&
368 ((this.until==null && other.getUntil()==null) ||
369 (this.until!=null &&
370 this.until.equals(other.getUntil()))) &&
371 this.weekStart == other.getWeekStart();
372 __equalsCalc = null;
373 return _equals;
374 }
375
376 private boolean __hashCodeCalc = false;
377 public synchronized int hashCode() {
378 if (__hashCodeCalc) {
379 return 0;
380 }
381 __hashCodeCalc = true;
382 int _hashCode = 1;
383 if (getByDay() != null) {
384 for (int i=0;
385 i<java.lang.reflect.Array.getLength(getByDay());
386 i++) {
387 java.lang.Object obj = java.lang.reflect.Array.get(getByDay(), i);
388 if (obj != null &&
389 !obj.getClass().isArray()) {
390 _hashCode += obj.hashCode();
391 }
392 }
393 }
394 if (getByMonth() != null) {
395 for (int i=0;
396 i<java.lang.reflect.Array.getLength(getByMonth());
397 i++) {
398 java.lang.Object obj = java.lang.reflect.Array.get(getByMonth(), i);
399 if (obj != null &&
400 !obj.getClass().isArray()) {
401 _hashCode += obj.hashCode();
402 }
403 }
404 }
405 if (getByMonthDay() != null) {
406 for (int i=0;
407 i<java.lang.reflect.Array.getLength(getByMonthDay());
408 i++) {
409 java.lang.Object obj = java.lang.reflect.Array.get(getByMonthDay(), i);
410 if (obj != null &&
411 !obj.getClass().isArray()) {
412 _hashCode += obj.hashCode();
413 }
414 }
415 }
416 if (getByWeekNo() != null) {
417 for (int i=0;
418 i<java.lang.reflect.Array.getLength(getByWeekNo());
419 i++) {
420 java.lang.Object obj = java.lang.reflect.Array.get(getByWeekNo(), i);
421 if (obj != null &&
422 !obj.getClass().isArray()) {
423 _hashCode += obj.hashCode();
424 }
425 }
426 }
427 if (getByYearDay() != null) {
428 for (int i=0;
429 i<java.lang.reflect.Array.getLength(getByYearDay());
430 i++) {
431 java.lang.Object obj = java.lang.reflect.Array.get(getByYearDay(), i);
432 if (obj != null &&
433 !obj.getClass().isArray()) {
434 _hashCode += obj.hashCode();
435 }
436 }
437 }
438 if (getDtEnd() != null) {
439 _hashCode += getDtEnd().hashCode();
440 }
441 if (getDtStart() != null) {
442 _hashCode += getDtStart().hashCode();
443 }
444 if (getDuration() != null) {
445 _hashCode += getDuration().hashCode();
446 }
447 _hashCode += getFrequency();
448 _hashCode += getInterval();
449 _hashCode += getOccurrence();
450 if (getUntil() != null) {
451 _hashCode += getUntil().hashCode();
452 }
453 _hashCode += getWeekStart();
454 __hashCodeCalc = false;
455 return _hashCode;
456 }
457
458 private static org.apache.axis.description.TypeDesc typeDesc =
460 new org.apache.axis.description.TypeDesc(Recurrence.class, true);
461
462 static {
463 typeDesc.setXmlType(new javax.xml.namespace.QName("http://cal.kernel.portal.liferay.com", "Recurrence"));
464 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
465 elemField.setFieldName("byDay");
466 elemField.setXmlName(new javax.xml.namespace.QName("", "byDay"));
467 elemField.setXmlType(new javax.xml.namespace.QName("http://cal.kernel.portal.liferay.com", "DayAndPosition"));
468 elemField.setNillable(true);
469 typeDesc.addFieldDesc(elemField);
470 elemField = new org.apache.axis.description.ElementDesc();
471 elemField.setFieldName("byMonth");
472 elemField.setXmlName(new javax.xml.namespace.QName("", "byMonth"));
473 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
474 elemField.setNillable(true);
475 typeDesc.addFieldDesc(elemField);
476 elemField = new org.apache.axis.description.ElementDesc();
477 elemField.setFieldName("byMonthDay");
478 elemField.setXmlName(new javax.xml.namespace.QName("", "byMonthDay"));
479 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
480 elemField.setNillable(true);
481 typeDesc.addFieldDesc(elemField);
482 elemField = new org.apache.axis.description.ElementDesc();
483 elemField.setFieldName("byWeekNo");
484 elemField.setXmlName(new javax.xml.namespace.QName("", "byWeekNo"));
485 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
486 elemField.setNillable(true);
487 typeDesc.addFieldDesc(elemField);
488 elemField = new org.apache.axis.description.ElementDesc();
489 elemField.setFieldName("byYearDay");
490 elemField.setXmlName(new javax.xml.namespace.QName("", "byYearDay"));
491 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
492 elemField.setNillable(true);
493 typeDesc.addFieldDesc(elemField);
494 elemField = new org.apache.axis.description.ElementDesc();
495 elemField.setFieldName("dtEnd");
496 elemField.setXmlName(new javax.xml.namespace.QName("", "dtEnd"));
497 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
498 elemField.setNillable(true);
499 typeDesc.addFieldDesc(elemField);
500 elemField = new org.apache.axis.description.ElementDesc();
501 elemField.setFieldName("dtStart");
502 elemField.setXmlName(new javax.xml.namespace.QName("", "dtStart"));
503 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
504 elemField.setNillable(true);
505 typeDesc.addFieldDesc(elemField);
506 elemField = new org.apache.axis.description.ElementDesc();
507 elemField.setFieldName("duration");
508 elemField.setXmlName(new javax.xml.namespace.QName("", "duration"));
509 elemField.setXmlType(new javax.xml.namespace.QName("http://cal.kernel.portal.liferay.com", "Duration"));
510 elemField.setNillable(true);
511 typeDesc.addFieldDesc(elemField);
512 elemField = new org.apache.axis.description.ElementDesc();
513 elemField.setFieldName("frequency");
514 elemField.setXmlName(new javax.xml.namespace.QName("", "frequency"));
515 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
516 elemField.setNillable(false);
517 typeDesc.addFieldDesc(elemField);
518 elemField = new org.apache.axis.description.ElementDesc();
519 elemField.setFieldName("interval");
520 elemField.setXmlName(new javax.xml.namespace.QName("", "interval"));
521 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
522 elemField.setNillable(false);
523 typeDesc.addFieldDesc(elemField);
524 elemField = new org.apache.axis.description.ElementDesc();
525 elemField.setFieldName("occurrence");
526 elemField.setXmlName(new javax.xml.namespace.QName("", "occurrence"));
527 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
528 elemField.setNillable(false);
529 typeDesc.addFieldDesc(elemField);
530 elemField = new org.apache.axis.description.ElementDesc();
531 elemField.setFieldName("until");
532 elemField.setXmlName(new javax.xml.namespace.QName("", "until"));
533 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
534 elemField.setNillable(true);
535 typeDesc.addFieldDesc(elemField);
536 elemField = new org.apache.axis.description.ElementDesc();
537 elemField.setFieldName("weekStart");
538 elemField.setXmlName(new javax.xml.namespace.QName("", "weekStart"));
539 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
540 elemField.setNillable(false);
541 typeDesc.addFieldDesc(elemField);
542 }
543
544
547 public static org.apache.axis.description.TypeDesc getTypeDesc() {
548 return typeDesc;
549 }
550
551
554 public static org.apache.axis.encoding.Serializer getSerializer(
555 java.lang.String mechType,
556 java.lang.Class _javaType,
557 javax.xml.namespace.QName _xmlType) {
558 return
559 new org.apache.axis.encoding.ser.BeanSerializer(
560 _javaType, _xmlType, typeDesc);
561 }
562
563
566 public static org.apache.axis.encoding.Deserializer getDeserializer(
567 java.lang.String mechType,
568 java.lang.Class _javaType,
569 javax.xml.namespace.QName _xmlType) {
570 return
571 new org.apache.axis.encoding.ser.BeanDeserializer(
572 _javaType, _xmlType, typeDesc);
573 }
574
575 }
576