package com.onaro.util.jfc.tables.filter; import com.onaro.util.jfc.tables.filter.matcher.*; public class StringFilterMatcherFactory extends FilterMatcherFactory{ 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 StringFilterMatcher(token)); } else { //remove quotes if needed token = stripQuotesIfNeeded(token); return new StringFilterMatcher(token); } } }