|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.filter.FilterAbstract
Abstract implementation for Filter.
Constructor Summary | |
protected |
FilterAbstract(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(Feature feature)
Straight call throught to: evaulate( feature ) |
protected java.lang.Comparable |
comparable(org.opengis.filter.expression.Expression expr,
Feature feature)
Subclass convenience method for turning an expression + feature into something comparable. |
protected java.lang.Object |
eval(Expression expression,
Feature feature)
Helper method for subclasses to reduce null checks |
protected java.lang.Object |
eval(org.opengis.filter.expression.Expression expression,
java.lang.Object object)
Helper method for subclasses to reduce null checks |
boolean |
evaluate(Feature feature)
Subclass should overrride. |
boolean |
evaluate(java.lang.Object object)
Subclass should overrride. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FilterAbstract(FilterFactory factory)
factory
- FilterFactory injected into the filter.Method Detail |
public boolean evaluate(Feature feature)
public boolean evaluate(java.lang.Object object)
evaluate
in interface org.opengis.filter.Filter
public boolean accepts(Feature feature)
public java.lang.Object accept(org.opengis.filter.FilterVisitor visitor, java.lang.Object extraData)
accept
in interface org.opengis.filter.Filter
protected java.lang.Object eval(Expression expression, Feature feature)
expression
- feature
-
protected java.lang.Object eval(org.opengis.filter.expression.Expression expression, java.lang.Object object)
expression
- object
-
protected java.lang.Comparable comparable(org.opengis.filter.expression.Expression expr, Feature feature)
If the result of the expression is something that implements
Comparable
it is returned directly, otherwise the
object is transformed to a string and returned.
expr
- The expressionfeature
- The feature.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |