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 FunctionExpressionImplfallback, functionName, name, params
 - 
Fields inherited from interface ExpressionNIL
 
- 
 - 
Constructor SummaryConstructors Constructor Description JsonSelectFunction()
 - 
Method SummaryAll 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 FunctionExpressionImplequals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, setParameters, toString
 - 
Methods inherited from class DefaultExpressionisAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
 - 
Methods inherited from class ExpressionAbstractevaluate
 - 
Methods inherited from interface Expressionevaluate
 
- 
 
- 
- 
- 
Method Detail- 
evaluatepublic 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 interface- Expression
- Overrides:
- evaluatein class- FunctionExpressionImpl
- Returns:
- default implementation returns null
 
 - 
getJsonPathpublic String getJsonPath() Returns the JSON path to be selected.
 - 
getPropertyNamepublic String getPropertyName() Description copied from interface:PropertyNameReturns the name of the property whose value will be returned by theevaluatemethod.- Specified by:
- getPropertyNamein interface- PropertyName
 
 - 
getNamespaceContextpublic NamespaceSupport getNamespaceContext() Description copied from interface:PropertyNameReturns namespace context information, or null if unavailable/inapplicable- Specified by:
- getNamespaceContextin interface- PropertyName
- Returns:
- namespace context information, or null if unavailable/inapplicable
 
 - 
acceptpublic 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 interface- Expression
- Overrides:
- acceptin class- FunctionExpressionImpl
- See Also:
- Expression.accept(ExpressionVisitor, Object)
 
 
- 
 
-