org.geotools.filter
Class AbstractFilterImpl

Object
  extended by FilterAbstract
      extended by AbstractFilter
          extended by AbstractFilterImpl
All Implemented Interfaces:
FilterType, Filter
Direct Known Subclasses:
FidFilterImpl, LikeFilterImpl, NullFilterImpl

public abstract class AbstractFilterImpl
extends AbstractFilter

Abstract filter implementation provides or and and methods for child filters to use.

Author:
Ian Turton, CCG
Module:
modules/library/main (gt-main.jar)

Field Summary
 
Fields inherited from class AbstractFilter
filterType, LOGGER, 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 Filter
EXCLUDE, INCLUDE
 
Constructor Summary
protected AbstractFilterImpl(FilterFactory factory)
           
 
Method Summary
 Filter and(Filter filter)
          Default implementation for AND - should be sufficient for most filters.
 Filter not()
          Default implementation for NOT - should be sufficient for most filters.
 Filter or(Filter filter)
          Default implementation for OR - should be sufficient for most filters.
 
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
evaluate
 
Methods inherited from interface Filter
accept, evaluate
 

Constructor Detail

AbstractFilterImpl

protected AbstractFilterImpl(FilterFactory factory)
Method Detail

or

public Filter or(Filter filter)
Default implementation for OR - should be sufficient for most filters.

Parameters:
filter - Parent of the filter: must implement GMLHandlerGeometry.
Returns:
ORed filter.

and

public Filter and(Filter filter)
Default implementation for AND - should be sufficient for most filters.

Parameters:
filter - Parent of the filter: must implement GMLHandlerGeometry.
Returns:
ANDed filter.

not

public Filter not()
Default implementation for NOT - should be sufficient for most filters.

Returns:
NOTed filter.


Copyright © 1996-2010 Geotools. All Rights Reserved.