Search in sources :

Example 1 with Parameter

use of net.fortuna.ical4j.model.Parameter in project zm-mailbox by Zimbra.

the class IcalUtil method addProperty.

public static void addProperty(ContentHandler icalOutput, Property icalProp) throws ParserException, URISyntaxException, IOException, ParseException {
    if (icalProp == null) {
        return;
    }
    icalOutput.startProperty(icalProp.getName());
    icalOutput.propertyValue(icalProp.getValue());
    ParameterList plist = icalProp.getParameters();
    if (plist != null) {
        for (Iterator<?> it = plist.iterator(); it.hasNext(); ) {
            Object currObj = it.next();
            if (currObj instanceof Parameter) {
                Parameter parameter = (Parameter) currObj;
                icalOutput.parameter(parameter.getName(), parameter.getValue());
            }
        }
    }
    icalOutput.endProperty(icalProp.getName());
}
Also used : ParameterList(net.fortuna.ical4j.model.ParameterList) Parameter(net.fortuna.ical4j.model.Parameter)

Aggregations

Parameter (net.fortuna.ical4j.model.Parameter)1 ParameterList (net.fortuna.ical4j.model.ParameterList)1