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 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.voidsetXMLDeclaration(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:IXMLDeclarationStructureHandlerInstructs the engine to set new values into the properties of the XMLDeclaration event being processed.
- Specified by:
setXMLDeclarationin 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:IXMLDeclarationStructureHandlerInstructs the engine to replace the current event with the specified model (a
IModel).- Specified by:
replaceWithin 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:IXMLDeclarationStructureHandlerInstructs the engine to remove the entire event that is being processed.
- Specified by:
removeXMLDeclarationin interfaceIXMLDeclarationStructureHandler
-
reset
public void reset()Description copied from interface:IXMLDeclarationStructureHandlerResets all actions specified so far for the current processor execution.
- Specified by:
resetin interfaceIXMLDeclarationStructureHandler
-