net.fortuna.ical4j.model.component

Class VAvailability


public class VAvailability
extends CalendarComponent

$Id: VAvailability.java,v 1.5 2009/01/07 10:02:30 fortuna Exp $ [Apr 5, 2004] Defines an iCalendar VAVAILABILITY component.
Component Name:  VAVAILABILITY
Purpose:  Provide a grouping of component properties that describe
the availability associated with a calendar user.
Format Definition:  A "VAVAILABILITY" calendar component is defined
by the following notation:
availabilityc  = "BEGIN" ":" "VAVAILABILITY" CRLF
availabilityprop *availablec
"END" ":" "VAVAILABILITY" CRLF
availabilityprop  = *(
; the following are REQUIRED,
; but MUST NOT occur more than once
dtstamp / dtstart / uid
; the following are OPTIONAL,
; but MUST NOT occur more than once
busytype / created / last-mod /
organizer / seq / summary / url /
; either 'dtend' or 'duration' may appear
; in a 'availabilityprop', but 'dtend' and
; 'duration' MUST NOT occur in the same
; 'availabilityprop'
dtend / duration /
; the following are OPTIONAL,
; and MAY occur more than once
categories / comment / contact / x-prop
)

 

Constructor Summary

VAvailability()
Default constructor.
VAvailability(PropertyList properties)
Constructs a new instance containing the specified properties.
VAvailability(PropertyList properties, ComponentList available)
Constructor.

Method Summary

ComponentList
getAvailable()
Returns the list of available times.
String
toString()
void
validate(boolean recurse)
void
validateAdd()
void
validateCancel()
void
validateCounter()
void
validateDeclineCounter()
void
validatePublish()
void
validateRefresh()
void
validateReply()
void
validateRequest()

Constructor Details

VAvailability

public VAvailability()
Default constructor.

VAvailability

public VAvailability(PropertyList properties)
Constructs a new instance containing the specified properties.
Parameters:
properties - a list of properties

VAvailability

public VAvailability(PropertyList properties,
                     ComponentList available)
Constructor.
Parameters:
properties - a list of properties

Method Details

getAvailable

public final ComponentList getAvailable()
Returns the list of available times.
Returns:
a component list

toString

public final String toString()
See Also:
java.lang.Object.toString()

validate

public final void validate(boolean recurse)
            throws ValidationException

validateAdd

public void validateAdd()
            throws ValidationException

validateCancel

public void validateCancel()
            throws ValidationException

validateCounter

public void validateCounter()
            throws ValidationException

validateDeclineCounter

public void validateDeclineCounter()
            throws ValidationException

validatePublish

public void validatePublish()
            throws ValidationException

validateRefresh

public void validateRefresh()
            throws ValidationException

validateReply

public void validateReply()
            throws ValidationException

validateRequest

public void validateRequest()
            throws ValidationException