|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFilterAbstract
AbstractFilter
BinaryComparisonAbstract
CompareFilterImpl
BetweenFilterImpl
IsBetweenImpl
public class BetweenFilterImpl
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface MultiValuedFilter |
|---|
MultiValuedFilter.MatchAction |
| Field Summary | |
|---|---|
protected Expression |
middleValue
Deprecated. The 'middle' value, which must be an attribute expression. |
| Fields inherited from class BinaryComparisonAbstract |
|---|
expression1, expression2 |
| Fields inherited from class AbstractFilter |
|---|
filterType, permissiveConstruction |
| Fields inherited from class FilterAbstract |
|---|
factory |
| Fields inherited from interface Filter |
|---|
ALL, NONE |
| Fields inherited from interface Filter |
|---|
EXCLUDE, INCLUDE |
| Fields inherited from interface PropertyIsBetween |
|---|
NAME |
| Constructor Summary | |
|---|---|
protected |
BetweenFilterImpl()
Deprecated. Constructor which flags the operator as between. |
protected |
BetweenFilterImpl(FilterFactory factory)
Deprecated. |
| Method Summary | |
|---|---|
Object |
accept(FilterVisitor visitor,
Object extraData)
Deprecated. Used by FilterVisitors to perform some action on this filter instance. |
void |
addMiddleValue(Expression middleValue)
Deprecated. use setExpression(org.opengis.filter.expression.Expression) |
boolean |
equals(Object oFilter)
Deprecated. Returns true if the passed in object is the same as this filter. |
boolean |
evaluate(Object feature)
Deprecated. Determines whether or not a given feature is 'inside' this filter. |
Expression |
getExpression()
Deprecated. Gets the middle value of the between. |
Expression |
getLowerBoundary()
Deprecated. Returns the left,lower, or first expression. |
Expression |
getMiddleValue()
Deprecated. use getExpression() |
Expression |
getUpperBoundary()
Deprecated. Returns the right,upper, or second expression. |
int |
hashCode()
Deprecated. Override of hashCode method. |
void |
setExpression(Expression expression)
Deprecated. Sets the expression or middle value. |
void |
setLowerBoundary(Expression lowerBounds)
Deprecated. Sets the left,lower, or first expression. |
void |
setUpperBoundary(Expression upperBounds)
Deprecated. Sets the right,upper, or second expression. |
String |
toString()
Deprecated. Returns a string representation of this filter. |
| Methods inherited from class CompareFilterImpl |
|---|
addLeftValue, addRightValue, compare, evaluate, getLeftValue, getRightValue, setExpression1, setExpression2 |
| Methods inherited from class BinaryComparisonAbstract |
|---|
and, comparable, eval, eval, getExpression1, getExpression2, getMatchAction, isMatchingCase, not, or |
| Methods inherited from class AbstractFilter |
|---|
accept, contains, getFilterType, isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter |
| Methods inherited from class FilterAbstract |
|---|
accepts, eval, eval, eval |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface BetweenFilter |
|---|
contains, getExpression1, getExpression2, setExpression1, setExpression2 |
| Methods inherited from interface CompareFilter |
|---|
addLeftValue, addRightValue, getLeftValue, getRightValue |
| Methods inherited from interface Filter |
|---|
accept, and, evaluate, getFilterType, not, or |
| Methods inherited from interface BinaryComparisonOperator |
|---|
isMatchingCase |
| Methods inherited from interface MultiValuedFilter |
|---|
getMatchAction |
| Field Detail |
|---|
protected Expression middleValue
| Constructor Detail |
|---|
protected BetweenFilterImpl(FilterFactory factory)
protected BetweenFilterImpl()
throws IllegalFilterException
IllegalFilterException - Should never happen.| Method Detail |
|---|
public final void addMiddleValue(Expression middleValue)
setExpression(org.opengis.filter.expression.Expression)
addMiddleValue in interface BetweenFiltermiddleValue - The expression to be compared.public void setExpression(Expression expression)
public final Expression getMiddleValue()
getExpression()
getMiddleValue in interface BetweenFilterpublic Expression getExpression()
getExpression in interface PropertyIsBetweenpublic Expression getLowerBoundary()
getLowerBoundary in interface PropertyIsBetweenpublic void setLowerBoundary(Expression lowerBounds)
public Expression getUpperBoundary()
getUpperBoundary in interface PropertyIsBetweenpublic void setUpperBoundary(Expression upperBounds)
public boolean evaluate(Object feature)
evaluate in interface Filterfeature - Specified feature to examine.
public String toString()
toString in class CompareFilterImplpublic boolean equals(Object oFilter)
equals in class CompareFilterImploFilter - the filter to test for eqaulity.
public int hashCode()
hashCode in class CompareFilterImpl
public Object accept(FilterVisitor visitor,
Object extraData)
accept in interface Filteraccept in class CompareFilterImplvisitor - The visitor which requires access to this filter, the
method must call visitor.visit(this);
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||