Class VJournal
- java.lang.Object
-
- net.fortuna.ical4j.model.Content
-
- net.fortuna.ical4j.model.Component
-
- net.fortuna.ical4j.model.component.CalendarComponent
-
- net.fortuna.ical4j.model.component.VJournal
-
- All Implemented Interfaces:
Serializable
,ComponentContainer<Component>
,PropertyContainer
public class VJournal extends CalendarComponent implements ComponentContainer<Component>
$Id$ [Apr 5, 2004] Defines an iCalendar VJOURNAL component.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.add(new Description("1. Agenda.., 2. Action Items.."));
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VJournal.Factory
-
Field Summary
-
Fields inherited from class net.fortuna.ical4j.model.component.CalendarComponent
EMPTY_VALIDATOR
-
Fields inherited from class net.fortuna.ical4j.model.Component
AVAILABLE, BEGIN, components, END, EXPERIMENTAL_PREFIX, PARTICIPANT, properties, VALARM, VAVAILABILITY, VEVENT, VFREEBUSY, VJOURNAL, VLOCATION, VRESOURCE, VTIMEZONE, VTODO, VVENUE
-
-
Constructor Summary
Constructors Constructor Description VJournal()
Default constructor.VJournal(boolean initialise)
VJournal(Temporal start, String summary)
Constructs a new VJOURNAL instance associated with the specified time with the specified summary.VJournal(PropertyList properties)
Constructor.
-
Method Summary
-
Methods inherited from class net.fortuna.ical4j.model.component.CalendarComponent
validateAdd, validateCancel, validateCounter, validateDeclineCounter, validatePublish, validateRefresh, validateReply, validateRequest
-
Methods inherited from class net.fortuna.ical4j.model.Component
calculateRecurrenceSet, copy, equals, getName, getProperties, getPropertyList, getValue, hashCode, setPropertyList, toString, validate, validateProperties
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.fortuna.ical4j.model.ComponentContainer
add, getComponent, getComponents, remove, replace
-
Methods inherited from interface net.fortuna.ical4j.model.PropertyContainer
add, getProperties, getProperty, getRequiredProperty, remove, removeAll, replace
-
-
-
-
Constructor Detail
-
VJournal
public VJournal()
Default constructor.
-
VJournal
public VJournal(boolean initialise)
-
VJournal
public VJournal(PropertyList properties)
Constructor.- Parameters:
properties
- a list of properties
-
-
Method Detail
-
validate
public final void validate(boolean recurse) throws ValidationException
Perform validation on a component.- Specified by:
validate
in classComponent
- Parameters:
recurse
- indicates whether to validate the component's properties- Throws:
ValidationException
- where the component is not in a valid state
-
validate
public void validate(Method method) throws ValidationException
Performs method-specific ITIP validation.- Overrides:
validate
in classCalendarComponent
- Parameters:
method
- the applicable method- Throws:
ValidationException
- where the component does not comply with RFC2446
-
getParticipants
public final List<Participant> getParticipants()
-
getComponentList
public ComponentList<Component> getComponentList()
- Specified by:
getComponentList
in interfaceComponentContainer<Component>
- Returns:
- Returns the underlying component list.
-
setComponentList
public void setComponentList(ComponentList<Component> components)
- Specified by:
setComponentList
in interfaceComponentContainer<Component>
-
getClassification
@Deprecated public final Optional<Clazz> getClassification()
Deprecated.- Returns:
- the optional access classification property for a journal entry
-
getCreated
@Deprecated public final Optional<Created> getCreated()
Deprecated.- Returns:
- the optional creation-time property for a journal entry
-
getDescription
@Deprecated public final Optional<Description> getDescription()
Deprecated.- Returns:
- the optional description property for a journal entry
-
getStartDate
@Deprecated public final Optional<DtStart<?>> getStartDate()
Deprecated.Convenience method to pull the DTSTART out of the property list.- Returns:
- The DtStart object representation of the start Date
-
getLastModified
@Deprecated public final Optional<LastModified> getLastModified()
Deprecated.- Returns:
- the optional last-modified property for a journal entry
-
getOrganizer
@Deprecated public final Optional<Organizer> getOrganizer()
Deprecated.- Returns:
- the optional organizer property for a journal entry
-
getDateStamp
@Deprecated public final Optional<DtStamp> getDateStamp()
Deprecated.- Returns:
- the optional date-stamp property
-
getSequence
@Deprecated public final Optional<Sequence> getSequence()
Deprecated.- Returns:
- the optional sequence number property for a journal entry
-
getStatus
@Deprecated public final Optional<Status> getStatus()
Deprecated.- Returns:
- the optional status property for a journal entry
-
getSummary
@Deprecated public final Optional<Summary> getSummary()
Deprecated.- Returns:
- the optional summary property for a journal entry
-
getUrl
@Deprecated public final Optional<Url> getUrl()
Deprecated.- Returns:
- the optional URL property for a journal entry
-
getRecurrenceId
@Deprecated public final Optional<RecurrenceId<?>> getRecurrenceId()
Deprecated.- Returns:
- the optional recurrence identifier property for a journal entry
-
getUid
@Deprecated public final Optional<Uid> getUid()
Deprecated.Returns the UID property of this component if available.- Returns:
- a Uid instance, or null if no UID property exists
-
newFactory
protected ComponentFactory<VJournal> newFactory()
Description copied from class:Component
Returns a new component factory used to create deep copies.- Specified by:
newFactory
in classComponent
- Returns:
- a component factory instance
-
-