org.geotools.filter
Class AndImpl

Object
  extended by FilterAbstract
      extended by AbstractFilter
          extended by BinaryLogicAbstract
              extended by LogicFilterImpl
                  extended by AndImpl
All Implemented Interfaces:
FilterType, LogicFilter, And, BinaryLogicOperator, Filter

public class AndImpl
extends LogicFilterImpl
implements And

Direct implementation of And filter.

Author:
jdeolive
Module:
modules/library/main (gt-main.jar)

Field Summary
 
Fields inherited from class BinaryLogicAbstract
children
 
Fields inherited from class AbstractFilter
filterType, permissiveConstruction
 
Fields inherited from class FilterAbstract
factory
 
Fields inherited from interface Filter
EXCLUDE, INCLUDE
 
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
 
Constructor Summary
protected AndImpl(FilterFactory factory, List children)
           
 
Method Summary
 Object accept(FilterVisitor visitor, Object extraData)
          Used by FilterVisitors to perform some action on this filter instance.
 boolean evaluate(Object object)
           
 boolean evaluate(SimpleFeature feature)
          Subclass should overrride.
 
Methods inherited from class LogicFilterImpl
addFilter, and, equals, getFilterIterator, hashCode, not, or, toString
 
Methods inherited from class BinaryLogicAbstract
getChildren, setChildren
 
Methods inherited from class AbstractFilter
accept, contains, getFilterType, isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter
 
Methods inherited from class FilterAbstract
accepts, eval, eval, eval
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface BinaryLogicOperator
getChildren
 
Methods inherited from interface LogicFilter
contains
 
Methods inherited from interface Filter
accept, getFilterType
 

Constructor Detail

AndImpl

protected AndImpl(FilterFactory factory,
                  List children)
Method Detail

evaluate

public boolean evaluate(SimpleFeature feature)
Description copied from class: FilterAbstract
Subclass should overrride. Default value is false

Overrides:
evaluate in class FilterAbstract

evaluate

public boolean evaluate(Object object)
Specified by:
evaluate in interface Filter

accept

public Object accept(FilterVisitor visitor,
                     Object extraData)
Description copied from class: LogicFilterImpl
Used by FilterVisitors to perform some action on this filter instance. Typicaly used by Filter decoders, but may also be used by any thing which needs infomration from filter structure. Implementations should always call: visitor.visit(this); It is importatant that this is not left to a parent class unless the parents API is identical.

Specified by:
accept in interface Filter
Specified by:
accept in class LogicFilterImpl
Parameters:
visitor - The visitor which requires access to this filter, the method must call visitor.visit(this);


Copyright © 1996-2009 Geotools. All Rights Reserved.