Class Icalendar

java.lang.Object
org.bedework.convert.Icalendar
All Implemented Interfaces:
Serializable, net.fortuna.ical4j.model.TimeZoneRegistry, org.bedework.util.calendar.ScheduleMethods

public class Icalendar extends Object implements net.fortuna.ical4j.model.TimeZoneRegistry, org.bedework.util.calendar.ScheduleMethods, Serializable
Class to represent an RFC icalendar object converted to an internal form.

This object acts as it's own timezone registry allowing us to handle timezones defined in the event objects which we do not store in the system timezone store.

Version:
1.0
Author:
Mike Douglass douglm@rpi.edu
See Also:
  • Constructor Details

    • Icalendar

      public Icalendar()
  • Method Details

    • setProdid

      public void setProdid(String val)
      Parameters:
      val - product id
    • getProdid

      public String getProdid()
      Returns:
      String
    • setVersion

      public void setVersion(String val)
      Parameters:
      val - version
    • getVersion

      public String getVersion()
      Returns:
      String
    • setCalscale

      public void setCalscale(String val)
      Parameters:
      val - cal scale
    • getCalscale

      public String getCalscale()
      Returns:
      String
    • setMethod

      public void setMethod(String val)
      Parameters:
      val - method
    • getMethod

      public String getMethod()
      Returns:
      String
    • getTimeZones

      public Collection<Icalendar.TimeZoneInfo> getTimeZones()
      Returns:
      Collection of timezone info
    • addTimeZone

      public void addTimeZone(Icalendar.TimeZoneInfo tzi)
      Add a timezone
      Parameters:
      tzi - TimeZoneInfo
    • getComponents

      public Collection<EventInfo> getComponents()
      Returns:
      Collection
    • setComponentType

      public void setComponentType(org.bedework.util.calendar.IcalDefs.IcalComponentType val)
      Parameters:
      val - component type for the collection
    • getComponentType

      public org.bedework.util.calendar.IcalDefs.IcalComponentType getComponentType()
      Returns:
      ComponentType
    • setMethodType

      public void setMethodType(int val)
      Parameters:
      val - method type
    • getMethodType

      public int getMethodType()
      Returns:
      int
    • getMethodType

      public static int getMethodType(String val)
      Parameters:
      val - String method name
      Returns:
      int
    • getMethodName

      public static String getMethodName(int mt)
      Parameters:
      mt - method index
      Returns:
      A string value for the method
    • getOrganizer

      public BwOrganizer getOrganizer()
      An event or a free-busy request may contain an organizer. Return it if it is present.
      Returns:
      organizer object if present.
    • getEventInfo

      public EventInfo getEventInfo()
      Returns:
      EventInfo
    • addComponent

      public void addComponent(EventInfo val)
      Parameters:
      val - the (possible) event object
    • iterator

      public Iterator<?> iterator()
      Returns:
      Iterator
    • size

      public int size()
      Returns:
      int
    • validItipMethodType

      public boolean validItipMethodType()
      True for valid itip method
      Returns:
      boolean
    • requestMethodType

      public boolean requestMethodType()
      True for itip request type method
      Returns:
      boolean
    • replyMethodType

      public boolean replyMethodType()
      True for itip reply type method
      Returns:
      boolean
    • itipRequestMethodType

      public static boolean itipRequestMethodType(int mt)
      True for itip request type method
      Parameters:
      mt - method
      Returns:
      boolean
    • itipReplyMethodType

      public static boolean itipReplyMethodType(int mt)
      True for itip reply type method
      Parameters:
      mt - method
      Returns:
      boolean
    • validItipMethodType

      public static boolean validItipMethodType(int val)
      True for valid itip method
      Parameters:
      val - itip method to test
      Returns:
      boolean
    • validItipMethodType

      public static boolean validItipMethodType(int val, org.bedework.util.calendar.IcalDefs.IcalComponentType type)
      True for valid itip method for given component type
      Parameters:
      val - itip method to test
      type - component type
      Returns:
      boolean
    • findMethodType

      public static int findMethodType(String val)
      Convert to int method index
      Parameters:
      val - String possible method
      Returns:
      int
    • register

      public void register(net.fortuna.ical4j.model.TimeZone timezone)
      Specified by:
      register in interface net.fortuna.ical4j.model.TimeZoneRegistry
    • register

      public void register(net.fortuna.ical4j.model.TimeZone timezone, boolean update)
      Specified by:
      register in interface net.fortuna.ical4j.model.TimeZoneRegistry
    • clear

      public void clear()
      Specified by:
      clear in interface net.fortuna.ical4j.model.TimeZoneRegistry
    • getTimeZone

      public net.fortuna.ical4j.model.TimeZone getTimeZone(String id)
      Specified by:
      getTimeZone in interface net.fortuna.ical4j.model.TimeZoneRegistry
    • toString

      public String toString()
      Overrides:
      toString in class Object