|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.fortuna.ical4j.model.Component
net.fortuna.ical4j.model.component.CalendarComponent
net.fortuna.ical4j.model.component.VTimeZone
public class VTimeZone
$Id: VTimeZone.java,v 1.36 2011/02/20 03:13:18 fortuna Exp $ [Apr 5, 2004] Defines an iCalendar VTIMEZONE component.
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
)
| Field Summary |
|---|
| Fields inherited from class net.fortuna.ical4j.model.component.CalendarComponent |
|---|
EMPTY_VALIDATOR |
| Fields inherited from class net.fortuna.ical4j.model.Component |
|---|
AVAILABLE, BEGIN, END, EXPERIMENTAL_PREFIX, VALARM, VAVAILABILITY, VEVENT, VFREEBUSY, VJOURNAL, VTIMEZONE, VTODO, VVENUE |
| Constructor Summary | |
|---|---|
VTimeZone()
Default constructor. |
|
VTimeZone(ComponentList observances)
Constructs a new vtimezone component with no properties and the specified list of type components. |
|
VTimeZone(PropertyList properties)
Constructs a new instance containing the specified properties. |
|
VTimeZone(PropertyList properties,
ComponentList observances)
Constructor. |
|
| Method Summary | |
|---|---|
Component |
copy()
Overrides default copy method to add support for copying observance sub-components. |
boolean |
equals(java.lang.Object arg0)
|
Observance |
getApplicableObservance(Date date)
Returns the latest applicable timezone observance for the specified date. |
LastModified |
getLastModified()
|
ComponentList |
getObservances()
|
TzId |
getTimeZoneId()
|
TzUrl |
getTimeZoneUrl()
|
protected Validator |
getValidator(Method method)
|
int |
hashCode()
|
java.lang.String |
toString()
|
void |
validate(boolean recurse)
Perform validation on a component. |
| Methods inherited from class net.fortuna.ical4j.model.component.CalendarComponent |
|---|
validate, validateAdd, validateCancel, validateCounter, validateDeclineCounter, validatePublish, validateRefresh, validateReply, validateRequest |
| Methods inherited from class net.fortuna.ical4j.model.Component |
|---|
calculateRecurrenceSet, getName, getProperties, getProperties, getProperty, validate, validateProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VTimeZone()
public VTimeZone(PropertyList properties)
properties - a list of propertiespublic VTimeZone(ComponentList observances)
observances - a list of type components
public VTimeZone(PropertyList properties,
ComponentList observances)
properties - a list of propertiesobservances - a list of timezone types| Method Detail |
|---|
public final java.lang.String toString()
toString in class Component
public final void validate(boolean recurse)
throws ValidationException
validate in class Componentrecurse - indicates whether to validate the component's properties
ValidationException - where the component is not in a valid stateprotected Validator getValidator(Method method)
getValidator in class CalendarComponentmethod - a method to validate on
public final ComponentList getObservances()
public final Observance getApplicableObservance(Date date)
date - the latest possible date for a timezone observance onset
public final TzId getTimeZoneId()
public final LastModified getLastModified()
public final TzUrl getTimeZoneUrl()
public boolean equals(java.lang.Object arg0)
equals in class Componentpublic int hashCode()
hashCode in class Component
public Component copy()
throws java.text.ParseException,
java.io.IOException,
java.net.URISyntaxException
copy in class Componentjava.text.ParseException - where an error occurs parsing data
java.io.IOException - where an error occurs reading data
java.net.URISyntaxException - where an invalid URI is encounteredComponent.copy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||