Package org.thymeleaf.engine
Class XMLDeclarationStructureHandler
Object
org.thymeleaf.engine.XMLDeclarationStructureHandler
- All Implemented Interfaces:
IXMLDeclarationStructureHandler
public final class XMLDeclarationStructureHandler
extends Object
implements IXMLDeclarationStructureHandler
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
setXMLDeclaration
(String keyword, String version, String encoding, String standalone) Instructs the engine to set new values into the properties of the XMLDeclaration event being processed.
-
Method Details
-
setXMLDeclaration
Description copied from interface:IXMLDeclarationStructureHandler
Instructs the engine to set new values into the properties of the XMLDeclaration event being processed.
- Specified by:
setXMLDeclaration
in interfaceIXMLDeclarationStructureHandler
- Parameters:
keyword
- the new keyword valueversion
- the new version value (might be null)encoding
- the new encoding value (might be null)standalone
- the new standalone value (might be null)
-
replaceWith
Description copied from interface:IXMLDeclarationStructureHandler
Instructs the engine to replace the current event with the specified model (a
IModel
).- Specified by:
replaceWith
in interfaceIXMLDeclarationStructureHandler
- Parameters:
model
- the model to be used as a replacement.processable
- whether the model should be considered processable or not.
-
removeXMLDeclaration
public void removeXMLDeclaration()Description copied from interface:IXMLDeclarationStructureHandler
Instructs the engine to remove the entire event that is being processed.
- Specified by:
removeXMLDeclaration
in interfaceIXMLDeclarationStructureHandler
-
reset
public void reset()Description copied from interface:IXMLDeclarationStructureHandler
Resets all actions specified so far for the current processor execution.
- Specified by:
reset
in interfaceIXMLDeclarationStructureHandler
-