org.geotools.filter
Interface LogicFilter

All Superinterfaces:
org.opengis.filter.BinaryLogicOperator, Filter, org.opengis.filter.Filter, FilterType
All Known Implementing Classes:
LogicFilterImpl

public interface LogicFilter
extends Filter, org.opengis.filter.BinaryLogicOperator

Defines a logic filter (the only filter type that contains other filters). This filter holds one or more filters together and relates them logically with an internally defined type (AND, OR, NOT).

Version:
$Id: LogicFilter.java 18021 2006-02-14 20:36:18Z jdeolive $
Author:
Rob Hranac, TOPP, 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
 void addFilter(Filter filter)
          Adds a sub filter to this filter.
 boolean contains(Feature feature)
          Deprecated. use Filter.evaluate(Feature).
 java.util.Iterator getFilterIterator()
          Gets an iterator for the filters held by this logic filter.
 
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.BinaryLogicOperator
getChildren, setChildren
 

Method Detail

contains

public boolean contains(Feature feature)
Deprecated. use Filter.evaluate(Feature).

Determines whether the feature matches the appropriate logic relationships.

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

getFilterIterator

public java.util.Iterator getFilterIterator()
Gets an iterator for the filters held by this logic filter.

Returns:
the iterator of the filters.

addFilter

public void addFilter(Filter filter)
               throws IllegalFilterException
Adds a sub filter to this filter.

Parameters:
filter - Specified filter to add to the sub filter list.
Throws:
IllegalFilterException - Does not conform to logic filter structure
Task:
REVISIT: make all filters immutable. This should return a new filter.


Copyright © GeoTools. All Rights Reserved.