org.geotools.filter
Class BinaryLogicAbstract

Object
  extended by FilterAbstract
      extended by AbstractFilter
          extended by BinaryLogicAbstract
All Implemented Interfaces:
FilterType, Filter
Direct Known Subclasses:
LogicFilterImpl

public abstract class BinaryLogicAbstract
extends AbstractFilter

Author:
jdeolive

Field Summary
protected  List children
           
 
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 BinaryLogicAbstract(FilterFactory factory, List children)
           
 
Method Summary
 Filter and(Filter filter)
          Implements a logical AND with this filter and returns the merged filter.
 List<Filter> getChildren()
          Returned list is unmodifieable.
 Filter not()
          Implements a logical NOT with this filter and returns the negated filter
 Filter or(Filter filter)
          Implements a logical OR with this filter and returns the merged filter.
 void setChildren(List children)
           
 
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
 

Field Detail

children

protected List children
Constructor Detail

BinaryLogicAbstract

protected BinaryLogicAbstract(FilterFactory factory,
                              List children)
Method Detail

getChildren

public List<Filter> getChildren()
Returned list is unmodifieable. For a cheaper access option use visitor


setChildren

public void setChildren(List children)

and

public Filter and(Filter filter)
Description copied from interface: Filter
Implements a logical AND with this filter and returns the merged filter.

Parameters:
filter - The filter to AND with this filter.
Returns:
Combined filter.

or

public Filter or(Filter filter)
Description copied from interface: Filter
Implements a logical OR with this filter and returns the merged filter.

Parameters:
filter - The filter to OR with this filter.
Returns:
Combined filter.

not

public Filter not()
Description copied from interface: Filter
Implements a logical NOT with this filter and returns the negated filter

Returns:
Combined filter.


Copyright © 1996-2014 Geotools. All Rights Reserved.