Class Xutil

java.lang.Object
org.bedework.convert.xcal.Xutil
Direct Known Subclasses:
ToXEvent, Xalarms

public class Xutil extends Object
Class to provide utility methods for translating between XML and Bedework alarm representations
Author:
Mike Douglass douglm rpi.edu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static ietf.params.xml.ns.icalendar_2.ObjectFactory
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static ietf.params.xml.ns.icalendar_2.BasePropertyType
    altrepProp(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, String val)
     
    protected static void
    bigintlistFromNumberList(List<BigInteger> l, net.fortuna.ical4j.model.NumberList nl)
     
    protected static boolean
    emit(ietf.params.xml.ns.icalendar_2.BaseComponentType pattern, Class<?> compCl, Class<?>... cl)
     
    protected static ietf.params.xml.ns.icalendar_2.ArrayOfParameters
    getAop(ietf.params.xml.ns.icalendar_2.BasePropertyType prop)
     
    static ietf.params.xml.ns.icalendar_2.IcalendarType
    initCalendar(String prodId, int methodType)
     
    protected static void
    intlistFromNumberList(List<Integer> l, net.fortuna.ical4j.model.NumberList nl)
     
    protected static ietf.params.xml.ns.icalendar_2.BasePropertyType
    langProp(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, BwStringBase<?> s)
     
    protected static void
    listFromNumberList(List<String> l, net.fortuna.ical4j.model.NumberList nl)
     
    protected static ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType
    makeDateDatetime(ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType p, BwDateTime dt, boolean forceUTC)
     
    protected static ietf.params.xml.ns.icalendar_2.BasePropertyType
    tzidProp(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, String val)
     
    protected static ietf.params.xml.ns.icalendar_2.BasePropertyType
    uidProp(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, String uid)
     
    protected static void
    xparam(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, BwXproperty.Xpar xp)
    Convert a parameter
    static void
    xpropertiesToXcal(List<javax.xml.bind.JAXBElement<? extends ietf.params.xml.ns.icalendar_2.BasePropertyType>> pl, List<BwXproperty> xprops, ietf.params.xml.ns.icalendar_2.BaseComponentType pattern, Class<?> masterClass, boolean wrapXprops)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • of

      protected static ietf.params.xml.ns.icalendar_2.ObjectFactory of
  • Constructor Details

    • Xutil

      public Xutil()
  • Method Details

    • listFromNumberList

      protected static void listFromNumberList(List<String> l, net.fortuna.ical4j.model.NumberList nl)
    • intlistFromNumberList

      protected static void intlistFromNumberList(List<Integer> l, net.fortuna.ical4j.model.NumberList nl)
    • bigintlistFromNumberList

      protected static void bigintlistFromNumberList(List<BigInteger> l, net.fortuna.ical4j.model.NumberList nl)
    • tzidProp

      protected static ietf.params.xml.ns.icalendar_2.BasePropertyType tzidProp(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, String val)
    • altrepProp

      protected static ietf.params.xml.ns.icalendar_2.BasePropertyType altrepProp(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, String val)
    • uidProp

      protected static ietf.params.xml.ns.icalendar_2.BasePropertyType uidProp(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, String uid)
    • langProp

      protected static ietf.params.xml.ns.icalendar_2.BasePropertyType langProp(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, BwStringBase<?> s)
    • getAop

      protected static ietf.params.xml.ns.icalendar_2.ArrayOfParameters getAop(ietf.params.xml.ns.icalendar_2.BasePropertyType prop)
    • makeDateDatetime

      protected static ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType makeDateDatetime(ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType p, BwDateTime dt, boolean forceUTC)
    • initCalendar

      public static ietf.params.xml.ns.icalendar_2.IcalendarType initCalendar(String prodId, int methodType)
    • xpropertiesToXcal

      public static void xpropertiesToXcal(List<javax.xml.bind.JAXBElement<? extends ietf.params.xml.ns.icalendar_2.BasePropertyType>> pl, List<BwXproperty> xprops, ietf.params.xml.ns.icalendar_2.BaseComponentType pattern, Class<?> masterClass, boolean wrapXprops)
      Parameters:
      pl - properties list
      xprops - x-properties
      pattern - to allow skipping
      masterClass - we're building
      wrapXprops - wrap x-properties in bedework object - allows us to push them through soap
    • xparam

      protected static void xparam(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, BwXproperty.Xpar xp)
      Convert a parameter
      Parameters:
      prop - - parameters go here
      xp - - a parameter
    • emit

      protected static boolean emit(ietf.params.xml.ns.icalendar_2.BaseComponentType pattern, Class<?> compCl, Class<?>... cl)