public static enum RecurrenceRule.Part extends java.lang.Enum<RecurrenceRule.Part>
FREQ is the only mandatory part. Each part has a
ValueConverter that knows how to parse and serialize the values the part can have. Also each part has a factory method to return a RuleIterator for this part. FREQ, INTERVAL, WKST and RSCALE don't support iteration nor expansion and will throw an
UnsupportedOperationException when calling getExpander(RecurrenceRule, RuleIterator, CalendarMetrics, long, TimeZone) or PartgetFilter(RecurrenceRule, CalendarMetrics).
| Enum Constant and Description |
|---|
_BYMONTHDAYSKIP
The SKIP filter for monthdays.
|
_BYMONTHSKIP
The SKIP filter for months.
|
_SANITY_FILTER
Filters all invalid dates.
|
BYDAY
A list of
RecurrenceRule.WeekdayNums on which the event recurs. |
BYHOUR
The hours on which the event recurs.
|
BYMINUTE
The minutes on which the event recurs.
|
BYMONTH
A list of months that specify in which months the instances recur.
|
BYMONTHDAY
A list of month days on which the event recurs.
|
BYSECOND
The seconds on which the event recurs.
|
BYSETPOS
A list of set positions to consider when iterating the instances.
|
BYWEEKNO
A list of week numbers that specify in which weeks the instances recur.
|
BYYEARDAY
A list of year days that specify on which year days the instances recur.
|
COUNT
This part specifies total number of instances.
|
FREQ
Base frequency of the recurring instances.
|
INTERVAL
The base interval of the recurring instances.
|
RSCALE
RSCALE defines the calendar scale to apply.
|
SKIP
SKIP defines how to handle instances that would fall on a leap day or leap month in a non-leap year.
|
UNTIL
This part specifies the latest date of the last instance.
|
WKST
The start day of a week.
|
| Modifier and Type | Method and Description |
|---|---|
static RecurrenceRule.Part |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RecurrenceRule.Part[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecurrenceRule.Part FREQ
Freq.public static final RecurrenceRule.Part INTERVAL
1. The value must be a positive integer.public static final RecurrenceRule.Part RSCALE
public static final RecurrenceRule.Part WKST
public static final RecurrenceRule.Part BYMONTH
TODO: validate month numbers.
public static final RecurrenceRule.Part _BYMONTHSKIP
public static final RecurrenceRule.Part BYWEEKNO
TODO: validate week numbers
public static final RecurrenceRule.Part BYYEARDAY
RSCALE is present.
TODO: validate year days
public static final RecurrenceRule.Part BYMONTHDAY
TODO: validate month days
public static final RecurrenceRule.Part _BYMONTHDAYSKIP
public static final RecurrenceRule.Part BYDAY
RecurrenceRule.WeekdayNums on which the event recurs.public static final RecurrenceRule.Part BYHOUR
public static final RecurrenceRule.Part BYMINUTE
public static final RecurrenceRule.Part BYSECOND
public static final RecurrenceRule.Part SKIP
RecurrenceRule.Skip. It has
been introduced by http://tools.ietf.org/html/draft-daboo-icalendar-rscale-03
Skipping is implemented by an expander because it might modify instances which is not supported by filters.
public static final RecurrenceRule.Part _SANITY_FILTER
public static final RecurrenceRule.Part BYSETPOS
TODO: validate the values. They should be within the limits of byyearday.
public static final RecurrenceRule.Part UNTIL
public static final RecurrenceRule.Part COUNT
public static RecurrenceRule.Part[] values()
for (RecurrenceRule.Part c : RecurrenceRule.Part.values()) System.out.println(c);
public static RecurrenceRule.Part valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null