Defines an iCalendar component. Subclasses of this class provide additional validation and typed values for specific iCalendar components.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | AVAILABLE
Component token. |
| public static final String | BEGIN
Component start token. |
| protected ComponentList | |
| public static final String | END
Component end token. |
| public static final String | EXPERIMENTAL_PREFIX
Prefix for non-standard components. |
| private final String | |
| public static final String | PARTICIPANT
Component token. |
| protected PropertyList | |
| private static final long | |
| public static final String | VALARM
Component token. |
| public static final String | VAVAILABILITY
Component token. |
| public static final String | VEVENT
Component token. |
| public static final String | VFREEBUSY
Component token. |
| public static final String | VJOURNAL
Component token. |
| public static final String | VLOCATION
Component token. |
| public static final String | VRESOURCE
Component token. |
| public static final String | VTIMEZONE
Component token. |
| public static final String | VTODO
Component token. |
| public static final String | VVENUE
Component token. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | Component(final String
component name s, final PropertyList a list of properties p, ComponentList<? extends Component> c)Constructor made protected to enforce the use of |
| Modifier and Type | Method and Description |
|---|---|
| public final <T extends Temporal> Set | Returns: a set of periods representing component occurrences within the specified boundarya range that defines the boundary for calculations period)Calculates the recurrence set for this component using the specified period. |
| public int | compareTo(@NotNull Component
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public Component | |
| public boolean | equals(final Object
the reference object with which to compare. arg0)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Component | |
| public final String | |
| public <T extends Property> List | |
| public final PropertyList | Returns: Returns the underlying property list.Implements net.
|
| public Optional | Returns: a Uid instance, or null if no UID property existsReturns the UID property of this component if available. |
| public String | |
| public int | |
| protected abstract ComponentFactory | Returns: a component factory instanceReturns a new component factory used to create deep copies. |
| public void | setPropertyList(PropertyList properties)
Implements net.
|
| public String | |
| public ValidationResult | |
| public abstract ValidationResult | validate(final boolean
indicates whether to validate the component's properties recurse)Perform validation on a component. |
| protected ValidationResult |
| AVAILABLE | back to summary |
|---|---|
| public static final String AVAILABLE Component token. | |
| BEGIN | back to summary |
|---|---|
| public static final String BEGIN Component start token. | |
| components | back to summary |
|---|---|
| protected ComponentList<? extends Component> components | |
| END | back to summary |
|---|---|
| public static final String END Component end token. | |
| EXPERIMENTAL_PREFIX | back to summary |
|---|---|
| public static final String EXPERIMENTAL_PREFIX Prefix for non-standard components. | |
| name | back to summary |
|---|---|
| private final String name | |
| PARTICIPANT | back to summary |
|---|---|
| public static final String PARTICIPANT Component token. | |
| properties | back to summary |
|---|---|
| protected PropertyList properties | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| VALARM | back to summary |
|---|---|
| public static final String VALARM Component token. | |
| VAVAILABILITY | back to summary |
|---|---|
| public static final String VAVAILABILITY Component token. | |
| VEVENT | back to summary |
|---|---|
| public static final String VEVENT Component token. | |
| VFREEBUSY | back to summary |
|---|---|
| public static final String VFREEBUSY Component token. | |
| VJOURNAL | back to summary |
|---|---|
| public static final String VJOURNAL Component token. | |
| VLOCATION | back to summary |
|---|---|
| public static final String VLOCATION Component token. | |
| VRESOURCE | back to summary |
|---|---|
| public static final String VRESOURCE Component token. | |
| VTIMEZONE | back to summary |
|---|---|
| public static final String VTIMEZONE Component token. | |
| VTODO | back to summary |
|---|---|
| public static final String VTODO Component token. | |
| VVENUE | back to summary |
|---|---|
| public static final String VVENUE Component token. | |
| Component | back to summary |
|---|---|
| protected Component(final String s) Constructs a new component containing no properties.
| |
| Component | back to summary |
|---|---|
| protected Component(final String s, final PropertyList p) | |
| Component | back to summary |
|---|---|
| protected Component(final String s, final PropertyList p, ComponentList<? extends Component> c) Constructor made protected to enforce the use of
| |
| calculateRecurrenceSet | back to summary |
|---|---|
| public final <T extends Temporal> Set Calculates the recurrence set for this component using the specified period. The recurrence set is derived from a combination of the component start date, recurrence rules and dates, and exception rules and dates. Note that component transparency and anniversary-style dates do not affect the resulting intersection. If an explicit DURATION is not specified, the effective duration of each returned period is derived from the DTSTART and DTEND or DUE properties. If the component has no DURATION, DTEND or DUE, the effective duration is set to PT0S NOTE: As a component may be defined in terms of floating date-time values (i.e. without a specific timezone), when calculating a recurrence set we must explicitly provide an applicable timezone for calculations. | |
| compareTo | back to summary |
|---|---|
| public int compareTo(@NotNull Component o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| copy | back to summary |
|---|---|
| public Component copy() Create a (deep) copy of this component.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object arg0) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getFluentTarget | back to summary |
|---|---|
| public Component getFluentTarget() Implements net.
| |
| getName | back to summary |
|---|---|
| public final String getName() Implements abstract net. | |
| getProperties | back to summary |
|---|---|
| public <T extends Property> List | |
| getPropertyList | back to summary |
|---|---|
| public final PropertyList getPropertyList() Implements net.
| |
| getUid | back to summary |
|---|---|
| public Optional Returns the UID property of this component if available. | |
| getValue | back to summary |
|---|---|
| public String getValue() Implements abstract net.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| newFactory | back to summary |
|---|---|
| protected abstract ComponentFactory Returns a new component factory used to create deep copies.
| |
| setPropertyList | back to summary |
|---|---|
| public void setPropertyList(PropertyList properties) Implements net.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| validate | back to summary |
|---|---|
| public ValidationResult validate() throws ValidationException Perform validation on a component and its properties.
| |
| validate | back to summary |
|---|---|
| public abstract ValidationResult validate(final boolean recurse) throws ValidationException Perform validation on a component.
| |
| validateProperties | back to summary |
|---|---|
| protected ValidationResult validateProperties() throws ValidationException Invoke validation on the component properties in its current state.
| |