public class RecurrenceProperty extends ValuedProperty<Recurrence>
value
parameters
Constructor and Description |
---|
RecurrenceProperty(Recurrence recur)
Creates a new recurrence property.
|
RecurrenceProperty(RecurrenceProperty original)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
DateIterator |
getDateIterator(Date startDate,
TimeZone timezone)
Creates an iterator that computes the dates defined by this property.
|
DateIterator |
getDateIterator(ICalDate startDate,
TimeZone timezone)
Creates an iterator that computes the dates defined by this property.
|
protected void |
validate(List<ICalComponent> components,
ICalVersion version,
List<ValidationWarning> warnings)
Checks the property for data consistency problems or deviations from the
specifications.
|
equals, getValue, getValue, hashCode, setValue, toStringValues, valueEquals, valueHashCode
addParameter, copy, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, validate
public RecurrenceProperty(Recurrence recur)
recur
- the recurrence valuepublic RecurrenceProperty(RecurrenceProperty original)
original
- the property to make a copy ofpublic DateIterator getDateIterator(Date startDate, TimeZone timezone)
startDate
- the date that the recurrence starts (typically, the
value of the accompanying DateStart
property)timezone
- the timezone to iterate in (typically, the timezone
associated with the DateStart
property). This is needed in order
to adjust for when the iterator passes over a daylight savings boundary.public DateIterator getDateIterator(ICalDate startDate, TimeZone timezone)
startDate
- the date that the recurrence starts (typically, the
value of the accompanying DateStart
property)timezone
- the timezone to iterate in (typically, the timezone
associated with the DateStart
property). This is needed in order
to adjust for when the iterator passes over a daylight savings boundary.protected void validate(List<ICalComponent> components, ICalVersion version, List<ValidationWarning> warnings)
ICalProperty
Checks 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 ValuedProperty<Recurrence>
components
- the hierarchy of components that the property belongs
toversion
- the version to validate againstwarnings
- the list to add the warnings toCopyright © 2013–2024 Michael Angstadt. All rights reserved.