Class ICalBuilder.Component

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

public static class ICalBuilder.Component extends ICalBuilder.Base
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.
  • Constructor Details

    • Component

      public Component(String componentName)
      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
      
          BEGIN:<X-NAME>
       
      and
      
          END:<X-NAME>
       
      Each property should be added using the methods ICalBuilder.Base.addProperty(String,String,boolean,String...) or ICalBuilder.Base.addProperty(String,String[],boolean,String...).
      Parameters:
      componentName - the name of a component (e.g., its type)
    • Component

      public Component(String componentName, String[] contents)
      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
      
          BEGIN:<X-NAME>
       
      and
      
          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 component
      contents - 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 call super.createContentLines().
      Overrides:
      createContentLines in class ICalBuilder.Base