Class JsonSelectFunction
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- FunctionExpressionImpl
-
- JsonSelectFunction
-
- All Implemented Interfaces:
Expression,Function,PropertyName,FunctionExpression,Factory
public final class JsonSelectFunction extends FunctionExpressionImpl implements PropertyName
Function that selects a JSON object using a JSON path. This function implements thePropertyNameinterface for compatibility with the filtering processing stack.
-
-
Field Summary
-
Fields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description JsonSelectFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(ExpressionVisitor visitor, Object extraData)Accepts a visitor.Objectevaluate(Object object)Evaluates this function against the provided object.StringgetJsonPath()Returns the JSON path to be selected.NamespaceSupportgetNamespaceContext()Returns namespace context information, or null if unavailable/inapplicableStringgetPropertyName()Returns the name of the property whose value will be returned by theevaluatemethod.-
Methods inherited from class FunctionExpressionImpl
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 class ExpressionAbstract
evaluate
-
Methods inherited from interface Expression
evaluate
-
-
-
-
Method Detail
-
evaluate
public Object evaluate(Object object)
Evaluates this function against the provided object. If a NULL object is provided and attribute expression will be returned.- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classFunctionExpressionImpl- Returns:
- default implementation returns null
-
getJsonPath
public String getJsonPath()
Returns the JSON path to be selected.
-
getPropertyName
public String getPropertyName()
Description copied from interface:PropertyNameReturns the name of the property whose value will be returned by theevaluatemethod.- Specified by:
getPropertyNamein interfacePropertyName
-
getNamespaceContext
public NamespaceSupport getNamespaceContext()
Description copied from interface:PropertyNameReturns namespace context information, or null if unavailable/inapplicable- Specified by:
getNamespaceContextin interfacePropertyName- Returns:
- namespace context information, or null if unavailable/inapplicable
-
accept
public Object accept(ExpressionVisitor visitor, Object extraData)
Description copied from interface:ExpressionAccepts a visitor. Subclasses must implement with a method whose content is the following:return visitor.visit(this, extraData);
- Specified by:
acceptin interfaceExpression- Overrides:
acceptin classFunctionExpressionImpl- See Also:
Expression.accept(ExpressionVisitor, Object)
-
-