use of org.bedework.calfacade.base.AbbreviatedValue in project bw-calendar-engine by Bedework.
the class IcalUtil method getAbbrevVal.
/**
* @param p
* @return AbbreviatedValue
*/
public static AbbreviatedValue getAbbrevVal(final Property p) {
ParameterList pars = p.getParameters();
ParameterList abbrevPars = pars.getParameters(Parameter.ABBREV);
Collection<String> abbrevs = new ArrayList<String>();
Iterator it = abbrevPars.iterator();
while (it.hasNext()) {
Parameter par = (Parameter) it.next();
abbrevs.add(par.getValue());
}
return new AbbreviatedValue(abbrevs, p.getValue());
}
Aggregations