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.getValues().add(new ICalDate(datetime, true)); event.addExceptionDates(exdate); //dates without time components exdate = new ExceptionDates(); Date date = ... exdate.getValues().add(new ICalDate(date, false)); event.addExceptionDates(exdate);
valuesparameters| Constructor and Description |
|---|
ExceptionDates() |
ExceptionDates(ExceptionDates original)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExceptionDates |
copy()
Creates a copy of this property object.
|
protected void |
validate(List<ICalComponent> components,
ICalVersion version,
List<ValidationWarning> warnings)
Checks the property for data consistency problems or deviations from the
specifications.
|
equals, getValues, hashCode, toStringValuesaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, validatepublic ExceptionDates()
public ExceptionDates(ExceptionDates original)
original - the property to make a copy ofprotected void validate(List<ICalComponent> components, ICalVersion version, List<ValidationWarning> warnings)
ICalPropertyChecks the property for data consistency problems or deviations from the specifications.
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 topublic ExceptionDates copy()
ICalPropertyCreates a copy of this property object.
The default implementation of this method uses reflection to look for a copy constructor. Child classes SHOULD override this method to avoid the performance overhead involved in using reflection.
The child class's copy constructor, if present, MUST invoke the
ICalProperty.ICalProperty(ICalProperty) super constructor to ensure that the
parameters are also copied.
This method MUST be overridden by the child class if the child class does
not have a copy constructor. Otherwise, an
UnsupportedOperationException will be thrown when an attempt is
made to copy the property (such as in the
ICalendar class's copy constructor
).
copy in class ICalPropertyCopyright © 2013–2024 Michael Angstadt. All rights reserved.