public abstract class CompareFilterImpl extends BinaryComparisonAbstract
MultiValuedFilter.MatchAction
expression1, expression2
ALL, BETWEEN, COMPARE_EQUALS, COMPARE_GREATER_THAN, COMPARE_GREATER_THAN_EQUAL, COMPARE_LESS_THAN, COMPARE_LESS_THAN_EQUAL, COMPARE_NOT_EQUALS, FID, GEOMETRY_BBOX, GEOMETRY_BEYOND, GEOMETRY_CONTAINS, GEOMETRY_CROSSES, GEOMETRY_DISJOINT, GEOMETRY_DWITHIN, GEOMETRY_EQUALS, GEOMETRY_INTERSECTS, GEOMETRY_OVERLAPS, GEOMETRY_TOUCHES, GEOMETRY_WITHIN, LIKE, LOGIC_AND, LOGIC_NOT, LOGIC_OR, NONE, NULL
Modifier | Constructor and Description |
---|---|
protected |
CompareFilterImpl()
Deprecated.
use
#CompareFilterImpl(org.opengis.filter.FilterFactory,
org.opengis.filter.expression.Expression, org.opengis.filter.expression.Expression) |
protected |
CompareFilterImpl(Expression e1,
Expression e2) |
protected |
CompareFilterImpl(Expression e1,
Expression e2,
boolean matchCase) |
Modifier and Type | Method and Description |
---|---|
abstract Object |
accept(FilterVisitor visitor,
Object extraData)
Used by FilterVisitors to perform some action on this filter instance.
|
protected int |
compare(Comparable leftObj,
Comparable rightObj)
Subclass convenience method which compares to instances of comparables in a pretty lax way,
converting types among String, Number, Double when appropriate.
|
boolean |
equals(Object obj)
Compares this filter to the specified object.
|
int |
hashCode()
Override of hashCode method.
|
void |
setExpression1(Expression leftValue) |
void |
setExpression2(Expression rightValue) |
String |
toString()
Returns a string representation of this filter.
|
comparable, eval, eval, getExpression1, getExpression2, getMatchAction, isMatchingCase
isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter
accepts, eval, eval
protected CompareFilterImpl() throws IllegalFilterException
#CompareFilterImpl(org.opengis.filter.FilterFactory,
org.opengis.filter.expression.Expression, org.opengis.filter.expression.Expression)
filterType
- The type of comparison.IllegalFilterException
- Non-compare type.protected CompareFilterImpl(Expression e1, Expression e2)
protected CompareFilterImpl(Expression e1, Expression e2, boolean matchCase)
public void setExpression1(Expression leftValue)
setExpression1
in class BinaryComparisonAbstract
public void setExpression2(Expression rightValue)
setExpression2
in class BinaryComparisonAbstract
protected int compare(Comparable leftObj, Comparable rightObj)
Comparable.compareTo(java.lang.Object)
.public String toString()
public boolean equals(Object obj)
public int hashCode()
public abstract Object accept(FilterVisitor visitor, Object extraData)
visitor
- The visitor which requires access to this filter, the method must call
visitor.visit(this);Copyright © 1996–2019 Geotools. All rights reserved.