Package org.geotools.filter.function
Class FilterFunction_property
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- FunctionExpressionImpl
-
- FilterFunction_property
-
- All Implemented Interfaces:
Expression
,Function
,VolatileFunction
,FunctionExpression
,Factory
public class FilterFunction_property extends FunctionExpressionImpl implements VolatileFunction
Extracts a property from a feature, taking the property name as a parameter- Author:
- Andrea Aime - GeoSolutions
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionName
NAME
-
Fields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description FilterFunction_property()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Object feature)
Subclass should override, default implementation returns null.<T> T
evaluate(Object object, Class<T> context)
Default implementation delegates handling of context conversion to Converters utility class.-
Methods inherited from class FunctionExpressionImpl
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, setParameters, toString
-
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
-
Methods inherited from interface Expression
accept
-
Methods inherited from interface Function
getFallbackValue, getFunctionName, getName, getParameters
-
-
-
-
Field Detail
-
NAME
public static FunctionName NAME
-
-
Method Detail
-
evaluate
public <T> T evaluate(Object object, Class<T> context)
Description copied from class:ExpressionAbstract
Default implementation delegates handling of context conversion to Converters utility class.Subclasses are expected to make use of the Converters utility class (as the easiest way to provide value morphing in conformance with the Filter specification).
- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classExpressionAbstract
- Type Parameters:
T
- The type of the returned object.- Parameters:
object
- The object to evaluate the expression against.context
- The type of the resulting value of the expression.- Returns:
- Evaluates the given expression based on the content of the given object an an
instance of
context
.
-
evaluate
public Object evaluate(Object feature)
Description copied from class:ExpressionAbstract
Subclass should override, default implementation returns null.- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionExpressionImpl
- Returns:
- default implementation returns null
-
-