Class BwFreeBusyComponent

All Implemented Interfaces:
Serializable, Comparable<BwFreeBusyComponent>, org.bedework.util.logging.Logged

public class BwFreeBusyComponent extends BwDbentity<BwFreeBusyComponent>
Class representing a free busy time component. Used in icalendar objects
Version:
1.0
Author:
Mike Douglass douglm@bedework.edu
See Also:
  • Field Details

    • typeBusy

      public static final int typeBusy
      busy time - default
      See Also:
    • typeFree

      public static final int typeFree
      free time
      See Also:
    • typeBusyUnavailable

      public static final int typeBusyUnavailable
      unavailable time
      See Also:
    • typeBusyTentative

      public static final int typeBusyTentative
      tentative busy time
      See Also:
    • fbtypes

      public static final String[] fbtypes
    • emitDurations

      public static final boolean emitDurations
      True 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

      public void setValue(String val)
      Parameters:
      val - value
    • getValue

      public String getValue()
      Returns:
      String representation of list
    • getPeriods

      public Collection<net.fortuna.ical4j.model.Period> 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 DateTime
      end - ical4j DateTime
    • getEmpty

      public boolean getEmpty()
      Returns:
      boolean true for empty
    • getTypeVal

      public String getTypeVal()
      Returns:
      rfc5545 value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Description copied from class: BwUnversionedDbentity
      Make visible
      Overrides:
      clone in class BwUnversionedDbentity<BwFreeBusyComponent>
      Returns:
      Object of class T