java.lang.Object
org.bzdev.net.calendar.ICalBuilder.Base
org.bzdev.net.calendar.ICalBuilder.Common
org.bzdev.net.calendar.ICalBuilder.CommonWithAlarm
- Direct Known Subclasses:
ICalBuilder.Event,ICalBuilder.ToDo
- Enclosing class:
- ICalBuilder
Superclass for those ICalendar components that
can contain alarms.
-
Field Summary
Fields inherited from class org.bzdev.net.calendar.ICalBuilder.Base
contentLines -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommonWithAlarm(String uid, int sequence, TemporalAccessor created, TemporalAccessor lastModified) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClear the content lines.protected voidCreate the content for this event (a sequence of lines) that will make up part of an iCalendar file).Methods inherited from class org.bzdev.net.calendar.ICalBuilder.Common
addAttendee, addCategories, addComment, addContact, addRelatedTo, setClassification, setDescription, setGeo, setLocation, setPriority, setStartTime, setStatus, setSummary, setURLMethods inherited from class org.bzdev.net.calendar.ICalBuilder.Base
addAttachment, addAttachment, addProperty, addProperty, addProperty, setDuration
-
Constructor Details
-
CommonWithAlarm
protected CommonWithAlarm(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
-
clearContentLines
protected void clearContentLines()Description copied from class:ICalBuilder.BaseClear the content lines. Subclasses that override this method must call super.clearContentLines().- Overrides:
clearContentLinesin classICalBuilder.Common
-
createContentLines
protected void createContentLines()Create the content for this event (a sequence of lines) that will make up part of an iCalendar file).- Overrides:
createContentLinesin classICalBuilder.Common
-