org.geotools.filter
Class AbstractFilterImpl

java.lang.Object
  extended byorg.geotools.filter.FilterAbstract
      extended byorg.geotools.filter.AbstractFilter
          extended byorg.geotools.filter.AbstractFilterImpl
All Implemented Interfaces:
Filter, org.opengis.filter.Filter, FilterType
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.

Version:
$Id: AbstractFilterImpl.java 18021 2006-02-14 20:36:18Z jdeolive $
Author:
Ian Turton, CCG

Field Summary
 
Fields inherited from class org.geotools.filter.AbstractFilter
filterType, LOGGER, permissiveConstruction
 
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
 
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 org.geotools.filter.AbstractFilter
accept, contains, evaluate, getFilterType, isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter
 
Methods inherited from class org.geotools.filter.FilterAbstract
accept, accepts, comparable, eval, eval, evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.filter.Filter
evaluate
 
Methods inherited from interface org.opengis.filter.Filter
accept
 

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 © GeoTools. All Rights Reserved.