4.6.5 Time Zone Component
Component Name: VTIMEZONE
Purpose: Provide a grouping of component properties that defines a
time zone.
Formal Definition: A "VTIMEZONE" calendar component is defined by the
following notation:
timezonec = "BEGIN" ":" "VTIMEZONE" CRLF
2*(
; 'tzid' is required, but MUST NOT occur more
; than once
tzid /
; 'last-mod' and 'tzurl' are optional,
but MUST NOT occur more than once
last-mod / tzurl /
; one of 'standardc' or 'daylightc' MUST occur
..; and each MAY occur more than once.
standardc / daylightc /
; the following is optional,
; and MAY occur more than once
x-prop
)
"END" ":" "VTIMEZONE" CRLF
standardc = "BEGIN" ":" "STANDARD" CRLF
tzprop
"END" ":" "STANDARD" CRLF
daylightc = "BEGIN" ":" "DAYLIGHT" CRLF
tzprop
"END" ":" "DAYLIGHT" CRLF
tzprop = 3*(
; the following are each REQUIRED,
; but MUST NOT occur more than once
dtstart / tzoffsetto / tzoffsetfrom /
; the following are optional,
; and MAY occur more than once
comment / rdate / rrule / tzname / x-prop
)
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Validator | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | VTimeZone(final PropertyList
a list of properties properties)Constructs a new instance containing the specified properties. |
| public | VTimeZone(final ComponentList<Observance>
a list of type components observances)Constructs a new vtimezone component with no properties and the specified list of type components. |
| public | VTimeZone(final PropertyList
a list of properties properties, final ComponentList<Observance> a list of timezone types observances)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public VTimeZone | copy()
Overrides net. Implements net. Create a (deep) copy of this component. |
| public boolean | equals(final Object
the reference object with which to compare. arg0)Overrides net. Indicates whether some other object is "equal to" this one. |
| public final Observance | Returns: the latest applicable timezone observance for the specified date or null if there are no applicable observancesthe latest possible date for a timezone observance onset date)Returns the latest applicable timezone observance for the specified date. |
| public static Observance | Returns: the latest applicable timezone observance for the specified date or null if there are no applicable observancesthe latest possible date for a timezone observance onset date, List<Observance> a list of observances to choose from observances)Returns the latest applicable timezone observance for the specified date. |
| public ComponentList | Returns: Returns the underlying component list.Implements net.
|
| public final List | |
| public int | hashCode()
Overrides net. Returns a hash code value for this object. |
| protected ComponentFactory | newFactory()
Implements abstract net. Returns a new component factory used to create deep copies. |
| public void | setComponentList(ComponentList<Observance> components)
Implements net.
|
| public ValidationResult | validate(final boolean
indicates whether to validate the component's properties recurse)Implements abstract net. Perform validation on a component. |
| public ValidationResult | validate(Method
the applicable method method)Overrides net. Performs method-specific ITIP validation. |
| itipValidator | back to summary |
|---|---|
| private static final Validator<VTimeZone> itipValidator | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides net. | |
| VTimeZone | back to summary |
|---|---|
| public VTimeZone() Default constructor. | |
| VTimeZone | back to summary |
|---|---|
| public VTimeZone(final PropertyList properties) Constructs a new instance containing the specified properties.
| |
| VTimeZone | back to summary |
|---|---|
| public VTimeZone(final ComponentList<Observance> observances) Constructs a new vtimezone component with no properties and the specified list of type components.
| |
| VTimeZone | back to summary |
|---|---|
| public VTimeZone(final PropertyList properties, final ComponentList<Observance> observances) Constructor.
| |
| copy | back to summary |
|---|---|
| public VTimeZone copy() Overrides net. Implements net. Doc from net. Create a (deep) copy of this component. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object arg0) Overrides net. Doc from net. 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.
| |
| getApplicableObservance | back to summary |
|---|---|
| public final Observance getApplicableObservance(final Temporal date) Returns the latest applicable timezone observance for the specified date.
| |
| getApplicableObservance | back to summary |
|---|---|
| public static Observance getApplicableObservance(final Temporal date, List<Observance> observances) Returns the latest applicable timezone observance for the specified date.
| |
| getComponentList | back to summary |
|---|---|
| public ComponentList Implements net.
| |
| getObservances | back to summary |
|---|---|
public final List
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides net. Doc from net. 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 ComponentFactory Implements abstract net. Doc from net. Returns a new component factory used to create deep copies.
| |
| setComponentList | back to summary |
|---|---|
| public void setComponentList(ComponentList<Observance> components) Implements net.
| |
| validate | back to summary |
|---|---|
| public ValidationResult validate(final boolean recurse) throws ValidationException Implements abstract net. Doc from net. Perform validation on a component.
| |
| validate | back to summary |
|---|---|
| public ValidationResult validate(Method method) throws ValidationException Overrides net. Doc from net. Performs method-specific ITIP validation.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public VTimeZone | |
| public VTimeZone | createComponent(PropertyList properties)
Implements net.
|
| public VTimeZone | createComponent(PropertyList properties, ComponentList<?> subComponents)
Overrides default net.
|
| Factory | back to summary |
|---|---|
| public Factory() | |
| createComponent | back to summary |
|---|---|
| public VTimeZone createComponent() Implements net.
| |
| createComponent | back to summary |
|---|---|
| public VTimeZone createComponent(PropertyList properties) Implements net.
| |
| createComponent | back to summary |
|---|---|
| public VTimeZone createComponent(PropertyList properties, ComponentList<?> subComponents) Overrides default net.
| |