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.
| Modifier and Type | Method and 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 (a
IModel). |
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.
|
public void setXMLDeclaration(String keyword, String version, String encoding, String standalone)
IXMLDeclarationStructureHandlerInstructs the engine to set new values into the properties of the XMLDeclaration event being processed.
setXMLDeclaration in interface IXMLDeclarationStructureHandlerkeyword - 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)public void replaceWith(IModel model, boolean processable)
IXMLDeclarationStructureHandler
Instructs the engine to replace the current event with the specified model (a IModel).
replaceWith in interface IXMLDeclarationStructureHandlermodel - the model to be used as a replacement.processable - whether the model should be considered processable or not.public void removeXMLDeclaration()
IXMLDeclarationStructureHandlerInstructs the engine to remove the entire event that is being processed.
removeXMLDeclaration in interface IXMLDeclarationStructureHandlerpublic void reset()
IXMLDeclarationStructureHandlerResets all actions specified so far for the current processor execution.
reset in interface IXMLDeclarationStructureHandlerCopyright © 2016 The THYMELEAF team. All rights reserved.