public class CircleadRecurrenceRule
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CircleadRecurrenceRule.Duration |
The Enum Duration.
|
class |
CircleadRecurrenceRule.Event |
The Class Event.
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.Map<java.lang.Integer,org.dmfs.rfc5545.Weekday> |
DAYOFWEEK2WEEKDAY |
The Constant DAYOFWEEK2WEEKDAY maps 1 to monday, 2 to tuesday, ....
|
static java.util.Map<org.dmfs.rfc5545.Weekday,java.lang.Integer> |
WEEKDAY2DAYOFWEEK |
The Constant WEEKDAY2DAYOFWEEK maps weekday-enum to number. monday is 1,
tuesday is 2
|
static java.util.List<org.dmfs.rfc5545.Weekday> |
WEEKDAYS |
The Constant WEEKDAYS contains the enum Weekday as ordered list, beginning on
monday.
|
static java.util.Map<org.dmfs.rfc5545.Weekday,java.lang.String> |
WEEKDAYS2GERMAN |
The Constant WEEKDAYS2GERMAN map enum weekday to german name of weekday.
|
| Constructor | Description |
|---|---|
CircleadRecurrenceRule(java.lang.String rule) |
Instantiates a new circlead recurrence rule.
|
CircleadRecurrenceRule(org.dmfs.rfc5545.recur.Freq freq) |
Instantiates a new circlead recurrence rule.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Date |
convertDate(org.dmfs.rfc5545.DateTime date) |
Convert date.
|
Timeslice |
getAllokation(java.lang.String freq,
int interval) |
Gets the allokation.
|
java.util.List<Timeslice> |
getAllokationSlices(java.lang.String freq) |
Gets the allokation slices.
|
java.util.List<Timeslice> |
getAllokationSlices(org.dmfs.rfc5545.recur.Freq freq) |
Gets the allokation slices.
|
double |
getAverageAllokation(java.lang.String freq) |
Gets the average allokation.
|
double |
getAverageAllokation(org.dmfs.rfc5545.recur.Freq freq) |
Gets the average allokation.
|
java.lang.String |
getDetails() |
Gets the details.
|
int |
getDuration() |
Gets the duration.
|
java.lang.String |
getDurationunit() |
Gets the durationunit.
|
org.dmfs.rfc5545.DateTime |
getEndDate(java.lang.String startDateTime) |
Gets the end date.
|
org.dmfs.rfc5545.DateTime |
getEndDate(org.dmfs.rfc5545.DateTime startDateTime) |
Gets the end date.
|
CircleadRecurrenceRule.Event |
getEvent() |
Gets the event.
|
CircleadRecurrenceRule.Event |
getEvent(java.lang.String startDate) |
Gets the event.
|
CircleadRecurrenceRule.Event |
getEvent(org.dmfs.rfc5545.DateTime startDate) |
Gets the event.
|
java.util.List<CircleadRecurrenceRule.Event> |
getEventList(int maxInstances) |
Gets the event list.
|
java.util.List<CircleadRecurrenceRule.Event> |
getEventList(java.lang.String startDateTime,
int maxInstances) |
Gets the event list.
|
java.util.List<CircleadRecurrenceRule.Event> |
getEventList(org.dmfs.rfc5545.DateTime startDateTime,
int maxInstances) |
Gets the event list.
|
java.lang.Integer |
getHour() |
Gets the hour.
|
java.lang.String |
getRawRule() |
Gets the raw rule.
|
java.lang.String |
getReadableRule() |
Gets the human readable rule.
|
org.dmfs.rfc5545.DateTime |
getStartDate() |
Gets the start date.
|
org.dmfs.rfc5545.DateTime |
getStartDate(java.lang.String startDateTime) |
Gets the start date.
|
java.util.List<org.dmfs.rfc5545.DateTime> |
getStartDateList(int maxInstances) |
Gets the start date list.
|
java.util.List<org.dmfs.rfc5545.DateTime> |
getStartDateList(java.lang.String startDateTime,
int maxInstances) |
Gets the start date list.
|
java.util.List<org.dmfs.rfc5545.DateTime> |
getStartDateList(org.dmfs.rfc5545.DateTime startDateTime,
int maxInstances) |
Gets the start date list.
|
java.lang.String |
getType() |
Gets the type.
|
org.dmfs.rfc5545.DateTime |
getUntilDate() |
Gets the until date.
|
org.dmfs.rfc5545.Weekday |
getWeekday() |
Gets the weekday.
|
boolean |
isInfinite() |
Checks if is infinite.
|
java.lang.Boolean |
isRecurrenceOdd() |
Checks if is recurrence odd.
|
void |
setByPart(org.dmfs.rfc5545.recur.RecurrenceRule.Part part,
java.lang.Integer... values) |
Sets the by part.
|
void |
setByPart(org.dmfs.rfc5545.recur.RecurrenceRule.Part part,
java.util.List<java.lang.Integer> values) |
Sets the by part.
|
void |
setCount(int count) |
Sets the count.
|
void |
setDefaultTimeZone(java.util.TimeZone timeZone) |
Sets the default time zone.
|
void |
setDuration(CircleadRecurrenceRule.Duration durationunit,
int duration) |
Sets the duration.
|
void |
setInterval(int interval) |
Sets the interval.
|
void |
setStartDate(java.lang.String startDate) |
Sets the start date.
|
void |
setStartDateAllDay(java.lang.String startDate) |
Sets the start date.
|
void |
setStartDateNonAllDay(int year,
int month,
int day) |
Sets the start date.
|
void |
setStartDateNonAllDay(org.dmfs.rfc5545.DateTime startDate) |
Sets the start date non all day.
|
void |
setUntilDate(java.lang.String untilDate) |
Sets the until date.
|
void |
setUntilDateAllDay(java.lang.String untilDate) |
Sets the until date all day.
|
void |
setUntilDateAllDay(org.dmfs.rfc5545.DateTime until) |
Sets the until date.
|
void |
setUntilDateNonAllDay(int year,
int month,
int day) |
Sets the until date.
|
void |
setWeekStart(org.dmfs.rfc5545.Weekday wkst) |
Sets the week start.
|
org.dmfs.rfc5545.recur.RecurrenceRuleIterator |
startDateIterator() |
Start iterator from actual data and time.
|
org.dmfs.rfc5545.recur.RecurrenceRuleIterator |
startDateIterator(java.lang.String startDateTime) |
Start date iterator.
|
org.dmfs.rfc5545.recur.RecurrenceRuleIterator |
startDateIterator(org.dmfs.rfc5545.DateTime start) |
Start date iterator.
|
java.lang.String |
toString() |
public static final java.util.List<org.dmfs.rfc5545.Weekday> WEEKDAYS
public static final java.util.Map<java.lang.Integer,org.dmfs.rfc5545.Weekday> DAYOFWEEK2WEEKDAY
public static final java.util.Map<org.dmfs.rfc5545.Weekday,java.lang.Integer> WEEKDAY2DAYOFWEEK
public static final java.util.Map<org.dmfs.rfc5545.Weekday,java.lang.String> WEEKDAYS2GERMAN
public CircleadRecurrenceRule(java.lang.String rule)
throws CircleadRecurrenceRuleException
rule - the ruleCircleadRecurrenceRuleExceptionpublic CircleadRecurrenceRule(org.dmfs.rfc5545.recur.Freq freq)
throws CircleadRecurrenceRuleException
freq - the freqCircleadRecurrenceRuleExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getReadableRule()
public void setUntilDateNonAllDay(int year,
int month,
int day)
year - the yearmonth - the month of the year. January is 1, february is 2, ...,
december is 12.day - the daypublic void setStartDateNonAllDay(int year,
int month,
int day)
year - the yearmonth - the month of the year. January is 1, february is 2, ...,
december is 12.day - the daypublic void setUntilDateAllDay(org.dmfs.rfc5545.DateTime until)
until - the new until datepublic void setWeekStart(org.dmfs.rfc5545.Weekday wkst)
wkst - the new week startpublic void setDuration(CircleadRecurrenceRule.Duration durationunit, int duration)
durationunit - the durationunitduration - the durationpublic java.lang.String getRawRule()
public java.util.List<Timeslice> getAllokationSlices(org.dmfs.rfc5545.recur.Freq freq)
freq - the freqpublic java.util.List<Timeslice> getAllokationSlices(java.lang.String freq)
freq - the freqpublic double getAverageAllokation(org.dmfs.rfc5545.recur.Freq freq)
freq - the freqpublic Timeslice getAllokation(java.lang.String freq, int interval)
freq - the freqinterval - the intervalpublic void setDefaultTimeZone(java.util.TimeZone timeZone)
timeZone - the new default time zonepublic double getAverageAllokation(java.lang.String freq)
freq - the freqpublic java.lang.String getDurationunit()
public int getDuration()
public org.dmfs.rfc5545.Weekday getWeekday()
public java.lang.Integer getHour()
public java.lang.Boolean isRecurrenceOdd()
public java.lang.String getType()
public void setCount(int count)
count - the new countpublic boolean isInfinite()
public org.dmfs.rfc5545.DateTime getEndDate(org.dmfs.rfc5545.DateTime startDateTime)
startDateTime - the start date timepublic org.dmfs.rfc5545.DateTime getEndDate(java.lang.String startDateTime)
startDateTime - the start date timepublic CircleadRecurrenceRule.Event getEvent(java.lang.String startDate)
startDate - the start datepublic CircleadRecurrenceRule.Event getEvent(org.dmfs.rfc5545.DateTime startDate)
startDate - the start datepublic CircleadRecurrenceRule.Event getEvent()
public void setStartDateNonAllDay(org.dmfs.rfc5545.DateTime startDate)
startDate - the new start date non all daypublic void setUntilDate(java.lang.String untilDate)
untilDate - the new until datepublic void setUntilDateAllDay(java.lang.String untilDate)
untilDate - the new until date all daypublic void setStartDate(java.lang.String startDate)
startDate - the new start datepublic void setStartDateAllDay(java.lang.String startDate)
startDate - the new start datepublic org.dmfs.rfc5545.DateTime getStartDate()
public org.dmfs.rfc5545.DateTime getUntilDate()
public org.dmfs.rfc5545.DateTime getStartDate(java.lang.String startDateTime)
startDateTime - the start date timepublic java.util.List<CircleadRecurrenceRule.Event> getEventList(int maxInstances)
maxInstances - the max instancespublic java.lang.String getDetails()
public java.util.List<org.dmfs.rfc5545.DateTime> getStartDateList(int maxInstances)
maxInstances - the max instancespublic java.util.List<CircleadRecurrenceRule.Event> getEventList(org.dmfs.rfc5545.DateTime startDateTime, int maxInstances)
startDateTime - the start date timemaxInstances - the max instancespublic java.util.List<CircleadRecurrenceRule.Event> getEventList(java.lang.String startDateTime, int maxInstances)
startDateTime - the start date timemaxInstances - the max instancespublic java.util.List<org.dmfs.rfc5545.DateTime> getStartDateList(java.lang.String startDateTime,
int maxInstances)
startDateTime - the start date timemaxInstances - the max instancespublic java.util.List<org.dmfs.rfc5545.DateTime> getStartDateList(org.dmfs.rfc5545.DateTime startDateTime,
int maxInstances)
startDateTime - the start date timemaxInstances - limit instances for rules that recur foreverpublic org.dmfs.rfc5545.recur.RecurrenceRuleIterator startDateIterator(java.lang.String startDateTime)
startDateTime - the start date timepublic org.dmfs.rfc5545.recur.RecurrenceRuleIterator startDateIterator()
public org.dmfs.rfc5545.recur.RecurrenceRuleIterator startDateIterator(org.dmfs.rfc5545.DateTime start)
start - the startpublic void setInterval(int interval)
interval - the new intervalpublic void setByPart(org.dmfs.rfc5545.recur.RecurrenceRule.Part part,
java.util.List<java.lang.Integer> values)
part - the partvalues - the valuespublic void setByPart(org.dmfs.rfc5545.recur.RecurrenceRule.Part part,
java.lang.Integer... values)
part - the partvalues - the valuespublic static java.util.Date convertDate(org.dmfs.rfc5545.DateTime date)
date - the date