|
||||||||||
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.Observance
Defines an iCalendar sub-component representing a timezone observance. Class made abstract such that only Standard and Daylight instances are valid.
Field Summary | |
static String |
DAYLIGHT
|
static String |
STANDARD
one of 'standardc' or 'daylightc' MUST occur and each MAY occur more than once. |
Fields inherited from class net.fortuna.ical4j.model.Component |
BEGIN, END, EXPERIMENTAL_PREFIX, VALARM, VEVENT, VFREEBUSY, VJOURNAL, VTIMEZONE, VTODO |
Constructor Summary | |
protected |
Observance(String name)
Constructs a timezone observance with the specified name and no properties. |
protected |
Observance(String name,
PropertyList properties)
Constructor protected to enforce use of sub-classes from this library. |
Method Summary | |
int |
compareTo(Object arg0)
|
int |
compareTo(Observance arg0)
|
Date |
getLatestOnset(Date date)
Returns the latest applicable onset of this observance for the specified date. |
TzOffsetFrom |
getOffsetFrom()
Returns the mandatory tzoffsetfrom property. |
TzOffsetTo |
getOffsetTo()
Returns the mandatory tzoffsetto property. |
DtStart |
getStartDate()
Returns the mandatory dtstart property. |
void |
validate(boolean recurse)
Perform validation on a component. |
Methods inherited from class net.fortuna.ical4j.model.Component |
equals, getName, getProperties, getProperties, getProperty, hashCode, toString, validate, validateProperties |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String STANDARD
public static final String DAYLIGHT
Constructor Detail |
protected Observance(String name)
name
- the name of this observance componentprotected Observance(String name, PropertyList properties)
name
- the name of the time typeproperties
- a list of propertiesMethod Detail |
public final void validate(boolean recurse) throws ValidationException
Component
validate
in class Component
recurse
- indicates whether to validate the component's
properties
ValidationException
- where the component is not in a valid stateComponent.validate(boolean)
public final Date getLatestOnset(Date date)
date
- the latest date that an observance onset may occur
public final DtStart getStartDate()
public final TzOffsetFrom getOffsetFrom()
public final TzOffsetTo getOffsetTo()
public final int compareTo(Object arg0)
compareTo
in interface Comparable
public final int compareTo(Observance arg0)
arg0
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |