|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a comparison filter (can be a math comparison or generic equals). This filter implements a comparison - of some sort - between two expressions. The comparison may be a math comparison or a generic equals comparison. If it is a math comparison, only math expressions are allowed; if it is an equals comparison, any expression types are allowed. Note that this comparison does not attempt to restrict its expressions to be meaningful. This means that it considers itself a valid filter as long as the expression comparison returns a valid result. It does no checking to see whether or not the expression comparison is meaningful with regard to checking feature attributes. In other words, this is a valid filter: 52 = 92, even though it will always return the same result and could be simplified away. It is up the the filter creator, therefore, to attempt to simplify/make meaningful filter logic.
Field Summary |
Fields inherited from interface org.geotools.filter.Filter |
ALL, NONE |
Fields inherited from interface org.geotools.filter.FilterType |
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, NULL |
Method Summary | |
void |
addLeftValue(Expression leftValue)
Deprecated. use BinaryComparisonOperator.setExpression1(Expression) |
void |
addRightValue(Expression rightValue)
Deprecated. use BinaryComparisonOperator.setExpression2(Expression) |
boolean |
contains(Feature feature)
Deprecated. use org.opengis.filter.Filter#evaluate(Feature) |
Expression |
getLeftValue()
Deprecated. use BinaryComparisonOperator.getExpression1() |
Expression |
getRightValue()
Deprecated. use BinaryComparisonOperator.getExpression2() |
Methods inherited from interface org.geotools.filter.Filter |
accept, and, evaluate, getFilterType, not, or |
Methods inherited from interface org.opengis.filter.Filter |
accept, evaluate |
Methods inherited from interface org.opengis.filter.BinaryComparisonOperator |
getExpression1, getExpression2, setExpression1, setExpression2 |
Method Detail |
public void addLeftValue(Expression leftValue) throws IllegalFilterException
BinaryComparisonOperator.setExpression1(Expression)
leftValue
- Expression for 'left' value.
IllegalFilterException
- Filter is not internally consistent.public void addRightValue(Expression rightValue) throws IllegalFilterException
BinaryComparisonOperator.setExpression2(Expression)
rightValue
- Expression for 'right' value.
IllegalFilterException
- Filter is not internally consistent.public Expression getLeftValue()
BinaryComparisonOperator.getExpression1()
public Expression getRightValue()
BinaryComparisonOperator.getExpression2()
public boolean contains(Feature feature)
org.opengis.filter.Filter#evaluate(Feature)
contains
in interface Filter
feature
- Specified feature to examine.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |