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());
}
Aggregations