Package org.bedework.convert.xcal
Class XmlTranslator
java.lang.Object
org.bedework.convert.IcalTranslator
org.bedework.convert.xcal.XmlTranslator
- All Implemented Interfaces:
Serializable,org.bedework.util.logging.Logged
User: mike Date: 5/7/20 Time: 22:43
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.convert.IcalTranslator
IcalTranslator.Pars -
Field Summary
Fields inherited from class org.bedework.convert.IcalTranslator
cb, pars -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionietf.params.xml.ns.icalendar_2.IcalendarTypetoXMLIcalendar(EventInfo val, int methodType, ietf.params.xml.ns.icalendar_2.IcalendarType pattern, boolean wrapXprops) voidwriteXmlCalendar(Collection<EventInfo> vals, int methodType, org.bedework.util.xml.XmlEmit xml) Write a collection of calendar data as xmlMethods inherited from class org.bedework.convert.IcalTranslator
addIcalTimezones, addOverride, freebusyToIcalString, fromIcal, fromIcal, fromIcal, getLogger, getMethod, setSystemProperties, toIcal, toIcal, tzFromTzdefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
XmlTranslator
Constructor:- Parameters:
cb- IcalCallback object for retrieval of entities
-
-
Method Details
-
toXMLIcalendar
public ietf.params.xml.ns.icalendar_2.IcalendarType toXMLIcalendar(EventInfo val, int methodType, ietf.params.xml.ns.icalendar_2.IcalendarType pattern, boolean wrapXprops) throws CalFacadeException - Parameters:
val- eventmethodType- icalendar methodpattern- to control output- Returns:
- XML IcalendarType
- Throws:
CalFacadeException- on fatal error
-
writeXmlCalendar
public void writeXmlCalendar(Collection<EventInfo> vals, int methodType, org.bedework.util.xml.XmlEmit xml) throws CalFacadeException Write a collection of calendar data as xml- Parameters:
vals- collection of calendar datamethodType- int value fromIcalendarxml- for output- Throws:
CalFacadeException- on fatal error
-