Package org.bedework.calfacade
Class BwFreeBusyComponent
java.lang.Object
org.bedework.calfacade.base.DumpEntity<T>
org.bedework.calfacade.base.BwUnversionedDbentity<T>
org.bedework.calfacade.base.BwDbentity<BwFreeBusyComponent>
org.bedework.calfacade.BwFreeBusyComponent
- All Implemented Interfaces:
Serializable,Comparable<BwFreeBusyComponent>,org.bedework.util.logging.Logged
Class representing a free busy time component. Used in icalendar objects
- Version:
- 1.0
- Author:
- Mike Douglass douglm@bedework.edu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanTrue if each period is start + duration.static final String[]static final intbusy time - defaultstatic final inttentative busy timestatic final intunavailable timestatic final intfree time -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPeriod(net.fortuna.ical4j.model.DateTime start, net.fortuna.ical4j.model.DateTime end) Merge in a periodvoidaddPeriod(net.fortuna.ical4j.model.Period val) Merge in a periodclone()Make visiblebooleangetEmpty()Collection<net.fortuna.ical4j.model.Period>Get the free busy periodsintgetType()getValue()voidsetType(int val) voidtoString()Methods inherited from class org.bedework.calfacade.base.BwDbentity
addDeletedEntity, afterDeletion, beforeDeletion, beforeSave, beforeUpdate, getByteSize, getDeletedEntities, getSeq, length, setByteSize, setSeqMethods inherited from class org.bedework.calfacade.base.BwUnversionedDbentity
compareTo, equals, getHref, getId, hashCode, markUnsaved, setHref, setId, toStringSegment, unsavedMethods inherited from class org.bedework.calfacade.base.DumpEntity
dump, dump, getLogger, hasDumpValueMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Field Details
-
typeBusy
public static final int typeBusybusy time - default- See Also:
-
typeFree
public static final int typeFreefree time- See Also:
-
typeBusyTentative
public static final int typeBusyTentativetentative busy time- See Also:
-
fbtypes
-
emitDurations
public static final boolean emitDurationsTrue if each period is start + duration. False for start + end- See Also:
-
-
Constructor Details
-
BwFreeBusyComponent
public BwFreeBusyComponent()Constructor
-
-
Method Details
-
setType
public void setType(int val) - Parameters:
val- type
-
getType
public int getType()- Returns:
- int type of time
-
setValue
- Parameters:
val- value
-
getValue
- Returns:
- String representation of list
-
getPeriods
Get the free busy periods- Returns:
- Collection of Period
-
addPeriod
public void addPeriod(net.fortuna.ical4j.model.Period val) Merge in a period- Parameters:
val- Period
-
addPeriod
public void addPeriod(net.fortuna.ical4j.model.DateTime start, net.fortuna.ical4j.model.DateTime end) Merge in a period- Parameters:
start- ical4j DateTimeend- ical4j DateTime
-
getEmpty
public boolean getEmpty()- Returns:
- boolean true for empty
-
getTypeVal
- Returns:
- rfc5545 value
-
toString
-
clone
Description copied from class:BwUnversionedDbentityMake visible- Overrides:
clonein classBwUnversionedDbentity<BwFreeBusyComponent>- Returns:
- Object of class T
-