Class DocTypeStructureHandler

  • All Implemented Interfaces:
    IDocTypeStructureHandler

    public final class DocTypeStructureHandler
    extends 
    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 (a IModel).
      void reset()
      Resets all actions specified so far for the current processor execution.
      void  keyword,  elementName,  publicId,  systemId,  internalSubset)
      Instructs the engine to set new values into the properties of the DocType event being processed.
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Method Detail

      • setDocType

        public void setDocType​( keyword,
                                elementName,
                                publicId,
                                systemId,
                                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.