java.lang.Object
org.bzdev.net.calendar.ICalBuilder.Base
org.bzdev.net.calendar.ICalBuilder.Component
org.bzdev.net.calendar.ICalBuilder.FreeBusy
- Enclosing class:
- ICalBuilder
The iCalendar free/busy component class.
Please see
Section 3.6.4 of RFC 545
for a description of what properties are allowed in this component
and the order in which they can occur. The properties must be
added by providing them to a constructor and/or by using the
methods
ICalBuilder.Base.addProperty(String,String,boolean,String...) and
ICalBuilder.Base.addProperty(String,String[],boolean,String...).-
Field Summary
Fields inherited from class org.bzdev.net.calendar.ICalBuilder.Base
contentLines -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddAttachment(String formatType, byte[] data) Try to add an attachment provided as binary data.final voidaddAttachment(String formatType, String uri) Add an attachment referenced by a URI.final voidsetDuration(int duration, ICalBuilder.Units units) Set the duration for an iCalendar component.Methods inherited from class org.bzdev.net.calendar.ICalBuilder.Component
createContentLinesMethods inherited from class org.bzdev.net.calendar.ICalBuilder.Base
addProperty, addProperty, addProperty, clearContentLines
-
Constructor Details
-
FreeBusy
public FreeBusy()Constructor. -
FreeBusy
Constructor with contents. Each element of the content array represents a line that starts with a property name. The lines are presumed to have special characters escaped when necessary. The content lines must not be 'folded'.- Parameters:
contents- the sequence of properties for this component
-
-
Method Details
-
setDuration
public final void setDuration(int duration, ICalBuilder.Units units) throws UnsupportedOperationException Set the duration for an iCalendar component. This operation is not supported and calling this method will throw an exception.- Overrides:
setDurationin classICalBuilder.Base- Parameters:
duration- (ignored)units- (ignored)- Throws:
UnsupportedOperationException- this class does not allow attachments
-
addAttachment
Add an attachment referenced by a URI. This operation is not supported and calling this method will throw an exception.- Overrides:
addAttachmentin classICalBuilder.Base- Parameters:
formatType- (ignored)uri- (ignored)- Throws:
UnsupportedOperationException- this class does not allow attachments
-
addAttachment
public final void addAttachment(String formatType, byte[] data) throws UnsupportedOperationException Try to add an attachment provided as binary data. This operation is not supported and calling this method will throw an exception.- Overrides:
addAttachmentin classICalBuilder.Base- Parameters:
formatType- (ignored)data- (ignored)- Throws:
UnsupportedOperationException- this class does not allow attachments
-