@Test public void testColorLiteral() throws Exception { FilterFactory ff = CommonFactoryFinder.getFilterFactory(); PropertyIsEqualTo filter = ff.equal(ff.property("color"), ff.literal(Color.RED), false); FilterToCQL toCQL = new FilterToCQL(); StringBuilder cql = (StringBuilder) toCQL.visit(filter, null); Assert.assertEquals("color = '#FF0000'", cql.toString()); }
public Object visit(ExcludeFilter filter, Object extraData) { return FilterToTextUtil.buildExclude(extraData); }
FilterToCQL implements FilterVisitor { public Object visit(ExcludeFilter filter, Object extraData) { return FilterToTextUtil.buildExclude(extraData); } }
FilterToCQL implements FilterVisitor { public Object visit(ExcludeFilter filter, Object extraData) { return FilterToTextUtil.buildExclude(extraData); }  }
FilterToCQL implements FilterVisitor { public Object visit(ExcludeFilter filter, Object extraData) { return FilterToTextUtil.buildExclude(extraData); }  Object visit(ExcludeFilter filter, Object extraData); Object visit(IncludeFilter filter, Object extraData); Object visit(And filter, Object extraData); Object visit(Id filter, Object extraData); Object visit(Not filter, Object extraData); Object visit(Or filter, Object extraData); Object visit(PropertyIsBetween filter, Object extraData); Object visit(PropertyIsEqualTo filter, Object extraData); Object visit(PropertyIsNotEqualTo filter, Object extraData); Object visit(PropertyIsGreaterThan filter, Object extraData); Object visit(PropertyIsGreaterThanOrEqualTo filter, Object extraData); Object visit(PropertyIsLessThan filter, Object extraData); Object visit(PropertyIsLessThanOrEqualTo filter, Object extraData); Object visit(PropertyIsLike filter, Object extraData); Object visit(PropertyIsNull filter, Object extraData); Object visit(PropertyIsNil filter, Object extraData); Object visit(BBOX filter, Object extraData); Object visit(Beyond filter, Object extraData); Object visit(Contains filter, Object extraData); Object visit(Crosses filter, Object extraData); Object visit(Disjoint filter, Object extraData); Object visit(DWithin filter, Object extraData); Object visit(Equals filter, Object extraData); Object visit(Intersects filter, Object extraData); Object visit(Overlaps filter, Object extraData); Object visit(Touches filter, Object extraData); Object visit(Within filter, Object extraData); Object visitNullFilter(Object extraData); Object visit(After after, Object extraData); Object visit(Before before, Object extraData); Object visit(During during, Object extraData); Object visit(AnyInteracts anyInteracts, Object extraData); Object visit(Begins begins, Object extraData); Object visit(BegunBy begunBy, Object extraData); Object visit(EndedBy endedBy, Object extraData); Object visit(Ends ends, Object extraData); Object visit(Meets meets, Object extraData); Object visit(MetBy metBy, Object extraData); Object visit(OverlappedBy overlappedBy, Object extraData); Object visit(TContains contains, Object extraData); Object visit(TEquals equals, Object extraData); Object visit(TOverlaps contains, Object extraData); }
FilterToCQL implements FilterVisitor { public Object visit(ExcludeFilter filter, Object extraData) { return FilterToTextUtil.buildExclude(extraData); }  Object visit(ExcludeFilter filter, Object extraData); Object visit(IncludeFilter filter, Object extraData); Object visit(And filter, Object extraData); Object visit(Id filter, Object extraData); Object visit(Not filter, Object extraData); Object visit(Or filter, Object extraData); Object visit(PropertyIsBetween filter, Object extraData); Object visit(PropertyIsEqualTo filter, Object extraData); Object visit(PropertyIsNotEqualTo filter, Object extraData); Object visit(PropertyIsGreaterThan filter, Object extraData); Object visit(PropertyIsGreaterThanOrEqualTo filter, Object extraData); Object visit(PropertyIsLessThan filter, Object extraData); Object visit(PropertyIsLessThanOrEqualTo filter, Object extraData); Object visit(PropertyIsLike filter, Object extraData); Object visit(PropertyIsNull filter, Object extraData); Object visit(PropertyIsNil filter, Object extraData); Object visit(BBOX filter, Object extraData); Object visit(Beyond filter, Object extraData); Object visit(Contains filter, Object extraData); Object visit(Crosses filter, Object extraData); Object visit(Disjoint filter, Object extraData); Object visit(DWithin filter, Object extraData); Object visit(Equals filter, Object extraData); Object visit(Intersects filter, Object extraData); Object visit(Overlaps filter, Object extraData); Object visit(Touches filter, Object extraData); Object visit(Within filter, Object extraData); Object visitNullFilter(Object extraData); Object visit(After after, Object extraData); Object visit(Before before, Object extraData); Object visit(During during, Object extraData); Object visit(AnyInteracts anyInteracts, Object extraData); Object visit(Begins begins, Object extraData); Object visit(BegunBy begunBy, Object extraData); Object visit(EndedBy endedBy, Object extraData); Object visit(Ends ends, Object extraData); Object visit(Meets meets, Object extraData); Object visit(MetBy metBy, Object extraData); Object visit(OverlappedBy overlappedBy, Object extraData); Object visit(TContains contains, Object extraData); Object visit(TEquals equals, Object extraData); Object visit(TOverlaps contains, Object extraData);  }