Package org.bedework.convert.xcal
Class Xutil
java.lang.Object
org.bedework.convert.xcal.Xutil
Class to provide utility methods for translating between XML and Bedework
alarm representations
- Author:
- Mike Douglass douglm rpi.edu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static ietf.params.xml.ns.icalendar_2.ObjectFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ietf.params.xml.ns.icalendar_2.BasePropertyTypealtrepProp(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, String val) protected static voidbigintlistFromNumberList(List<BigInteger> l, net.fortuna.ical4j.model.NumberList nl) protected static booleanprotected static ietf.params.xml.ns.icalendar_2.ArrayOfParametersgetAop(ietf.params.xml.ns.icalendar_2.BasePropertyType prop) static ietf.params.xml.ns.icalendar_2.IcalendarTypeinitCalendar(String prodId, int methodType) protected static voidintlistFromNumberList(List<Integer> l, net.fortuna.ical4j.model.NumberList nl) protected static ietf.params.xml.ns.icalendar_2.BasePropertyTypelangProp(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, BwStringBase<?> s) protected static voidlistFromNumberList(List<String> l, net.fortuna.ical4j.model.NumberList nl) protected static ietf.params.xml.ns.icalendar_2.DateDatetimePropertyTypemakeDateDatetime(ietf.params.xml.ns.icalendar_2.DateDatetimePropertyType p, BwDateTime dt, boolean forceUTC) protected static ietf.params.xml.ns.icalendar_2.BasePropertyTypeprotected static ietf.params.xml.ns.icalendar_2.BasePropertyTypeprotected static voidxparam(ietf.params.xml.ns.icalendar_2.BasePropertyType prop, BwXproperty.Xpar xp) Convert a parameterstatic voidxpropertiesToXcal(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)
-
Field Details
-
of
protected static ietf.params.xml.ns.icalendar_2.ObjectFactory of
-
-
Constructor Details
-
Xutil
public Xutil()
-
-
Method Details
-
listFromNumberList
-
intlistFromNumberList
-
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 listxprops- x-propertiespattern- to allow skippingmasterClass- we're buildingwrapXprops- 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 herexp- - a parameter
-
emit
-