biweekly.property
Class RecurrenceId
java.lang.Object
biweekly.property.ICalProperty
biweekly.property.DateOrDateTimeProperty
biweekly.property.RecurrenceId
public class RecurrenceId
- extends DateOrDateTimeProperty
Records the original value of the DateStart
property if a recurrence
instance has been modified. Used in conjunction with the Uid
and
Sequence
properties to uniquely identify a recurrence instance.
Examples:
//date-time value
Date datetime = ...
RecurrenceId recurrenceId = new RecurrenceId(datetime);
//datevalue
Date date = ...
RecurrenceId recurrenceId = new RecurrenceId(date, false);
- Author:
- Michael Angstadt
- Specification Reference:
- RFC 5545 p.112-4
Constructor Summary |
RecurrenceId(Date originalStartDate)
Creates a recurrence ID property. |
RecurrenceId(Date originalStartDate,
boolean hasTime)
Creates a recurrence ID property. |
Method Summary |
Range |
getRange()
Gets the effective range of recurrence instances from the instance
specified by this property. |
void |
setRange(Range range)
Sets the effective range of recurrence instances from the instance
specified by this property. |
Methods inherited from class biweekly.property.DateOrDateTimeProperty |
getRawComponents, getTimezoneId, getValue, hasTime, isLocalTime, setLocalTime, setRawComponents, setTimezone, setTimezoneId, setValue, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecurrenceId
public RecurrenceId(Date originalStartDate)
- Creates a recurrence ID property.
- Parameters:
originalStartDate
- the original start date
RecurrenceId
public RecurrenceId(Date originalStartDate,
boolean hasTime)
- Creates a recurrence ID property.
- Parameters:
originalStartDate
- the original start datehasTime
- true to include the time component of the date, false not
to
getRange
public Range getRange()
- Gets the effective range of recurrence instances from the instance
specified by this property.
- Returns:
- the range or null if not set
- Specification Reference:
- RFC 5545 p.23-4
setRange
public void setRange(Range range)
- Sets the effective range of recurrence instances from the instance
specified by this property.
- Parameters:
range
- the range or null to remove- Specification Reference:
- RFC 5545 p.23-4
Copyright © 2013 Michael Angstadt. All Rights Reserved.