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)
IXMLDeclarationStructureHandler
Instructs the engine to set new values into the properties of the XMLDeclaration event being processed.
setXMLDeclaration
in interface IXMLDeclarationStructureHandler
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)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 IXMLDeclarationStructureHandler
model
- the model to be used as a replacement.processable
- whether the model should be considered processable or not.public void removeXMLDeclaration()
IXMLDeclarationStructureHandler
Instructs the engine to remove the entire event that is being processed.
removeXMLDeclaration
in interface IXMLDeclarationStructureHandler
public void reset()
IXMLDeclarationStructureHandler
Resets all actions specified so far for the current processor execution.
reset
in interface IXMLDeclarationStructureHandler
Copyright © 2017 The THYMELEAF team. All rights reserved.