| org.geotools.filter.FilterVisitor
All known Subclasses: org.geotools.filter.FilterVisitorFilterWrapper, org.geotools.filter.SQLEncoderMySQL, org.geotools.filter.SQLEncoderPostgisGeos, org.geotools.renderer.lite.FIDFilterFinder, org.geotools.data.shapefile.indexed.FidFilterParserVisitor, org.geotools.filter.SQLEncoderHsql, org.geotools.index.rtree.FilterConsumer, org.geotools.filter.SQLEncoderPostgis, org.geotools.data.wfs.FidFilterVisitor, org.geotools.filter.FilterVisitorTest, org.geotools.filter.visitor.AbstractFilterVisitor, org.geotools.renderer.shape.ReplaceGeometryFilter, org.geotools.xml.filter.FilterEncodingPreProcessor,
FilterVisitor | public interface FilterVisitor (Code) | | An interface for classes that want to perform operations on a Filter
hierarchy. It forms part of a GoF Visitor Patern implementation. A call to
filter.accept(FilterVisitor) will result in a call to one of the methods in
this interface. The responsibility for traversing sub filters is intended
to lie with the visitor (this is unusual, but permited under the Visitor
pattern). A typical use would be to transcribe a filter into a specific
format, e.g. XML or SQL. Alternativly it may be to extract specific
infomration from the Filter strucure, for example a list of all bboxes.
author: James Macgill version: $Id: FilterVisitor.java 25933 2007-06-19 21:37:21Z chorner $org.opengis.filter.FilterVisitor |
visit | void visit(Filter filter)(Code) | | Called when accept is called on an AbstractFilter. As it is imposible to
create an instance of AbstractFilter this should never happen. If it
does it means that a subclass of AbstractFilter has failed to implement
accept(FilterVisitor) correctly. Implementers of this method should
probaly log a warning.
Parameters: filter - The filter to visit |
visit | void visit(BetweenFilter filter)(Code) | | Called when accept is called on a BetweenFilter. Implementers will want
to access the left, middle and right expresions.
Parameters: filter - The filter to visit |
visit | void visit(CompareFilter filter)(Code) | | Called when accept is called on a Compare Filter. Implementers will want
to access the left and right expresions.
Parameters: filter - The filter to visit |
visit | void visit(GeometryFilter filter)(Code) | | Called when accept is called on a Geometry Filter. Implementers will
want to access the left and right geometries.
Parameters: filter - The filter to visit |
visit | void visit(LikeFilter filter)(Code) | | Called when accept is called on a Like Filter. Implementers will want to
access the pattern and value.
Parameters: filter - The filter to visit. |
visit | void visit(LogicFilter filter)(Code) | | Called when accept is called on a Logic Filter. Implementers will want
to access the sub filters.
Parameters: filter - The filter to visit. |
visit | void visit(NullFilter filter)(Code) | | Called when accept is called on a Null Filter. Implementers will want to
access the null check.
Parameters: filter - The filter to visit. |
visit | void visit(FidFilter filter)(Code) | | Called when accept is called on a Fid Filter. Implementers will want to
access the fids.
Parameters: filter - The filter to visit. |
visit | void visit(AttributeExpression expression)(Code) | | Called when accept is called on an attribute expression. Implementors
will want to access the attribute.
Parameters: expression - The expression to visit. |
visit | void visit(Expression expression)(Code) | | This should never be called. This can only happen if a subclass of
DefaultExpression fails to implement its own version of
accept(FilterVisitor);
Parameters: expression - the expression to visit. |
visit | void visit(LiteralExpression expression)(Code) | | Called when accept is called on a literal expression. Implementors will
want to access the literal.
Parameters: expression - The expression to visit. |
visit | void visit(MathExpression expression)(Code) | | Called when accept is called on an math expression.
Parameters: expression - The expression to visit. |
visit | void visit(FunctionExpression expression)(Code) | | Called when accept is called on an function expression.
Parameters: expression - The expression to visit. |
|
|