org.geotools.filter
Class GeometryExpressionImpl

java.lang.Object
  extended byorg.geotools.filter.DefaultExpression
      extended byorg.geotools.filter.GeometryExpressionImpl
All Implemented Interfaces:
Expression, ExpressionType

public class GeometryExpressionImpl
extends DefaultExpression

Defines a complex filter (could also be called logical filter). This filter holds one or more filters together and relates them logically in an internally defined manner.

Version:
$Id: AttributeExpressionImpl.java,v 1.11 2003/07/23 15:50:27 cholmesny Exp $
Author:
Rob Hranac, TOPP

Field Summary
protected  java.lang.String attPath
          Holds all sub filters of this filter.
protected  java.lang.String colName
          Holds all sub filters of this filter.
 
Fields inherited from class org.geotools.filter.DefaultExpression
expressionType, permissiveConstruction
 
Fields inherited from interface org.geotools.filter.ExpressionType
ATTRIBUTE, ATTRIBUTE_DOUBLE, ATTRIBUTE_GEOMETRY, ATTRIBUTE_INTEGER, ATTRIBUTE_STRING, ATTRIBUTE_UNDECLARED, FUNCTION, LITERAL_DOUBLE, LITERAL_GEOMETRY, LITERAL_INTEGER, LITERAL_STRING, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT
 
Constructor Summary
protected GeometryExpressionImpl(java.lang.String colName)
          Constructor with the schema for this attribute.
 
Method Summary
 void accept(FilterVisitor visitor)
          Used by FilterVisitors to perform some action on this filter instance.
 java.lang.Object getValue(Feature feature)
          Gets the value of this attribute from the passed feature.
 java.lang.String toString()
          Return this expression as a string.
 
Methods inherited from class org.geotools.filter.DefaultExpression
getType, isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attPath

protected java.lang.String attPath
Holds all sub filters of this filter.


colName

protected java.lang.String colName
Holds all sub filters of this filter.

Constructor Detail

GeometryExpressionImpl

protected GeometryExpressionImpl(java.lang.String colName)
Constructor with the schema for this attribute.

Method Detail

getValue

public java.lang.Object getValue(Feature feature)
Gets the value of this attribute from the passed feature.

Specified by:
getValue in interface Expression
Overrides:
getValue in class DefaultExpression
Parameters:
feature - Feature from which to extract attribute value.
Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
Return this expression as a string.

Returns:
String representation of this attribute expression.

accept

public void accept(FilterVisitor visitor)
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.

Parameters:
visitor - The visitor which requires access to this filter, the method must call visitor.visit(this);


Copyright © GeoTools. All Rights Reserved.