Class XMLFunctionProvider
- java.lang.Object
-
- org.vedantatree.expressionoasis.extensions.XMLFunctionProvider
-
- All Implemented Interfaces:
FunctionProvider
public class XMLFunctionProvider extends Object implements FunctionProvider
This is the XML function provider.
-
-
Constructor Summary
Constructors Constructor Description XMLFunctionProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getFunctionType(String functionName, Type[] parameterTypes)
Gets the return type of the function.ValueObject
getFunctionValue(String functionName, ValueObject[] parameters)
Gets the return value of function.void
initialize(ExpressionContext expressionContext)
It initialize the Function provider with expression context and also gives a chance to pre-initialize any internal states for operationsstatic void
main(String[] args)
boolean
supportsFunction(String functionName, Type[] parameterTypes)
Checks whether the this function provider supports any function or not.
-
-
-
Method Detail
-
getFunctionType
public Type getFunctionType(String functionName, Type[] parameterTypes) throws ExpressionEngineException
Description copied from interface:FunctionProvider
Gets the return type of the function.- Specified by:
getFunctionType
in interfaceFunctionProvider
- Parameters:
functionName
- the name of the function.parameterTypes
- the types of the parameters- Returns:
- the return type of the function
- Throws:
ExpressionEngineException
- if anything goes wrong
-
getFunctionValue
public ValueObject getFunctionValue(String functionName, ValueObject[] parameters) throws ExpressionEngineException
Description copied from interface:FunctionProvider
Gets the return value of function.- Specified by:
getFunctionValue
in interfaceFunctionProvider
- Parameters:
functionName
- the name of the functionparameters
- the parameters values of the function- Returns:
- the return value of the function
- Throws:
ExpressionEngineException
- if anything goes wrong
-
initialize
public void initialize(ExpressionContext expressionContext) throws ExpressionEngineException
Description copied from interface:FunctionProvider
It initialize the Function provider with expression context and also gives a chance to pre-initialize any internal states for operations- Specified by:
initialize
in interfaceFunctionProvider
- Parameters:
expressionContext
- Context of current expression evaluation process- Throws:
ExpressionEngineException
-
supportsFunction
public boolean supportsFunction(String functionName, Type[] parameterTypes) throws ExpressionEngineException
Description copied from interface:FunctionProvider
Checks whether the this function provider supports any function or not.- Specified by:
supportsFunction
in interfaceFunctionProvider
- Parameters:
functionName
- the name of the functionparameterTypes
- the type of parameters for the function- Returns:
true
if function provider supports the functionfalse
otherwise- Throws:
ExpressionEngineException
- if anything goes wrong
-
-