Search in sources :

Example 6 with BwStringBase

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

the class FilterFieldRule method field.

public void field(String name) throws Exception {
    BwStringBase str = null;
    if (top() instanceof BwStringBase) {
        str = (BwStringBase) pop();
    }
    BwFilterDef f = (BwFilterDef) top();
    if (name.equals("name")) {
        f.setName(stringFld());
    } else if (name.equals("definition")) {
        f.setDefinition(stringFld());
    } else if (name.equals("description")) {
        f.addDescription((BwLongString) str);
    } else if (name.equals("displayName")) {
        f.addDisplayName((BwString) str);
    } else if (name.equals("descriptions")) {
    // Nothing to do.
    } else if (name.equals("displayNames")) {
    // Nothing to do.
    }
}
Also used : BwStringBase(org.bedework.calfacade.base.BwStringBase) BwFilterDef(org.bedework.calfacade.BwFilterDef) BwString(org.bedework.calfacade.BwString)

Aggregations

BwStringBase (org.bedework.calfacade.base.BwStringBase)6 BwString (org.bedework.calfacade.BwString)4 CalFacadeException (org.bedework.calfacade.exc.CalFacadeException)4 Period (net.fortuna.ical4j.model.Period)2 BwAttachment (org.bedework.calfacade.BwAttachment)2 BwAttendee (org.bedework.calfacade.BwAttendee)2 BwCategory (org.bedework.calfacade.BwCategory)2 BwContact (org.bedework.calfacade.BwContact)2 BwDateTime (org.bedework.calfacade.BwDateTime)2 BwFreeBusyComponent (org.bedework.calfacade.BwFreeBusyComponent)2 BwGeo (org.bedework.calfacade.BwGeo)2 BwLocation (org.bedework.calfacade.BwLocation)2 BwOrganizer (org.bedework.calfacade.BwOrganizer)2 BwRelatedTo (org.bedework.calfacade.BwRelatedTo)2 IndexException (org.bedework.util.indexing.IndexException)2 ArrayOfParameters (ietf.params.xml.ns.icalendar_2.ArrayOfParameters)1 ArrayOfProperties (ietf.params.xml.ns.icalendar_2.ArrayOfProperties)1 BaseComponentType (ietf.params.xml.ns.icalendar_2.BaseComponentType)1 BasePropertyType (ietf.params.xml.ns.icalendar_2.BasePropertyType)1 CategoriesPropType (ietf.params.xml.ns.icalendar_2.CategoriesPropType)1