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.
}
}
Aggregations