Search in sources :

Example 11 with ArrayOfParameters

use of ietf.params.xml.ns.icalendar_2.ArrayOfParameters in project bw-calendar-engine by Bedework.

the class Xutil method xparam.

/**
 * Convert a parameter
 * @param prop - parameters go here
 * @param xp - a parameter
 * @throws Throwable
 */
protected static void xparam(final BasePropertyType prop, final Xpar xp) throws Throwable {
    ArrayOfParameters aop = prop.getParameters();
    if (aop == null) {
        aop = new ArrayOfParameters();
        prop.setParameters(aop);
    }
    if (xp.getName().equalsIgnoreCase("tzid")) {
        final TzidParamType tz = new TzidParamType();
        tz.setText(xp.getValue());
        aop.getBaseParameter().add(of.createTzid(tz));
        return;
    }
}
Also used : ArrayOfParameters(ietf.params.xml.ns.icalendar_2.ArrayOfParameters) TzidParamType(ietf.params.xml.ns.icalendar_2.TzidParamType)

Aggregations

ArrayOfParameters (ietf.params.xml.ns.icalendar_2.ArrayOfParameters)11 LanguageParamType (ietf.params.xml.ns.icalendar_2.LanguageParamType)3 BwString (org.bedework.calfacade.BwString)3 ArrayOfProperties (ietf.params.xml.ns.icalendar_2.ArrayOfProperties)2 BasePropertyType (ietf.params.xml.ns.icalendar_2.BasePropertyType)2 CnParamType (ietf.params.xml.ns.icalendar_2.CnParamType)2 DescriptionPropType (ietf.params.xml.ns.icalendar_2.DescriptionPropType)2 DirParamType (ietf.params.xml.ns.icalendar_2.DirParamType)2 DurationPropType (ietf.params.xml.ns.icalendar_2.DurationPropType)2 ScheduleStatusParamType (ietf.params.xml.ns.icalendar_2.ScheduleStatusParamType)2 SentByParamType (ietf.params.xml.ns.icalendar_2.SentByParamType)2 ActionPropType (ietf.params.xml.ns.icalendar_2.ActionPropType)1 AltrepParamType (ietf.params.xml.ns.icalendar_2.AltrepParamType)1 AttachPropType (ietf.params.xml.ns.icalendar_2.AttachPropType)1 AttendeePropType (ietf.params.xml.ns.icalendar_2.AttendeePropType)1 BaseComponentType (ietf.params.xml.ns.icalendar_2.BaseComponentType)1 CategoriesPropType (ietf.params.xml.ns.icalendar_2.CategoriesPropType)1 ClassPropType (ietf.params.xml.ns.icalendar_2.ClassPropType)1 CommentPropType (ietf.params.xml.ns.icalendar_2.CommentPropType)1 CompletedPropType (ietf.params.xml.ns.icalendar_2.CompletedPropType)1