public class IsBetweenImpl extends CompareFilterImpl implements PropertyIsBetween
MultiValuedFilter.MatchAction
Modifier and Type | Field and Description |
---|---|
protected MultiValuedFilter.MatchAction |
matchAction |
expression1, expression2
NAME
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 |
IsBetweenImpl(Expression lower,
Expression expression,
Expression upper) |
protected |
IsBetweenImpl(Expression lower,
Expression expression,
Expression upper,
MultiValuedFilter.MatchAction matchAction) |
Modifier and Type | Method and Description |
---|---|
Object |
accept(FilterVisitor visitor,
Object extraData)
Used by FilterVisitors to perform some action on this filter instance.
|
boolean |
equals(Object obj)
Compares this filter to the specified object.
|
boolean |
evaluate(Object feature)
Give an object, this method determines if the test(s) represented by this filter object
are passed.
|
boolean |
evaluateInternal(Object value,
Object lower,
Object upper) |
Expression |
getExpression()
Returns the expression to be compared by this operator.
|
Expression |
getLowerBoundary()
Returns the lower bounds (inclusive) an an expression.
|
MultiValuedFilter.MatchAction |
getMatchAction()
* Flag Controlling MatchAction property When one or more of the operands evaluates to
multiple values rather than a single value, which action should be taken?
|
Expression |
getUpperBoundary()
Returns the upper bounds (inclusive) as an expression.
|
int |
hashCode()
Override of hashCode method.
|
void |
setExpression(Expression expression) |
void |
setLowerBoundary(Expression lowerBoundary) |
void |
setUpperBoundary(Expression upperBoundary) |
String |
toString()
Returns a string representation of this filter.
|
compare, setExpression1, setExpression2
comparable, eval, eval, getExpression1, getExpression2, isMatchingCase
isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter
accepts, eval, eval
protected MultiValuedFilter.MatchAction matchAction
protected IsBetweenImpl(Expression lower, Expression expression, Expression upper, MultiValuedFilter.MatchAction matchAction)
protected IsBetweenImpl(Expression lower, Expression expression, Expression upper)
public Expression getExpression()
PropertyIsBetween
getExpression
in interface PropertyIsBetween
public void setExpression(Expression expression)
public MultiValuedFilter.MatchAction getMatchAction()
MultiValuedFilter
ANY - if any of the possible combinations match, the result is true (aggregated OR) ALL - only if all of the possible combinations match, the result is true (aggregated AND) ONE - only if exactly one of the possible combinations match, the result is true (aggregated XOR)
getMatchAction
in interface MultiValuedFilter
getMatchAction
in class BinaryComparisonAbstract
public boolean evaluate(Object feature)
Filter
This ability is used to allow Queries against both Features and and non spatial data (such as Record) and to express constraints on permissable data values.
public Object accept(FilterVisitor visitor, Object extraData)
CompareFilterImpl
accept
in interface Filter
accept
in class CompareFilterImpl
visitor
- The visitor which requires access to this filter, the method must call
visitor.visit(this);public Expression getLowerBoundary()
PropertyIsBetween
getLowerBoundary
in interface PropertyIsBetween
public void setLowerBoundary(Expression lowerBoundary)
public Expression getUpperBoundary()
PropertyIsBetween
getUpperBoundary
in interface PropertyIsBetween
public void setUpperBoundary(Expression upperBoundary)
public String toString()
CompareFilterImpl
toString
in class CompareFilterImpl
public int hashCode()
CompareFilterImpl
hashCode
in class CompareFilterImpl
public boolean equals(Object obj)
CompareFilterImpl
equals
in class CompareFilterImpl
obj
- - the object to compare this CompareFilter against.Copyright © 1996–2019 Geotools. All rights reserved.