org.geotools.filter
Interface NullFilter

All Superinterfaces:
Filter, org.opengis.filter.Filter, FilterType, org.opengis.filter.PropertyIsNull
All Known Implementing Classes:
NullFilterImpl

public interface NullFilter
extends Filter, org.opengis.filter.PropertyIsNull

Defines a null filter, which checks to see if an attribute is null.

Version:
$Id: NullFilter.java 18021 2006-02-14 20:36:18Z jdeolive $
Author:
Rob Hranac, Vision for New York, Chris Holmes, TOPP

Field Summary
 
Fields inherited from interface org.geotools.filter.Filter
ALL, NONE
 
Fields inherited from interface org.geotools.filter.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
 
Method Summary
 boolean contains(Feature feature)
          Deprecated. use org.opengis.filter.Filter#evaluate(Feature)
 Expression getNullCheckValue()
          Deprecated. use PropertyIsNull.getExpression()
 void nullCheckValue(Expression nullCheck)
          Deprecated. use PropertyIsNull.setExpression(Expression)
 
Methods inherited from interface org.geotools.filter.Filter
accept, and, evaluate, getFilterType, not, or
 
Methods inherited from interface org.opengis.filter.Filter
accept, evaluate
 
Methods inherited from interface org.opengis.filter.PropertyIsNull
getExpression, setExpression
 

Method Detail

nullCheckValue

public void nullCheckValue(Expression nullCheck)
                    throws IllegalFilterException
Deprecated. use PropertyIsNull.setExpression(Expression)

Determines whether or not a given feature is 'inside' this filter.

Parameters:
nullCheck - The attribute expression to null check.
Throws:
IllegalFilterException - If attempting to add a non-attribute expression.
Task:
REVISIT: change arg to AttributeExpression?, REVISIT: change name to setNullCheckValue.

getNullCheckValue

public Expression getNullCheckValue()
Deprecated. use PropertyIsNull.getExpression()

Returns the expression being checked for null.

Returns:
the Expression to null check.

contains

public boolean contains(Feature feature)
Deprecated. use org.opengis.filter.Filter#evaluate(Feature)

Determines whether or not a given feature is null for the nullCheck attribute.

Specified by:
contains in interface Filter
Parameters:
feature - Specified feature to examine.
Returns:
Flag confirming whether or not this feature is inside the filter.


Copyright © GeoTools. All Rights Reserved.