Package org.bedework.convert.xcal
Class Xalarms
java.lang.Object
org.bedework.convert.xcal.Xutil
org.bedework.convert.xcal.Xalarms
Class to provide utility methods for translating between XML and Bedework
alarm representations
- Author:
- Mike Douglass douglm rpi.edu
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BwAlarmtoBwAlarm(ietf.params.xml.ns.icalendar_2.ValarmType alarm, boolean validate) The generated alarm may not be a valid alarm if it is being used as a selector.static ietf.params.xml.ns.icalendar_2.ValarmTypetoXAlarm(BwEvent ev, BwAlarm val, ietf.params.xml.ns.icalendar_2.BaseComponentType pattern, Class<?> masterClass) Methods inherited from class org.bedework.convert.xcal.Xutil
altrepProp, bigintlistFromNumberList, emit, getAop, initCalendar, intlistFromNumberList, langProp, listFromNumberList, makeDateDatetime, tzidProp, uidProp, xparam, xpropertiesToXcal
-
Constructor Details
-
Xalarms
public Xalarms()
-
-
Method Details
-
toXAlarm
public static ietf.params.xml.ns.icalendar_2.ValarmType toXAlarm(BwEvent ev, BwAlarm val, ietf.params.xml.ns.icalendar_2.BaseComponentType pattern, Class<?> masterClass) - Parameters:
ev- eventval- alarmpattern- - if non-null limit returned components and values to those supplied in the pattern.masterClass- we're building- Returns:
- ValarmType
-
toBwAlarm
public static BwAlarm toBwAlarm(ietf.params.xml.ns.icalendar_2.ValarmType alarm, boolean validate) throws CalFacadeException The generated alarm may not be a valid alarm if it is being used as a selector. It must have at least the action as a selector.- Parameters:
alarm-validate- - true if alarm must be valid and complete- Returns:
- ValarmType
- Throws:
CalFacadeException
-