org.geotools.filter
Interface AttributeExpression

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

Deprecated. use PropertyName

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 30642 2008-06-12 17:52:06Z acuster $

Field Summary
 
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_LONG, LITERAL_STRING, LITERAL_UNDECLARED, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT
 
Fields inherited from interface org.opengis.filter.expression.Expression
NIL
 
Method Summary
 java.lang.String getAttributePath()
          Deprecated. use PropertyName.getPropertyName()
 java.lang.Object getValue(org.opengis.feature.simple.SimpleFeature 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
accept, evaluate, getType
 
Methods inherited from interface org.opengis.filter.expression.PropertyName
getPropertyName
 
Methods inherited from interface org.opengis.filter.expression.Expression
accept, evaluate, evaluate
 

Method Detail

setAttributePath

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

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

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

Parameters:
feature - the feature to get this attribute from.
Returns:
the value of the attribute found by this expression.

getAttributePath

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

Gets the attribute path of this expression.

Returns:
the attribute to be queried.


Copyright © 1996-2010 Geotools. All Rights Reserved.