| org.geotools.filter.BetweenFilter
All known Subclasses: org.geotools.filter.BetweenFilterImpl, org.geotools.filter.IsBetweenImpl,
BetweenFilter | public interface BetweenFilter extends CompareFilter,PropertyIsBetween(Code) | | 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.
author: Rob Hranac, TOPP version: $Id: BetweenFilter.java 22294 2006-10-20 00:55:40Z desruisseaux $org.opengis.filter.PropertyIsBetween |
Method Summary | |
void | addMiddleValue(Expression middleValue) Sets the values to be compared as between the left and right values. | boolean | contains(Feature feature) Determines whether or not a given feature is 'inside' this filter.
Parameters: feature - Specified feature to examine. | org.opengis.filter.expression.Expression | getExpression1() | org.opengis.filter.expression.Expression | getExpression2() | Expression | getMiddleValue() Gets the middle value of the between. | void | setExpression1(org.opengis.filter.expression.Expression expression) | void | setExpression2(org.opengis.filter.expression.Expression expression) |
addMiddleValue | void addMiddleValue(Expression middleValue)(Code) | | Sets the values to be compared as between the left and right values.
Parameters: middleValue - The expression to be compared.PropertyIsBetween.setExpression(Expression) |
contains | boolean contains(Feature feature)(Code) | | Determines whether or not a given feature is 'inside' this filter.
Parameters: feature - Specified feature to examine. Whether or not this feature is inside the filter.org.opengis.filter.Filter.evaluate(Feature) |
getExpression1 | org.opengis.filter.expression.Expression getExpression1()(Code) | | PropertyIsBetween.getLowerBoundary |
getExpression2 | org.opengis.filter.expression.Expression getExpression2()(Code) | | PropertyIsBetween#getUpperBoundary()() |
getMiddleValue | Expression getMiddleValue()(Code) | | Gets the middle value of the between. Should generally be an
AttributeExpression: 1 <= area <= 200 makes sense,
1 <= 200 <= area should just use a less-than-or-equal filter.
the expression in the middle.PropertyIsBetween.getExpression |
setExpression1 | void setExpression1(org.opengis.filter.expression.Expression expression)(Code) | | PropertyIsBetween#setLowerBoundary(Expression)() |
setExpression2 | void setExpression2(org.opengis.filter.expression.Expression expression)(Code) | | PropertyIsBetween#setUpperBoundary(Expression)() |
|
|