Package org.geotools.appschema.filter
Class NestedAttributeExpression
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- AttributeExpressionImpl
-
- NestedAttributeExpression
-
- All Implemented Interfaces:
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 AttributeExpressionImpl
attPath, lenient, namespaceSupport, schema
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description NestedAttributeExpression(XPathUtil.StepList xpath, NestedAttributeMapping nestedMapping)First constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(ExpressionVisitor visitor, Object extraData)Used by FilterVisitors to perform some action on this filter instance.Objectevaluate(Object object)-
Methods inherited from class AttributeExpressionImpl
equals, evaluate, getNamespaceContext, getPropertyName, hashCode, isLenient, setLenient, setPropertyName, toString
-
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
-
-
-
-
Constructor Detail
-
NestedAttributeExpression
public NestedAttributeExpression(XPathUtil.StepList xpath, NestedAttributeMapping nestedMapping)
First constructor- Parameters:
xpath- Attribute XPath
-
-
Method Detail
-
evaluate
public Object evaluate(Object object)
- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classAttributeExpressionImpl- Parameters:
object- Object from which we need to extract a property value.- Returns:
- default implementation returns null
-
accept
public Object accept(ExpressionVisitor visitor, Object extraData)
Description copied from class:AttributeExpressionImplUsed by FilterVisitors to perform some action on this filter instance. Typicaly used by Filter decoders, but may also be used by any thing which needs infomration from filter structure. Implementations should always call: visitor.visit(this); It is importatant that this is not left to a parent class unless the parents API is identical.- Specified by:
acceptin interfaceExpression- Overrides:
acceptin classAttributeExpressionImpl- Parameters:
visitor- The visitor which requires access to this filter, the method must call visitor.visit(this);
-
-