Class ElementModelStructureHandler
- Object
-
- org.thymeleaf.engine.ElementModelStructureHandler
-
- All Implemented Interfaces:
IElementModelStructureHandler
public final class ElementModelStructureHandler extends Object implements IElementModelStructureHandler
Structure handler implementation, internally used by the engine.
This class should not be directly used from outside the engine.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveLocalVariable(String name)Instructs the engine to remove a local variable.voidreset()Resets all actions specified so far for the current processor execution.voidsetInliner(IInliner inliner)Instructs the engine to set a new inliner.voidsetLocalVariable(String name, Object value)Instructs the engine to set a new local variable.voidsetSelectionTarget(Object selectionTarget)Instructs the engine to set a new selection target.voidsetTemplateData(TemplateData templateData)Instructs the engine to set a new template data.
-
-
-
Method Detail
-
removeLocalVariable
public void removeLocalVariable(String name)
Description copied from interface:IElementModelStructureHandlerInstructs the engine to remove a local variable.
- Specified by:
removeLocalVariablein interfaceIElementModelStructureHandler- Parameters:
name- the name of the variable.
-
setLocalVariable
public void setLocalVariable(String name, Object value)
Description copied from interface:IElementModelStructureHandlerInstructs the engine to set a new local variable.
- Specified by:
setLocalVariablein interfaceIElementModelStructureHandler- Parameters:
name- the name of the variable.value- the value of the variable.
-
setSelectionTarget
public void setSelectionTarget(Object selectionTarget)
Description copied from interface:IElementModelStructureHandlerInstructs the engine to set a new selection target.
The selection target is the object on which selection expressions
(*{...})are executed. In the Standard Dialect, this selection target is usually modified by means of theth:objectattribute, but custom processors can do it too. Note the selection target has the same scope as a local variable, and will therefore be accessible only inside the body of the element being processed.- Specified by:
setSelectionTargetin interfaceIElementModelStructureHandler- Parameters:
selectionTarget- the selection target to be set.
-
setInliner
public void setInliner(IInliner inliner)
Description copied from interface:IElementModelStructureHandlerInstructs the engine to set a new inliner.
Inliners are used for processing all text nodes (
ITextevents) appearing in the body of the element being processed. This is the mechanism used by the th:inline attribute to enable inlining in any of the specified modes (text, javascript, etc).- Specified by:
setInlinerin interfaceIElementModelStructureHandler- Parameters:
inliner- the inliner.
-
setTemplateData
public void setTemplateData(TemplateData templateData)
Description copied from interface:IElementModelStructureHandlerInstructs the engine to set a new template data.
This method modifies the metadata about the template that is actually being processed. When inserting fragments, this allows the engine to know data about the specific fragment being processed, and also the complete stack of fragments being nested.
- Specified by:
setTemplateDatain interfaceIElementModelStructureHandler- Parameters:
templateData- the template data.
-
reset
public void reset()
Description copied from interface:IElementModelStructureHandlerResets all actions specified so far for the current processor execution.
- Specified by:
resetin interfaceIElementModelStructureHandler
-
-