org.geotools.filter
Class FilterAbstract

java.lang.Object
  extended by org.geotools.filter.FilterAbstract
All Implemented Interfaces:
org.opengis.filter.Filter
Direct Known Subclasses:
AbstractFilter

public abstract class FilterAbstract
extends java.lang.Object
implements org.opengis.filter.Filter

Abstract implementation for Filter.

Author:
Jody Garnett

Field Summary
protected  org.opengis.filter.FilterFactory factory
          filter factory
 
Fields inherited from interface org.opengis.filter.Filter
EXCLUDE, INCLUDE
 
Constructor Summary
protected FilterAbstract(org.opengis.filter.FilterFactory factory)
           
 
Method Summary
 java.lang.Object accept(org.opengis.filter.FilterVisitor visitor, java.lang.Object extraData)
          Subclass should override, default implementation just returns extraData
 boolean accepts(org.opengis.feature.simple.SimpleFeature feature)
          Straight call throught to: evaulate( feature )
protected  java.lang.Object eval(org.opengis.filter.expression.Expression expression, java.lang.Object object)
          Helper method for subclasses to reduce null checks
protected  java.lang.Object eval(org.opengis.filter.expression.Expression expression, java.lang.Object object, java.lang.Class context)
          Helper method for subclasses to reduce null checks
protected  java.lang.Object eval(Expression expression, org.opengis.feature.simple.SimpleFeature feature)
          Helper method for subclasses to reduce null checks
 boolean evaluate(org.opengis.feature.simple.SimpleFeature feature)
          Subclass should overrride.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opengis.filter.Filter
evaluate
 

Field Detail

factory

protected org.opengis.filter.FilterFactory factory
filter factory

Constructor Detail

FilterAbstract

protected FilterAbstract(org.opengis.filter.FilterFactory factory)
Parameters:
factory - FilterFactory injected into the filter.
Method Detail

evaluate

public boolean evaluate(org.opengis.feature.simple.SimpleFeature feature)
Subclass should overrride. Default value is false


accepts

public boolean accepts(org.opengis.feature.simple.SimpleFeature feature)
Straight call throught to: evaulate( feature )


accept

public java.lang.Object accept(org.opengis.filter.FilterVisitor visitor,
                               java.lang.Object extraData)
Subclass should override, default implementation just returns extraData

Specified by:
accept in interface org.opengis.filter.Filter

eval

protected java.lang.Object eval(Expression expression,
                                org.opengis.feature.simple.SimpleFeature feature)
Helper method for subclasses to reduce null checks

Parameters:
expression -
feature -
Returns:
value or null

eval

protected java.lang.Object eval(org.opengis.filter.expression.Expression expression,
                                java.lang.Object object)
Helper method for subclasses to reduce null checks

Parameters:
expression -
object -
Returns:
value or null

eval

protected java.lang.Object eval(org.opengis.filter.expression.Expression expression,
                                java.lang.Object object,
                                java.lang.Class context)
Helper method for subclasses to reduce null checks

Parameters:
expression -
object -
context -
Returns:
value or null


Copyright © 1996-2010 Geotools. All Rights Reserved.