public class ExceptionRule extends RecurrenceProperty
Defines a list of exceptions to the dates specified in the
RecurrenceRule property.
Note that this property has been removed from the latest version of the iCal specification. Its use should be avoided.
Code sample:
VEvent event = new VEvent(); //"bi-weekly" Recurrence recur = new Recurrence.Builder(Frequency.WEEKLY).interval(2).build(); ExceptionRule exrule = new ExceptionRule(recur); event.addExceptionRule(exrule);
valueparameters| Constructor and Description |
|---|
ExceptionRule(Recurrence recur)
Creates a new exception rule property.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
validate(List<ICalComponent> components,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
getValue, setValueaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic ExceptionRule(Recurrence recur)
recur - the recurrence ruleprotected void validate(List<ICalComponent> components, List<Warning> warnings)
ICalPropertyvalidate in class RecurrencePropertycomponents - the hierarchy of components that the property belongs
towarnings - the list to add the warnings toCopyright © 2013-2014 Michael Angstadt. All Rights Reserved.