switch (filterType) {
case FilterType.GEOMETRY_BEYOND:
curFilter = new BeyondImpl(null, null);
break;
case FilterType.GEOMETRY_DWITHIN:
curFilter = new DWithinImpl(null, null);
break;
default:
throw new IllegalFilterException("Not one of the accepted spatial filter types.");
}
} else if (AbstractFilter.isGeometryFilter(filterType)) {
switch (filterType) {
case FilterType.GEOMETRY_EQUALS:
curFilter = new EqualsImpl(null, null);
break;
case FilterType.GEOMETRY_DISJOINT:
curFilter = new DisjointImpl(null, null);
break;
case FilterType.GEOMETRY_DWITHIN:
curFilter = new DWithinImpl(null, null);
break;
case FilterType.GEOMETRY_INTERSECTS:
curFilter = new IntersectsImpl(null, null);
break;
case FilterType.GEOMETRY_CROSSES: