01: package org.columba.calendar.model.api;
02:
03: import java.util.Calendar;
04: import java.util.List;
05:
06: public interface IRecurrence {
07:
08: final static int RECURRENCE_NONE = 0;
09: final static int RECURRENCE_DAILY = 1;
10: final static int RECURRENCE_WEEKLY = 2;
11: final static int RECURRENCE_MONTHLY = 3;
12: final static int RECURRENCE_ANNUALLY = 4;
13:
14: final static int RECURRENCE_END_FOREVER = 0;
15: final static int RECURRENCE_END_MAXOCCURRENCES = 1;
16: final static int RECURRENCE_END_ENDDATE = 2;
17:
18: public abstract int getType();
19:
20: public abstract void setType(int type);
21:
22: public abstract int getEndType();
23:
24: public abstract void setEndType(int type);
25:
26: public abstract int getEndMaxOccurrences();
27:
28: public abstract void setEndMaxOccurrences(int max);
29:
30: public abstract Calendar getEndDate();
31:
32: public abstract void setEndDate(Calendar endDate);
33:
34: public abstract int getInterval();
35:
36: public abstract void setInterval(int interval);
37:
38: public abstract List getWeekDays();
39:
40: public abstract void setWeekDays(List<IWeekDay> days);
41:
42: }
|