org.geotools.filter
Interface LogicFilter

All Superinterfaces:
Filter, FilterType
All Known Implementing Classes:
AndImpl, LogicFilterImpl, NotImpl, OrImpl

Deprecated. use BinaryLogicOperator

public interface LogicFilter
extends Filter

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

Author:
Rob Hranac, TOPP, Chris Holmes, TOPP

Field Summary
 
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
 
Method Summary
 void addFilter(Filter filter)
          Deprecated. Adds a sub filter to this filter.
 boolean contains(SimpleFeature feature)
          Deprecated. use Filter#evaluate(Feature).
 List getChildren()
          Deprecated. Returns a list containing all of the child filters of this object.
 Iterator getFilterIterator()
          Deprecated. Gets an iterator for the filters held by this logic filter.
 
Methods inherited from interface Filter
accept, and, evaluate, getFilterType, not, or
 
Methods inherited from interface Filter
accept, evaluate
 

Method Detail

contains

boolean contains(SimpleFeature feature)
Deprecated. use Filter#evaluate(Feature).

Determines whether the feature matches the appropriate logic relationships.

Parameters:
feature - Specified feature to examine.
Returns:
Flag confirming whether or not this feature is inside the filter.

getChildren

List getChildren()
Deprecated. 
Returns a list containing all of the child filters of this object.

This list will contain at least two elements, and each element will be an instance of Filter.


getFilterIterator

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

Returns:
the iterator of the filters.

addFilter

void addFilter(Filter filter)
               throws IllegalFilterException
Deprecated. 
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
TODO:
REVISIT: make all filters immutable. This should return a new filter.


Copyright © 1996-2014 Geotools. All Rights Reserved.