Class IcalToXcal


  • public class IcalToXcal
    extends Object
    Conversion to XML from ical4j
    Author:
    douglm
    • Constructor Summary

      Constructors 
      Constructor Description
      IcalToXcal()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ietf.params.xml.ns.icalendar_2.RecurType doRecur​(net.fortuna.ical4j.model.Recur r)
      Build recurring properties from ical recurrence.
      static ietf.params.xml.ns.icalendar_2.IcalendarType fromIcal​(net.fortuna.ical4j.model.Calendar cal, ietf.params.xml.ns.icalendar_2.BaseComponentType pattern, boolean wrapXprops)  
      static ietf.params.xml.ns.icalendar_2.IcalendarType fromIcal​(net.fortuna.ical4j.model.Calendar cal, ietf.params.xml.ns.icalendar_2.BaseComponentType pattern, boolean doTimezones, boolean wrapXprops)  
      static void processProperties​(net.fortuna.ical4j.model.PropertyList icprops, ietf.params.xml.ns.icalendar_2.BaseComponentType comp, ietf.params.xml.ns.icalendar_2.BaseComponentType pattern, boolean wrapXprops)  
      static javax.xml.bind.JAXBElement<? extends ietf.params.xml.ns.icalendar_2.BaseComponentType> toComponent​(net.fortuna.ical4j.model.Component val, ietf.params.xml.ns.icalendar_2.BaseComponentType pattern, boolean wrapXprops)
      Make a BaseComponentType component from an ical4j object.
    • Constructor Detail

      • IcalToXcal

        public IcalToXcal()
    • Method Detail

      • fromIcal

        public static ietf.params.xml.ns.icalendar_2.IcalendarType fromIcal​(net.fortuna.ical4j.model.Calendar cal,
                                                                            ietf.params.xml.ns.icalendar_2.BaseComponentType pattern,
                                                                            boolean wrapXprops)
        Parameters:
        cal - an ical4j calendar
        pattern - - allows specification of a subset to be returned.
        Returns:
        icalendar in XML
      • fromIcal

        public static ietf.params.xml.ns.icalendar_2.IcalendarType fromIcal​(net.fortuna.ical4j.model.Calendar cal,
                                                                            ietf.params.xml.ns.icalendar_2.BaseComponentType pattern,
                                                                            boolean doTimezones,
                                                                            boolean wrapXprops)
        Parameters:
        cal - an ical4j calendar
        pattern - - allows specification of a subset to be returned.
        doTimezones - false to skip timezones
        Returns:
        Internal XML representation of iCalendar object
      • toComponent

        public static javax.xml.bind.JAXBElement<? extends ietf.params.xml.ns.icalendar_2.BaseComponentType> toComponent​(net.fortuna.ical4j.model.Component val,
                                                                                                                         ietf.params.xml.ns.icalendar_2.BaseComponentType pattern,
                                                                                                                         boolean wrapXprops)
        Make a BaseComponentType component from an ical4j object. This may produce a VEvent, VTodo or VJournal.
        Parameters:
        val - the component
        pattern - - if non-null limit returned components and values to those supplied in the pattern.
        Returns:
        JAXBElement
      • processProperties

        public static void processProperties​(net.fortuna.ical4j.model.PropertyList icprops,
                                             ietf.params.xml.ns.icalendar_2.BaseComponentType comp,
                                             ietf.params.xml.ns.icalendar_2.BaseComponentType pattern,
                                             boolean wrapXprops)
        Parameters:
        icprops - property list
        comp - xml base component
        pattern - pattern
      • doRecur

        public static ietf.params.xml.ns.icalendar_2.RecurType doRecur​(net.fortuna.ical4j.model.Recur r)
        Build recurring properties from ical recurrence.
        Parameters:
        r - Recur object
        Returns:
        RecurType filled in