|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a 'between' filter (which is a specialized compare filter). A between filter is just shorthand for a less-than-or-equal filter ANDed with a greater-than-or-equal filter. Arguably, this would be better handled using those constructs, but the OGC filter specification creates its own object for this, so we do as well. An important note here is that a between filter is actually a math filter, so its outer (left and right) expressions must be math expressions. This is enforced by the FilterAbstract class, which considers a BETWEEN operator to be a math filter.
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 |
addMiddleValue(Expression middleValue)
Deprecated. use PropertyIsBetween.setExpression(Expression) |
boolean |
contains(Feature feature)
Deprecated. use org.opengis.filter.Filter#evaluate(Feature) |
org.opengis.filter.expression.Expression |
getExpression1()
Deprecated. use PropertyIsBetween.getLowerBoundary() |
org.opengis.filter.expression.Expression |
getExpression2()
Deprecated. use PropertyIsBetween.getUpperBoundary()() |
Expression |
getMiddleValue()
Deprecated. use PropertyIsBetween.getExpression() |
void |
setExpression1(org.opengis.filter.expression.Expression expression)
Deprecated. use PropertyIsBetween.setLowerBoundary(Expression)() |
void |
setExpression2(org.opengis.filter.expression.Expression expression)
Deprecated. use PropertyIsBetween.setUpperBoundary(Expression)() |
Methods inherited from interface org.geotools.filter.CompareFilter |
addLeftValue, addRightValue, getLeftValue, getRightValue |
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.PropertyIsBetween |
getExpression, getLowerBoundary, getUpperBoundary, setExpression, setLowerBoundary, setUpperBoundary |
Method Detail |
public boolean contains(Feature feature)
org.opengis.filter.Filter#evaluate(Feature)
contains
in interface CompareFilter
feature
- Specified feature to examine.
public org.opengis.filter.expression.Expression getExpression1()
PropertyIsBetween.getLowerBoundary()
getExpression1
in interface org.opengis.filter.BinaryComparisonOperator
public org.opengis.filter.expression.Expression getExpression2()
PropertyIsBetween.getUpperBoundary()()
getExpression2
in interface org.opengis.filter.BinaryComparisonOperator
public void setExpression1(org.opengis.filter.expression.Expression expression)
PropertyIsBetween.setLowerBoundary(Expression)()
setExpression1
in interface org.opengis.filter.BinaryComparisonOperator
public void setExpression2(org.opengis.filter.expression.Expression expression)
PropertyIsBetween.setUpperBoundary(Expression)()
setExpression2
in interface org.opengis.filter.BinaryComparisonOperator
public Expression getMiddleValue()
PropertyIsBetween.getExpression()
public void addMiddleValue(Expression middleValue)
PropertyIsBetween.setExpression(Expression)
middleValue
- The expression to be compared.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |