Package org.thymeleaf.engine
Class TextStructureHandler
Object
org.thymeleaf.engine.TextStructureHandler
- All Implemented Interfaces:
ITextStructureHandler
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
Modifier and TypeMethodDescriptionvoid
Instructs the engine to remove the entire event that is being processed.void
replaceWith
(IModel model, boolean processable) Instructs the engine to replace the current event with the specified model (aIModel
).void
reset()
Resets all actions specified so far for the current processor execution.void
setText
(CharSequence text) Instructs the engine to set a new text for this Text event.
-
Method Details
-
setText
Description copied from interface:ITextStructureHandler
Instructs the engine to set a new text for this Text event.
- Specified by:
setText
in interfaceITextStructureHandler
- Parameters:
text
- the new text
-
replaceWith
Description copied from interface:ITextStructureHandler
Instructs the engine to replace the current event with the specified model (a
IModel
).- Specified by:
replaceWith
in interfaceITextStructureHandler
- Parameters:
model
- the model to be used as a replacement.processable
- whether the model should be considered processable or not.
-
removeText
public void removeText()Description copied from interface:ITextStructureHandler
Instructs the engine to remove the entire event that is being processed.
- Specified by:
removeText
in interfaceITextStructureHandler
-
reset
public void reset()Description copied from interface:ITextStructureHandler
Resets all actions specified so far for the current processor execution.
- Specified by:
reset
in interfaceITextStructureHandler
-