org.geotools.filter
Class NestedAttributeExpression

java.lang.Object
  extended by org.geotools.filter.expression.ExpressionAbstract
      extended by org.geotools.filter.DefaultExpression
          extended by org.geotools.filter.AttributeExpressionImpl
              extended by org.geotools.filter.NestedAttributeExpression
All Implemented Interfaces:
AttributeExpression, ExpressionType, org.opengis.filter.expression.Expression, org.opengis.filter.expression.PropertyName

public class NestedAttributeExpression
extends AttributeExpressionImpl

This class represents a list of expressions broken up from a single XPath expression that is nested in more than one feature. The purpose is to allow filtering these attributes on the parent feature.

Author:
Rini Angreani, CSIRO Earth Science and Resource Engineering

Field Summary
 
Fields inherited from class org.geotools.filter.AttributeExpressionImpl
attPath, schema
 
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_LONG, LITERAL_STRING, LITERAL_UNDECLARED, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT
 
Fields inherited from interface org.opengis.filter.expression.Expression
NIL
 
Constructor Summary
NestedAttributeExpression(java.lang.String xpath, FeatureTypeMapping mappings)
          First constructor
 
Method Summary
 java.lang.Object evaluate(java.lang.Object object)
          see AttributeExpressionImpl.evaluate(Object)
 
Methods inherited from class org.geotools.filter.AttributeExpressionImpl
accept, equals, evaluate, evaluate, getAttributePath, getPropertyName, hashCode, setAttributePath, setPropertyName, toString
 
Methods inherited from class org.geotools.filter.DefaultExpression
accept, getType, getValue, isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression
 
Methods inherited from class org.geotools.filter.expression.ExpressionAbstract
eval, eval
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.filter.AttributeExpression
getValue
 
Methods inherited from interface org.geotools.filter.Expression
accept, getType
 

Constructor Detail

NestedAttributeExpression

public NestedAttributeExpression(java.lang.String xpath,
                                 FeatureTypeMapping mappings)
First constructor

Parameters:
xpath - Attribute XPath
expressions - List of broken up expressions
Method Detail

evaluate

public java.lang.Object evaluate(java.lang.Object object)
see AttributeExpressionImpl.evaluate(Object)

Specified by:
evaluate in interface org.opengis.filter.expression.Expression
Overrides:
evaluate in class AttributeExpressionImpl
Parameters:
object - Object from which we need to extract a property value.


Copyright © 1996-2010 Geotools. All Rights Reserved.