public interface VariableProvider
| Modifier and Type | Method and Description |
|---|---|
Type |
getVariableType(String variableName)
Gets the type of variable.
|
ValueObject |
getVariableValue(String variableName)
Gets the value of variable.
|
void |
initialize(ExpressionContext expressionContext)
It initialize the Function provider with expression context and also
gives a chance to pre-initialize any internal states for operations
|
boolean |
supportsVariable(String variableName)
Checks whether the specified variable is supported by this variable
provider or not.
|
void initialize(ExpressionContext expressionContext) throws ExpressionEngineException
expressionContext - Context of current expression evaluation processExpressionEngineExceptionType getVariableType(String variableName) throws ExpressionEngineException
variableName - name of the variableExpressionEngineException - if anything goes wrongValueObject getVariableValue(String variableName) throws ExpressionEngineException
variableName - name of the variable.ValueObjectExpressionEngineException - if anything goes wrongboolean supportsVariable(String variableName) throws ExpressionEngineException
variableName - name of the variabletrue if the variable is supported by this provider false otherwiseExpressionEngineException - if anything goes wrong