Top Description Inners Fields Constructors Methods
net.fortuna.ical4j.model.property

public Class RecurrenceId<T extends Temporal>

extends DateProperty<T extends Temporal>
Class Inheritance
Imports
net.fortuna.ical4j.model.Content, .ParameterList, .PropertyFactory, net.fortuna.ical4j.validate.ValidationException, .ValidationResult, net.fortuna.ical4j.validate.property.RelationshipPropertyValidators, java.time.temporal.Temporal

$Id$

Created: [Apr 6, 2004]

Defines a RECURRENCE-ID iCalendar component property.

    4.8.4.4 Recurrence ID

       Property Name: RECURRENCE-ID

       Purpose: This property is used in conjunction with the "UID" and
       "SEQUENCE" property to identify a specific instance of a recurring
       "VEVENT", "VTODO" or "VJOURNAL" calendar component. The property
       value is the effective value of the "DTSTART" property of the
       recurrence instance.

       Value Type: The default value type for this property is DATE-TIME.
       The time format can be any of the valid forms defined for a DATE-TIME
       value type. See DATE-TIME value type definition for specific
       interpretations of the various forms. The value type can be set to
       DATE.

       Property Parameters: Non-standard property, value data type, time
       zone identifier and recurrence identifier range parameters can be
       specified on this property.

       Conformance: This property can be specified in an iCalendar object
       containing a recurring calendar component.

       Description: The full range of calendar components specified by a
       recurrence set is referenced by referring to just the "UID" property
       value corresponding to the calendar component. The "RECURRENCE-ID"
       property allows the reference to an individual instance within the
       recurrence set.

       If the value of the "DTSTART" property is a DATE type value, then the
       value MUST be the calendar date for the recurrence instance.

       The date/time value is set to the time when the original recurrence
       instance would occur; meaning that if the intent is to change a
       Friday meeting to Thursday, the date/time is still set to the
       original Friday meeting.

       The "RECURRENCE-ID" property is used in conjunction with the "UID"
       and "SEQUENCE" property to identify a particular instance of a
       recurring event, to-do or journal. For a given pair of "UID" and
       "SEQUENCE" property values, the "RECURRENCE-ID" value for a
       recurrence instance is fixed. When the definition of the recurrence
       set for a calendar component changes, and hence the "SEQUENCE"
       property value changes, the "RECURRENCE-ID" for a given recurrence
       instance might also change.The "RANGE" parameter is used to specify
       the effective range of recurrence instances from the instance
       specified by the "RECURRENCE-ID" property value. The default value
       for the range parameter is the single recurrence instance only. The
       value can also be "THISANDPRIOR" to indicate a range defined by the
       given recurrence instance and all prior instances or the value can be
       "THISANDFUTURE" to indicate a range defined by the given recurrence
       instance and all subsequent instances.

       Format Definition: The property is defined by the following notation:

         recurid    = "RECURRENCE-ID" ridparam ":" ridval CRLF

         ridparam   = *(

                    ; the following are optional,
                    ; but MUST NOT occur more than once

                    (";" "VALUE" "=" ("DATE-TIME" / "DATE)) /
                    (";" tzidparam) / (";" rangeparam) /

                    ; the following is optional,
                    ; and MAY occur more than once

                    (";" xparam)

                    )

         ridval     = date-time / date
         ;Value MUST match value type
Author
Ben Fortuna

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
public
RecurrenceId(final String
the RECURRENCE_ID value string to parse
value
)

Creates a new instance initialised with the parsed value.

public
RecurrenceId(final ParameterList
a list of parameters for this component
aList
,
final String
a value string for this component
aValue
)

public
RecurrenceId(final T
a date representation of a date or date-time
aDate
)

Constructor.

public
RecurrenceId(final ParameterList
a list of parameters for this component
aList
,
final T
a date representation of a date or date-time
aDate
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
protected PropertyFactory<RecurrenceId<T>>
newFactory()

Implements abstract net.fortuna.ical4j.model.Property.newFactory.

Returns a new property factory used to create deep copies.

public ValidationResult
validate()

Overrides net.fortuna.ical4j.model.property.DateProperty.validate.

Perform validation on a property.

Inherited from net.fortuna.ical4j.model.property.DateProperty:
compareTogetDategetValuehashCodeisUtcrefreshParameterssetDatesetDefaultTimeZonesetTimeZoneRegistrysetValue

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides net.fortuna.ical4j.model.property.DateProperty.serialVersionUID.

Constructor Detail

RecurrenceIdback to summary
public RecurrenceId()
RecurrenceIdback to summary
public RecurrenceId(final String value)

Creates a new instance initialised with the parsed value.

Parameters
value:String

the RECURRENCE_ID value string to parse

RecurrenceIdback to summary
public RecurrenceId(final ParameterList aList, final String aValue)
Parameters
aList:ParameterList

a list of parameters for this component

aValue:String

a value string for this component

RecurrenceIdback to summary
public RecurrenceId(final T aDate)

Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter.

Parameters
aDate:T

a date representation of a date or date-time

RecurrenceIdback to summary
public RecurrenceId(final ParameterList aList, final T aDate)

Constructor. Date or Date-Time format is determined based on the presence of a VALUE parameter.

Parameters
aList:ParameterList

a list of parameters for this component

aDate:T

a date representation of a date or date-time

Method Detail

newFactoryback to summary
protected PropertyFactory<RecurrenceId<T>> newFactory()

Implements abstract net.fortuna.ical4j.model.Property.newFactory.

Doc from net.fortuna.ical4j.model.Property.newFactory.

Returns a new property factory used to create deep copies.

Returns:PropertyFactory<RecurrenceId<T>>

a property factory instance

Annotations
@Override
validateback to summary
public ValidationResult validate() throws ValidationException

Overrides net.fortuna.ical4j.model.property.DateProperty.validate.

Doc from net.fortuna.ical4j.model.property.DateProperty.validate.

Perform validation on a property.

Annotations
@Override
Exceptions
ValidationException:

Doc from net.fortuna.ical4j.model.Property.validate.

where the property is not in a valid state

net.fortuna.ical4j.model.property back to summary

public Class RecurrenceId.Factory<T extends Temporal>

extends Factory
implements PropertyFactory<RecurrenceId<T extends Temporal>>
Class Inheritance
All Implemented Interfaces
net.fortuna.ical4j.model.PropertyFactory, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public RecurrenceId<T>
createProperty(final ParameterList
a list of property parameters
parameters
,
final String
a property value
value
)

Implements net.fortuna.ical4j.model.PropertyFactory.createProperty.

public RecurrenceId<T>
Inherited from net.fortuna.ical4j.model.Content.Factory:
supports

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

Factoryback to summary
public Factory()

Method Detail

createPropertyback to summary
public RecurrenceId<T> createProperty(final ParameterList parameters, final String value)

Implements net.fortuna.ical4j.model.PropertyFactory.createProperty.

Parameters
parameters:ParameterList

Doc from net.fortuna.ical4j.model.PropertyFactory.createProperty.

a list of property parameters

value:String

Doc from net.fortuna.ical4j.model.PropertyFactory.createProperty.

a property value

Returns:RecurrenceId<T>

Doc from net.fortuna.ical4j.model.PropertyFactory.createProperty.

a new instance of the specified property

Annotations
@Override
createPropertyback to summary
public RecurrenceId<T> createProperty()

Implements net.fortuna.ical4j.model.PropertyFactory.createProperty.

Returns:RecurrenceId<T>

Doc from net.fortuna.ical4j.model.PropertyFactory.createProperty.

a new instance of the specified property

Annotations
@Override