Package org.thymeleaf.engine
Class TextStructureHandler
java.lang.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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) boolean(package private) boolean(package private) IModel(package private) boolean(package private) CharSequence -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInstructs the engine to remove the entire event that is being processed.voidreplaceWith(IModel model, boolean processable) Instructs the engine to replace the current event with the specified model (aIModel).voidreset()Resets all actions specified so far for the current processor execution.voidsetText(CharSequence text) Instructs the engine to set a new text for this Text event.
-
Field Details
-
setText
boolean setText -
setTextValue
CharSequence setTextValue -
replaceWithModel
boolean replaceWithModel -
replaceWithModelValue
IModel replaceWithModelValue -
replaceWithModelProcessable
boolean replaceWithModelProcessable -
removeText
boolean removeText
-
-
Constructor Details
-
TextStructureHandler
TextStructureHandler()
-
-
Method Details
-
setText
Description copied from interface:ITextStructureHandlerInstructs the engine to set a new text for this Text event.
- Specified by:
setTextin interfaceITextStructureHandler- Parameters:
text- the new text
-
replaceWith
Description copied from interface:ITextStructureHandlerInstructs the engine to replace the current event with the specified model (a
IModel).- Specified by:
replaceWithin 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:ITextStructureHandlerInstructs the engine to remove the entire event that is being processed.
- Specified by:
removeTextin interfaceITextStructureHandler
-
reset
public void reset()Description copied from interface:ITextStructureHandlerResets all actions specified so far for the current processor execution.
- Specified by:
resetin interfaceITextStructureHandler
-