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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
removeXMLDeclaration()
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 Detail
-
setXMLDeclaration
public void setXMLDeclaration(String keyword, String version, String encoding, String standalone)
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
public void replaceWith(IModel model, boolean processable)
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
-
-