package com.onaro.util.jfc.tables.filter; import com.onaro.util.jfc.tables.filter.matcher.FilterMatcher; import com.onaro.util.jfc.tables.filter.matcher.HtmlFilterMatcher; import com.onaro.util.jfc.tables.filter.matcher.NotFilterMatcher; public class HtmlFilterMatcherFactory extends FilterMatcherFactory { @Override protected FilterMatcher createConcreteMatcher(String token) throws FilterException { if (token.startsWith(NOT)) { //remove the minus token = token.substring(1); //remove quotes if needed token = stripQuotesIfNeeded(token); //wrap for not... return new NotFilterMatcher(new HtmlFilterMatcher(token)); } else { //remove quotes if needed token = stripQuotesIfNeeded(token); return new HtmlFilterMatcher(token); } } }