public class ExceptionDates extends ListProperty<ICalDate>
Defines a list of exceptions to the dates specified in the
RecurrenceRule property.
Code sample:
VEvent event = new VEvent(); //dates with time components ExceptionDates exdate = new ExceptionDates(); Date datetime = ... exdate.addValue(new ICalDate(datetime, true)); event.addExceptionDates(exdate); //dates without time components exdate = new ExceptionDates(); Date date = ... exdate.addValue(new ICalDate(date, false)); event.addExceptionDates(exdate);
parameters| Constructor and Description |
|---|
ExceptionDates() |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Date value)
Adds a value to this property.
|
protected void |
validate(List<ICalComponent> components,
ICalVersion version,
List<Warning> warnings)
Checks the property for data consistency problems or deviations from the
spec.
|
addValue, getValuesaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic ExceptionDates()
public void addValue(Date value)
value - the value to addprotected void validate(List<ICalComponent> components, ICalVersion version, List<Warning> warnings)
ICalPropertyChecks the property for data consistency problems or deviations from the spec.
This method should be overridden by child classes that wish to provide validation logic. The default implementation of this method does nothing.
validate in class ListProperty<ICalDate>components - the hierarchy of components that the property belongs
toversion - the version to validate againstwarnings - the list to add the warnings toCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.