- Enclosing class:
- ICalBuilder
-
Field Summary
Fields inherited from class org.bzdev.net.calendar.ICalBuilder.Base
contentLines -
Constructor Summary
ConstructorsConstructorDescriptionJournal(String uid, int sequence, TemporalAccessor created, TemporalAccessor lastModified) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescription(String description, String... parameters) Set the description for this event.protected voidCreate the content for this event (a sequence of lines) that will make up part of an iCalendar file).voidsetStartTime(TemporalAccessor startTime, String... parameters) Set the start time for this iCalendar component.voidsetSummary(String summary, String... parameters) Set the summary property for this event.Methods inherited from class org.bzdev.net.calendar.ICalBuilder.Common
addAttendee, addCategories, addComment, addContact, addRelatedTo, clearContentLines, setClassification, setDescription, setGeo, setLocation, setPriority, setStatus, setURLMethods inherited from class org.bzdev.net.calendar.ICalBuilder.Base
addAttachment, addAttachment, addProperty, addProperty, addProperty, setDuration
-
Constructor Details
-
Journal
public Journal(String uid, int sequence, TemporalAccessor created, TemporalAccessor lastModified) throws IllegalArgumentException Constructor. The first argument (uid) is described in Section 3.8.4.7 of RFC 5545. The second argument (sequence) is described in Section 3.8.7.4 of RFC 5545. The third argument (created) is described in Section 3.8.7.1 of RFC 5545. The fourth argument (lastModified) is described in Section of 3.8.7.3 RFC 5545.The types of the
TemporalAccessorarguments must be eitherLocalDate,LocalDateTime,ZonedDateTime, orInstant, The classesLocalDateandLocalDateTimewill be treated as a "floating time" (see RFC 5545) and bothZonedDateTimeandInstantwill have their times represented using UTC. To convert a LocalDate value to a LocalDateTime value, use methods such asLocalDate.atStartOfDay(). To convert a LocalDateTime value to a ZonedDateTime object, use the methodLocalDateTime.atZone(java.time.ZoneId). To get the default time zone for the Java virtual machine, use the methodZoneId.systemDefault().- Parameters:
uid- the globally unique identifier for this iCalendar componentsequence- a sequence number labeling changes to this iCalendar componentcreated- the time at which this iCalendar component was createdlastModified- the last time at which this iCalendar component was modified- Throws:
IllegalArgumentException- an argument was null or the sequence number was negative or a temporal accessor argument's type is not a recognized subclass of TemporalAccesssor
-
-
Method Details
-
setStartTime
public void setStartTime(TemporalAccessor startTime, String... parameters) throws IllegalArgumentException Set the start time for this iCalendar component. Please see Section 3.8.2.4 of RFC 5545 for a description of the start-time property. The parameters defined by RFC 5545 are- VALUE. Values (which follow an "=" character) can be DATE-TIME or DATE.
- TZID. Please see Section 3.2.19 of RFC 5545.
The type of the
TemporalAccessorargument must be eitherLocalDate,LocalDateTime,ZonedDateTime, orInstant, The classesLocalDateandLocalDateTimewill be treated as a "floating time" (see RFC 5545) and bothZonedDateTimeandInstantwill have their times represented using UTC. To convert a LocalDate value to a LocalDateTime value, use methods such asLocalDate.atStartOfDay(). To convert a LocalDateTime value to a ZonedDateTime object, use the methodLocalDateTime.atZone(java.time.ZoneId). To get the default time zone for the Java virtual machine, use the methodZoneId.systemDefault().- Overrides:
setStartTimein classICalBuilder.Common- Parameters:
startTime- the time at which the activity represented by this iCalendar component startsparameters- the parameters- Throws:
IllegalArgumentException- the temporal accessor argument's type is not a recognized subclass of TemporalAccesssor
-
setSummary
Set the summary property for this event. The first argument is typically a short string describing an event and is described in Section 3.8.1.12 of RFC 5545.Parameters defined by RFC 5545 for a comment are LANGUAGE and ALTREP.
- Overrides:
setSummaryin classICalBuilder.Common- Parameters:
summary- a summary describing this event; null if there is no summaryparameters- the parameters for this property
-
addDescription
Set the description for this event. The description of an iCalendar component and is described in Section 3.8.1.5 of RFC 5545.Parameters defined by RFC 5545 for a comment are LANGUAGE and ALTREP.
- Parameters:
description- a full description of this event; null if there is no descriptionparameters- the parameters for this property
-
createContentLines
protected void createContentLines()Description copied from class:ICalBuilder.CommonCreate the content for this event (a sequence of lines) that will make up part of an iCalendar file).- Overrides:
createContentLinesin classICalBuilder.Common
-