public class VJournal extends CalendarComponent
4.6.3 Journal Component
Component Name: VJOURNAL
Purpose: Provide a grouping of component properties that describe a
journal entry.
Formal Definition: A "VJOURNAL" calendar component is defined by the
following notation:
journalc = "BEGIN" ":" "VJOURNAL" CRLF
jourprop
"END" ":" "VJOURNAL" CRLF
jourprop = *(
; the following are optional,
; but MUST NOT occur more than once
class / created / description / dtstart / dtstamp /
last-mod / organizer / recurid / seq / status /
summary / uid / url /
; the following are optional,
; and MAY occur more than once
attach / attendee / categories / comment /
contact / exdate / exrule / related / rdate /
rrule / rstatus / x-prop
)
Example 1 - Creating a journal associated with an event:
DtStart meetingDate = (DtStart) meeting.getProperties().getProperty(
Property.DTSTART);
VJournal minutes = new VJournal(meetingDate.getTime(),
"Progress Meeting - Minutes");
// add timezone information..
TzId tzParam = meetingDate.getParameters().getParmaeter(Parameter.TZID);
minutes.getProperties().getProperty(Property.DTSTART).getParameters().add(
tzParam);
// add description..
minutes.getProperties().add(new Description("1. Agenda.., 2. Action Items.."));
| Modifier and Type | Class and Description |
|---|---|
static class |
VJournal.Factory |
EMPTY_VALIDATOR| Constructor and Description |
|---|
VJournal()
Default constructor.
|
VJournal(boolean initialise) |
VJournal(Date start,
java.lang.String summary)
Constructs a new VJOURNAL instance associated with the specified time with the specified summary.
|
VJournal(PropertyList properties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Clazz |
getClassification() |
Created |
getCreated() |
DtStamp |
getDateStamp() |
Description |
getDescription() |
LastModified |
getLastModified() |
Organizer |
getOrganizer() |
RecurrenceId |
getRecurrenceId() |
Sequence |
getSequence() |
DtStart |
getStartDate()
Convenience method to pull the DTSTART out of the property list.
|
Status |
getStatus() |
Summary |
getSummary() |
Uid |
getUid()
Returns the UID property of this component if available.
|
Url |
getUrl() |
protected Validator |
getValidator(Method method) |
void |
validate(boolean recurse)
Perform validation on a component.
|
validate, validateAdd, validateCancel, validateCounter, validateDeclineCounter, validatePublish, validateRefresh, validateReply, validateRequestcalculateRecurrenceSet, copy, equals, getName, getProperties, getProperties, getProperty, getRequiredProperty, hashCode, toString, validate, validatePropertiespublic VJournal()
public VJournal(boolean initialise)
public VJournal(PropertyList properties)
properties - a list of propertiespublic VJournal(Date start, java.lang.String summary)
start - the date the journal entry is associated withsummary - the journal summarypublic final void validate(boolean recurse)
throws ValidationException
validate in class Componentrecurse - indicates whether to validate the component's propertiesValidationException - where the component is not in a valid stateprotected Validator getValidator(Method method)
getValidator in class CalendarComponentmethod - a method to validate onpublic final Clazz getClassification()
public final Created getCreated()
public final Description getDescription()
public final DtStart getStartDate()
public final LastModified getLastModified()
public final Organizer getOrganizer()
public final DtStamp getDateStamp()
public final Sequence getSequence()
public final Status getStatus()
public final Summary getSummary()
public final Url getUrl()
public final RecurrenceId getRecurrenceId()
public final Uid getUid()