net.fortuna.ical4j.model.component
Class Observance
Component
net.fortuna.ical4j.model.component.Observance
- Comparable
public abstract class Observance
extends Component
implements Comparable
$Id: Observance.java,v 1.22 2008/12/16 12:34:53 fortuna Exp $ [05-Apr-2004]
Defines an iCalendar sub-component representing a timezone observance. Class made abstract such that only Standard
and Daylight instances are valid.
static String | DAYLIGHT
|
static String | STANDARD - one of 'standardc' or 'daylightc' MUST occur and each MAY occur more than once.
|
Observance(String name) - Constructs a timezone observance with the specified name and no properties.
|
Observance(String name, PropertyList properties) - Constructor protected to enforce use of sub-classes from this library.
|
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)
|
DAYLIGHT
public static final String DAYLIGHT
STANDARD
public static final String STANDARD
one of 'standardc' or 'daylightc' MUST occur and each MAY occur more than once.
Observance
protected Observance(String name)
Constructs a timezone observance with the specified name and no properties.
name
- the name of this observance component
Observance
protected Observance(String name,
PropertyList properties)
Constructor protected to enforce use of sub-classes from this library.
name
- the name of the time typeproperties
- a list of properties
compareTo
public final int compareTo(Object arg0)
compareTo
public final int compareTo(Observance arg0)
getLatestOnset
public final Date getLatestOnset(Date date)
Returns the latest applicable onset of this observance for the specified date.
date
- the latest date that an observance onset may occur
- the latest applicable observance date or null if there is no applicable observance onset for the
specified date
getOffsetFrom
public final TzOffsetFrom getOffsetFrom()
Returns the mandatory tzoffsetfrom property.
getOffsetTo
public final TzOffsetTo getOffsetTo()
Returns the mandatory tzoffsetto property.
getStartDate
public final DtStart getStartDate()
Returns the mandatory dtstart property.
validate
public final void validate(boolean recurse)
throws ValidationException
net.fortuna.ical4j.model.Component.validate(boolean)