org.geotools.filter
Interface AttributeExpression

All Superinterfaces:
Expression, ExpressionType, PropertyName
All Known Implementing Classes:
AttributeExpressionImpl, AttributeExpressionImpl2, JoinPropertyName, NestedAttributeExpression

Deprecated. use PropertyName

public interface AttributeExpression
extends 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.


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

Method Detail

setAttributePath

void setAttributePath(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

Object getValue(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

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

Gets the attribute path of this expression.

Returns:
the attribute to be queried.


Copyright © 1996-2014 Geotools. All Rights Reserved.