org.geotools.filter
Class IsNullImpl

Object
  extended by FilterAbstract
      extended by AbstractFilter
          extended by BinaryComparisonAbstract
              extended by CompareFilterImpl
                  extended by IsNullImpl
All Implemented Interfaces:
CompareFilter, FilterType, NullFilter, BinaryComparisonOperator, Filter, MultiValuedFilter, PropertyIsNull

public class IsNullImpl
extends CompareFilterImpl
implements NullFilter


Nested Class Summary
 
Nested classes/interfaces inherited from interface MultiValuedFilter
MultiValuedFilter.MatchAction
 
Field Summary
 
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 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
 
Fields inherited from interface PropertyIsNull
NAME
 
Fields inherited from interface Filter
EXCLUDE, INCLUDE
 
Constructor Summary
IsNullImpl(FilterFactory factory, Expression expression)
           
 
Method Summary
 Object accept(FilterVisitor visitor, Object extraData)
          Used by FilterVisitors to perform some action on this filter instance.
 boolean evaluate(Object feature)
          Give an object, this method determines if the test(s) represented by this filter object are passed.
 Expression getExpression()
          Returns the expression whose value will be checked for null.
 Expression getNullCheckValue()
          Returns the expression being checked for null.
 void nullCheckValue(Expression nullCheck)
          Determines whether or not a given feature is 'inside' this filter.
 void setExpression(Expression expression)
           
 
Methods inherited from class CompareFilterImpl
addLeftValue, addRightValue, compare, equals, evaluate, getLeftValue, getRightValue, hashCode, setExpression1, setExpression2, toString
 
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 NullFilter
contains
 
Methods inherited from interface Filter
accept, and, evaluate, getFilterType, not, or
 
Methods inherited from interface CompareFilter
contains
 
Methods inherited from interface BinaryComparisonOperator
getExpression1, getExpression2, isMatchingCase
 
Methods inherited from interface MultiValuedFilter
getMatchAction
 

Constructor Detail

IsNullImpl

public IsNullImpl(FilterFactory factory,
                  Expression expression)
Method Detail

evaluate

public boolean evaluate(Object feature)
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

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);

nullCheckValue

public void nullCheckValue(Expression nullCheck)
                    throws IllegalFilterException
Description copied from interface: NullFilter
Determines whether or not a given feature is 'inside' this filter.

Specified by:
nullCheckValue in interface NullFilter
Parameters:
nullCheck - The attribute expression to null check.
Throws:
IllegalFilterException - If attempting to add a non-attribute expression.

getNullCheckValue

public Expression getNullCheckValue()
Description copied from interface: NullFilter
Returns the expression being checked for null.

Specified by:
getNullCheckValue in interface NullFilter
Returns:
the Expression to null check.

getExpression

public Expression getExpression()
Description copied from interface: PropertyIsNull
Returns the expression whose value will be checked for null.

Specified by:
getExpression in interface PropertyIsNull

setExpression

public void setExpression(Expression expression)


Copyright © 1996-2014 Geotools. All Rights Reserved.