Search in sources :

Example 1 with TypedUrl

use of org.bedework.calfacade.base.TypedUrl in project bw-calendar-engine by Bedework.

the class IcalUtil method getTypedUrl.

/**
 * @param p
 * @return TypedUrl
 */
public static TypedUrl getTypedUrl(final Property p) {
    TypedUrl tu = new TypedUrl();
    ParameterList pars = p.getParameters();
    Parameter par = pars.getParameter(Parameter.TYPE);
    if (par != null) {
        tu.setType(par.getValue());
    }
    tu.setValue(p.getValue());
    return tu;
}
Also used : TypedUrl(org.bedework.calfacade.base.TypedUrl) 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 TypedUrl (org.bedework.calfacade.base.TypedUrl)1