org.geotools.filter.expression
Interface AttributeExpression

All Superinterfaces:
org.opengis.filter.expression.Expression, Expression, ExpressionType, org.opengis.filter.expression.PropertyName
All Known Implementing Classes:
AttributeExpressionImpl, AttributeExpressionImpl2

public interface AttributeExpression
extends Expression, org.opengis.filter.expression.PropertyName

The geotools representation of the PropertyName tag in an xml encoded filter.

It should handle xpath attributePaths of features, and should report the attribute found at the attributePath of a feature.

Version:
$Id: AttributeExpression.java 18021 2006-02-14 20:36:18Z jdeolive $

Field Summary
 
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
 
Method Summary
 java.lang.String getAttributePath()
          Deprecated. use PropertyName.getPropertyName()
 java.lang.Object getValue(Feature feature)
          Deprecated. use org.opengis.filter.expression.Expression#evaluate(Feature)()
 void setAttributePath(java.lang.String attributePath)
          Deprecated. use PropertyName.setPropertyName(String)
 
Methods inherited from interface org.geotools.filter.expression.Expression
accept, evaluate, getType
 
Methods inherited from interface org.opengis.filter.expression.Expression
accept, evaluate
 
Methods inherited from interface org.opengis.filter.expression.PropertyName
getPropertyName, setPropertyName
 

Method Detail

setAttributePath

public void setAttributePath(java.lang.String attributePath)
                      throws IllegalFilterException
Deprecated. use PropertyName.setPropertyName(String)

Sets the path of the attribute of this expression. For simple, non-nested, features the 'path' is simply the name of an attribute.

Parameters:
attributePath - A string of the path.
Throws:
IllegalFilterException - if the path is not valid.

getValue

public java.lang.Object getValue(Feature feature)
Deprecated. use org.opengis.filter.expression.Expression#evaluate(Feature)()

Gets the attribute value at the path held by this expression from the feature.

Specified by:
getValue in interface Expression
Parameters:
feature - the feature to get this attribute from.
Returns:
the value of the attribute found by this expression.

getAttributePath

public java.lang.String getAttributePath()
Deprecated. use PropertyName.getPropertyName()

Gets the attribute path of this expression.

Returns:
the attribute to be queried.


Copyright © GeoTools. All Rights Reserved.