org.geotools.filter
Class IsNilImpl
Object
FilterAbstract
AbstractFilter
BinaryComparisonAbstract
CompareFilterImpl
IsNilImpl
- All Implemented Interfaces:
- CompareFilter, FilterType, BinaryComparisonOperator, Filter, MultiValuedFilter, PropertyIsNil
public class IsNilImpl
- extends CompareFilterImpl
- implements PropertyIsNil
JD: PropertyIsNil requires us to return true if a property is "nil" in the xml schema sense.
But we don't really have notion of schema in our filters. So for now we just make it an alias
of PropertyIsNull. When someone (app-schema) has a need for this we can revisit.
Fields inherited from interface 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 |
Methods inherited from class CompareFilterImpl |
addLeftValue, addRightValue, compare, equals, evaluate, getLeftValue, getRightValue, hashCode, setExpression1, setExpression2, toString |
IsNilImpl
public IsNilImpl(FilterFactory factory,
Expression e1,
Object nilReason)
evaluate
public boolean evaluate(Object object)
- Description copied from interface:
Filter
- Give an object, this method determines if the test(s) represented by this filter object
are passed.
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.
- Specified by:
evaluate
in interface Filter
- Returns:
true if the test(s) are passed for the provided object
getExpression
public Expression getExpression()
- Description copied from interface:
PropertyIsNil
- Returns the expression whose value will be checked for
null
.
- Specified by:
getExpression
in interface PropertyIsNil
getNilReason
public Object getNilReason()
- Description copied from interface:
PropertyIsNil
- The nil reason.
- Specified by:
getNilReason
in interface PropertyIsNil
accept
public Object accept(FilterVisitor visitor,
Object extraData)
- Description copied from class:
CompareFilterImpl
- Used by FilterVisitors to perform some action on this filter instance.
Typicaly used by Filter decoders, but may also be used by any thing
which needs infomration from filter structure. Implementations should
always call: visitor.visit(this); It is importatant that this is not
left to a parent class unless the parents API is identical.
- Specified by:
accept
in interface Filter
- Specified by:
accept
in class CompareFilterImpl
- Parameters:
visitor
- The visitor which requires access to this filter, the
method must call visitor.visit(this);
Copyright © 1996-2014 Geotools. All Rights Reserved.