java.lang.Object
org.bzdev.net.calendar.ICalBuilder.Base
org.bzdev.net.calendar.ICalBuilder.Component
- Direct Known Subclasses:
ICalBuilder.FreeBusy
,ICalBuilder.TimeZone
- Enclosing class:
- ICalBuilder
Arbitrary top-level iCalendar component.
The ICalBuilder class contains inner classes that can
create event and to-do iCalendar objects. Other iCalendar
objects can be created using this class.
-
Field Summary
Fields inherited from class org.bzdev.net.calendar.ICalBuilder.Base
contentLines
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bzdev.net.calendar.ICalBuilder.Base
addAttachment, addAttachment, addProperty, addProperty, addProperty, clearContentLines, setDuration
-
Constructor Details
-
Component
Constructor. Please see RFC 5545 for a description of component names. The standard ones are VEVENT, VTODO, VJOURNAL, VFREEBUSY, and VTIMEZONE. Experimental component names are of the form X-<VENDOR-ID <NAME> where NAME is a string containing letters (alpha characters), digits, and "-". The component's properties will be delimited by the lines
andBEGIN:<X-NAME>
Each property should be added using the methodsEND:<X-NAME>
ICalBuilder.Base.addProperty(String,String,boolean,String...)
orICalBuilder.Base.addProperty(String,String[],boolean,String...)
.- Parameters:
componentName
- the name of a component (e.g., its type)
-
Component
Constructor with contents. Please see RFC 5545 for a description of component names. The standard ones are VEVENT, VTODO, VJOURNAL, VFREEBUSY, and VTIMEZONE. Experimental component names are of the form X-<VENDOR-ID <NAME> where NAME is a string containing letters (alpha characters), digits, and "-". The component's properties will be delimited by the lines
andBEGIN:<X-NAME>
END:<X-NAME>
The initial properties are provided by the second argument. Each element of this array represents a line that starts with a property name. The content lines are presumed to have special characters escaped when necessary. The content lines must not be 'folded'.
- Parameters:
componentName
- the name of a componentcontents
- the (initial) contents for this component.
-
-
Method Details
-
createContentLines
protected void createContentLines()Description copied from class:ICalBuilder.Base
Generate content lines. Subclasses that override this method should callsuper.createContentLines()
.- Overrides:
createContentLines
in classICalBuilder.Base
-