org.geotools.filter
Class GeometryExpressionImpl

java.lang.Object
  extended byorg.geotools.filter.expression.ExpressionAbstract
      extended byorg.geotools.filter.DefaultExpression
          extended byorg.geotools.filter.GeometryExpressionImpl
All Implemented Interfaces:
org.opengis.filter.expression.Expression, 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: GeometryExpressionImpl.java 18028 2006-02-15 10:53:47Z desruisseaux $
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.expression.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
 java.lang.Object evaluate(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
accept, evaluate, getType, getValue, isAttributeExpression, isExpression, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression
 
Methods inherited from class org.geotools.filter.expression.ExpressionAbstract
accept, eval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.filter.expression.Expression
accept
 

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

evaluate

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

Specified by:
evaluate in interface Expression
Overrides:
evaluate in class DefaultExpression
Parameters:
feature - Feature from which to extract attribute value.
Returns:
The value of this expression based on the feature.

toString

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

Returns:
String representation of this attribute expression.


Copyright © GeoTools. All Rights Reserved.