public final class TextStructureHandler extends Object implements ITextStructureHandler
Structure handler implementation, internally used by the engine.
This class should not be directly used from outside the engine.
Modifier and Type | Method and Description |
---|---|
void |
removeText()
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 (a
IModel ). |
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.
|
public void setText(CharSequence text)
ITextStructureHandler
Instructs the engine to set a new text for this Text event.
setText
in interface ITextStructureHandler
text
- the new textpublic void replaceWith(IModel model, boolean processable)
ITextStructureHandler
Instructs the engine to replace the current event with the specified model (a IModel
).
replaceWith
in interface ITextStructureHandler
model
- the model to be used as a replacement.processable
- whether the model should be considered processable or not.public void removeText()
ITextStructureHandler
Instructs the engine to remove the entire event that is being processed.
removeText
in interface ITextStructureHandler
public void reset()
ITextStructureHandler
Resets all actions specified so far for the current processor execution.
reset
in interface ITextStructureHandler
Copyright © 2016 The THYMELEAF team. All rights reserved.