|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProcessingContext
Method Summary | |
---|---|
Map<String,Object> |
getBaseContextVariables()
Deprecated. Use getExpressionObjects() instead. Will be removed in 2.1.x |
IContext |
getContext()
Returns the current context specified for template processing. |
Object |
getExpressionEvaluationRoot()
Returns the current evaluation root. |
Map<String,Object> |
getExpressionObjects()
Returns the map of expression objects that should be made available to every expression evaluation operation (whenever variable evaluation is available). |
Object |
getExpressionSelectionEvaluationRoot()
Returns the current selection evaluation root. |
Object |
getLocalVariable(String variableName)
Returns the value of a local variable. |
Map<String,Object> |
getLocalVariables()
Returns the map of local variables. |
Object |
getSelectionTarget()
Returns the selection target object, and raises an exception if there isn't any. |
boolean |
hasLocalVariable(String variableName)
Returns whether a specific local variable is defined or not. |
boolean |
hasLocalVariables()
Returns whether local variables have currently been specified or not. |
boolean |
hasSelectionTarget()
Returns whether there currently is a selection going on (e.g. |
Method Detail |
---|
IContext getContext()
Returns the current context specified for template processing.
@Deprecated Map<String,Object> getBaseContextVariables()
getExpressionObjects()
instead. Will be removed in 2.1.x
Returns the map of base variables that should be made available to every expression evaluation operation (whenever variable evaluation is available).
Map<String,Object> getExpressionObjects()
Returns the map of expression objects that should be made available to every expression evaluation operation (whenever variable evaluation is available). In OGNL and SpringEL expressions, these will be available as #object1, #object2, etc.
This method cannot return null, and must return a modifiable Map object (which will, in fact, be modified).
Object getExpressionEvaluationRoot()
Returns the current evaluation root. This is the object on which expressions (normal expressions, like those specified in the standard dialect with ${...}) are executed.
Object getExpressionSelectionEvaluationRoot()
Returns the current selection evaluation root. This is the object on which selection expressions (like those specified in the standard dialect with *{...}) are executed.
boolean hasSelectionTarget()
Returns whether there currently is a selection going on (e.g. th:object in standard dialect).
Object getSelectionTarget()
Returns the selection target object, and raises an exception if there isn't any.
Meant for internal use.
boolean hasLocalVariables()
Returns whether local variables have currently been specified or not. (e.g. th:with in standard dialect).
boolean hasLocalVariable(String variableName)
Returns whether a specific local variable is defined or not.
Object getLocalVariable(String variableName)
Returns the value of a local variable.
variableName
- the name of the local variable to be returned
Map<String,Object> getLocalVariables()
Returns the map of local variables.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |