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 TypegetFunctionType(String functionName, Type[] parameterTypes)Gets the return type of the function.ValueObjectgetFunctionValue(String functionName, ValueObject[] parameters)Gets the return value of function.voidinitialize(ExpressionContext expressionContext)It initialize the Function provider with expression context and also gives a chance to pre-initialize any internal states for operationsstatic voidmain(String[] args)booleansupportsFunction(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:FunctionProviderGets the return type of the function.- Specified by:
getFunctionTypein 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:FunctionProviderGets the return value of function.- Specified by:
getFunctionValuein 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:FunctionProviderIt initialize the Function provider with expression context and also gives a chance to pre-initialize any internal states for operations- Specified by:
initializein 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:FunctionProviderChecks whether the this function provider supports any function or not.- Specified by:
supportsFunctionin interfaceFunctionProvider- Parameters:
functionName- the name of the functionparameterTypes- the type of parameters for the function- Returns:
trueif function provider supports the functionfalseotherwise- Throws:
ExpressionEngineException- if anything goes wrong
-
-