Package org.geotools.filter
Class NullFilterImpl
- Object
-
- FilterAbstract
-
- AbstractFilter
-
- NullFilterImpl
-
- All Implemented Interfaces:
Filter,PropertyIsNull,FilterType
public class NullFilterImpl extends AbstractFilter implements PropertyIsNull
Defines a null filter, which checks to see if an attribute is null.- Author:
- Rob Hranac, Vision for New York
-
-
Field Summary
-
Fields inherited from class AbstractFilter
LOGGER
-
Fields inherited from interface FilterType
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
-
Fields inherited from interface PropertyIsNull
NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNullFilterImpl(Expression expresion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(FilterVisitor visitor, Object extraData)Used by FilterVisitors to perform some action on this filter instance.booleanequals(Object o)Compares this filter to the specified object.booleanevaluate(Object feature)Determines whether or not a given feature is 'inside' this filter.ExpressiongetExpression()Returns the expression which represents the null check.inthashCode()Override of hashCode method.voidsetExpression(Expression nullCheck)Sets the expression which represents the null check.StringtoString()Returns a string representation of this filter.-
Methods inherited from class AbstractFilter
isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter
-
Methods inherited from class FilterAbstract
accepts, eval, eval
-
-
-
-
Constructor Detail
-
NullFilterImpl
protected NullFilterImpl(Expression expresion)
-
-
Method Detail
-
getExpression
public Expression getExpression()
Returns the expression which represents the null check.- Specified by:
getExpressionin interfacePropertyIsNull
-
setExpression
public void setExpression(Expression nullCheck)
Sets the expression which represents the null check.
-
evaluate
public boolean evaluate(Object feature)
Determines whether or not a given feature is 'inside' this filter.
-
toString
public String toString()
Returns a string representation of this filter.
-
equals
public boolean equals(Object o)
Compares this filter to the specified object. Returns true if the passed in object is the same as this filter. Checks to make sure the filter types, and the NullCheckValue are the same.
-
hashCode
public int hashCode()
Override of hashCode method.
-
accept
public Object accept(FilterVisitor visitor, Object extraData)
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.
-
-