|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFilterAbstract
AbstractFilter
BinaryComparisonAbstract
public abstract class BinaryComparisonAbstract
Abstract implemention for binary filters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface MultiValuedFilter |
---|
MultiValuedFilter.MatchAction |
Field Summary | |
---|---|
protected Expression |
expression1
|
protected Expression |
expression2
|
Fields inherited from class AbstractFilter |
---|
filterType, LOGGER, permissiveConstruction |
Fields inherited from class FilterAbstract |
---|
factory |
Fields inherited from interface Filter |
---|
EXCLUDE, INCLUDE |
Fields inherited from interface Filter |
---|
ALL, NONE |
Constructor Summary | |
---|---|
protected |
BinaryComparisonAbstract(FilterFactory factory)
|
protected |
BinaryComparisonAbstract(FilterFactory factory,
Expression expression1,
Expression expression2)
|
protected |
BinaryComparisonAbstract(FilterFactory factory,
Expression expression1,
Expression expression2,
boolean matchingCase)
|
Method Summary | |
---|---|
Filter |
and(Filter filter)
Implements a logical AND with this filter and returns the merged filter. |
protected Comparable |
comparable(Object value)
Wraps an object in a Comparable. |
protected Object[] |
eval(Object object)
Convenience method which evaluates the expressions and trys to align the values to be of the same type. |
protected Object[] |
eval(Object v1,
Object v2)
Convenience method which evaluates the expressions and trys to align the values to be of the same type. |
Expression |
getExpression1()
Returns the first of the two expressions to be compared by this operator. |
Expression |
getExpression2()
Returns the second of the two expressions to be compared by this operator. |
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? |
boolean |
isMatchingCase()
Flag controlling wither comparisons are case sensitive. |
Filter |
not()
Implements a logical NOT with this filter and returns the negated filter |
Filter |
or(Filter filter)
Implements a logical OR with this filter and returns the merged filter. |
void |
setExpression1(Expression expression)
|
void |
setExpression2(Expression expression)
|
Methods inherited from class AbstractFilter |
---|
accept, contains, getFilterType, isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter |
Methods inherited from class FilterAbstract |
---|
accept, accepts, eval, eval, eval, evaluate |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Filter |
---|
accept, evaluate |
Methods inherited from interface Filter |
---|
evaluate |
Field Detail |
---|
protected Expression expression1
protected Expression expression2
Constructor Detail |
---|
protected BinaryComparisonAbstract(FilterFactory factory)
protected BinaryComparisonAbstract(FilterFactory factory, Expression expression1, Expression expression2)
protected BinaryComparisonAbstract(FilterFactory factory, Expression expression1, Expression expression2, boolean matchingCase)
Method Detail |
---|
public Expression getExpression1()
BinaryComparisonOperator
getExpression1
in interface BinaryComparisonOperator
public void setExpression1(Expression expression)
public Expression getExpression2()
BinaryComparisonOperator
getExpression2
in interface BinaryComparisonOperator
public void setExpression2(Expression expression)
public boolean isMatchingCase()
BinaryComparisonOperator
isMatchingCase
in interface BinaryComparisonOperator
true
if the comparison is case sensetive, otherwise false
.public MultiValuedFilter.MatchAction getMatchAction()
MultiValuedFilter
getMatchAction
in interface MultiValuedFilter
public Filter and(Filter filter)
Filter
filter
- The filter to AND with this filter.
public Filter or(Filter filter)
Filter
filter
- The filter to OR with this filter.
public Filter not()
Filter
protected Object[] eval(Object object)
If the values can not be aligned, the original values are returned.
protected Object[] eval(Object v1, Object v2)
If the values can not be aligned, the original values are returned.
protected final Comparable comparable(Object value)
value
- The original value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |