Package org.thymeleaf.engine
Class XMLDeclarationStructureHandler
- java.lang.Object
-
- org.thymeleaf.engine.XMLDeclarationStructureHandler
-
- All Implemented Interfaces:
IXMLDeclarationStructureHandler
public final class XMLDeclarationStructureHandler extends java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanremoveXMLDeclaration(package private) booleanreplaceWithModel(package private) booleanreplaceWithModelProcessable(package private) IModelreplaceWithModelValue(package private) booleansetXMLDeclaration(package private) java.lang.StringsetXMLDeclarationEncoding(package private) java.lang.StringsetXMLDeclarationKeyword(package private) java.lang.StringsetXMLDeclarationStandalone(package private) java.lang.StringsetXMLDeclarationVersion
-
Constructor Summary
Constructors Constructor Description XMLDeclarationStructureHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveXMLDeclaration()Instructs 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(java.lang.String keyword, java.lang.String version, java.lang.String encoding, java.lang.String standalone)Instructs the engine to set new values into the properties of the XMLDeclaration event being processed.
-
-
-
Field Detail
-
setXMLDeclaration
boolean setXMLDeclaration
-
setXMLDeclarationKeyword
java.lang.String setXMLDeclarationKeyword
-
setXMLDeclarationVersion
java.lang.String setXMLDeclarationVersion
-
setXMLDeclarationEncoding
java.lang.String setXMLDeclarationEncoding
-
setXMLDeclarationStandalone
java.lang.String setXMLDeclarationStandalone
-
replaceWithModel
boolean replaceWithModel
-
replaceWithModelValue
IModel replaceWithModelValue
-
replaceWithModelProcessable
boolean replaceWithModelProcessable
-
removeXMLDeclaration
boolean removeXMLDeclaration
-
-
Method Detail
-
setXMLDeclaration
public void setXMLDeclaration(java.lang.String keyword, java.lang.String version, java.lang.String encoding, java.lang.String standalone)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
public void replaceWith(IModel model, boolean processable)
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
-
-