Package org.thymeleaf.engine
Class DocTypeStructureHandler
- Object
-
- org.thymeleaf.engine.DocTypeStructureHandler
-
- All Implemented Interfaces:
IDocTypeStructureHandler
public final class DocTypeStructureHandler extends Object implements IDocTypeStructureHandler
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
removeDocType()
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
setDocType(String keyword, String elementName, String publicId, String systemId, String internalSubset)
Instructs the engine to set new values into the properties of the DocType event being processed.
-
-
-
Method Detail
-
setDocType
public void setDocType(String keyword, String elementName, String publicId, String systemId, String internalSubset)
Description copied from interface:IDocTypeStructureHandler
Instructs the engine to set new values into the properties of the DocType event being processed.
- Specified by:
setDocType
in interfaceIDocTypeStructureHandler
- Parameters:
keyword
- the new keyword valueelementName
- the new elementName valuepublicId
- the new PUBLIC ID (might be null)systemId
- the new SYSTEM ID (might be null)internalSubset
- the new internal subset (might be null)
-
replaceWith
public void replaceWith(IModel model, boolean processable)
Description copied from interface:IDocTypeStructureHandler
Instructs the engine to replace the current event with the specified model (a
IModel
).- Specified by:
replaceWith
in interfaceIDocTypeStructureHandler
- Parameters:
model
- the model to be used as a replacement.processable
- whether the model should be considered processable or not.
-
removeDocType
public void removeDocType()
Description copied from interface:IDocTypeStructureHandler
Instructs the engine to remove the entire event that is being processed.
- Specified by:
removeDocType
in interfaceIDocTypeStructureHandler
-
reset
public void reset()
Description copied from interface:IDocTypeStructureHandler
Resets all actions specified so far for the current processor execution.
- Specified by:
reset
in interfaceIDocTypeStructureHandler
-
-