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 Details

    • 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 interface IDocTypeStructureHandler
      Parameters:
      keyword - the new keyword value
      elementName - the new elementName value
      publicId - 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 interface IDocTypeStructureHandler
      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 interface IDocTypeStructureHandler
    • reset

      public void reset()
      Description copied from interface: IDocTypeStructureHandler

      Resets all actions specified so far for the current processor execution.

      Specified by:
      reset in interface IDocTypeStructureHandler