public class VAvailability extends CalendarComponent
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 and Description |
|---|
VAvailability()
Default constructor.
|
VAvailability(PropertyList properties)
Constructs a new instance containing the specified properties.
|
VAvailability(PropertyList properties,
ComponentList available)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ComponentList |
getAvailable()
Returns the list of available times.
|
java.lang.String |
toString() |
void |
validate(boolean recurse)
Perform validation on a component.
|
void |
validateAdd()
Apply validation for METHOD=ADD.
|
void |
validateCancel()
Apply validation for METHOD=CANCEL.
|
void |
validateCounter()
Apply validation for METHOD=COUNTER.
|
void |
validateDeclineCounter()
Apply validation for METHOD=DECLINE-COUNTER.
|
void |
validatePublish()
Apply validation for METHOD=PUBLISH.
|
void |
validateRefresh()
Apply validation for METHOD=REFRESH.
|
void |
validateReply()
Apply validation for METHOD=REPLY.
|
void |
validateRequest()
Apply validation for METHOD=REQUEST.
|
calculateRecurrenceSet, copy, equals, getName, getProperties, getProperties, getProperty, hashCode, validate, validatePropertiespublic VAvailability()
public VAvailability(PropertyList properties)
properties - a list of propertiespublic VAvailability(PropertyList properties, ComponentList available)
properties - a list of propertiesalarms - a list of available componentspublic final ComponentList getAvailable()
public final java.lang.String toString()
public final void validate(boolean recurse)
throws ValidationException
Componentvalidate in class Componentrecurse - indicates whether to validate the component's propertiesValidationException - where the component is not in a valid statepublic void validateAdd()
throws ValidationException
CalendarComponentvalidateAdd in class CalendarComponentValidationExceptionpublic void validateCancel()
throws ValidationException
CalendarComponentvalidateCancel in class CalendarComponentValidationExceptionpublic void validateCounter()
throws ValidationException
CalendarComponentvalidateCounter in class CalendarComponentValidationExceptionpublic void validateDeclineCounter()
throws ValidationException
CalendarComponentvalidateDeclineCounter in class CalendarComponentValidationExceptionpublic void validatePublish()
throws ValidationException
CalendarComponentvalidatePublish in class CalendarComponentValidationExceptionpublic void validateRefresh()
throws ValidationException
CalendarComponentvalidateRefresh in class CalendarComponentValidationExceptionpublic void validateReply()
throws ValidationException
CalendarComponentvalidateReply in class CalendarComponentValidationExceptionpublic void validateRequest()
throws ValidationException
CalendarComponentvalidateRequest in class CalendarComponentValidationException