Interface IDocType

  • All Superinterfaces:
    ITemplateEvent

    public interface IDocType
    extends ITemplateEvent

    Event interface defining a DOCTYPE clause.

    Note that any implementations of this interface should be immutable.

    Since:
    3.0.0
    Author:
    Daniel Fernández
    • Method Detail

      • getKeyword

        String getKeyword()

        Returns the keyword of the DOCTYPE clause in its original case (usually DOCTYPE).

        Returns:
        the DOCTYPE keyword.
      • getElementName

        String getElementName()

        Returns the root element name in the DOCTYPE clause. Will normally be html in HTML or XHTML documents.

        Returns:
        the element name
      • getType

        String getType()

        Returns the type of DOCTYPE, usually null, PUBLIC or SYSTEM.

        Returns:
        the type of DOCTYPE (might be null).
      • getPublicId

        String getPublicId()

        Returns the PUBLIC ID, if it has been specified.

        Returns:
        the PUBLIC ID (might be null).
      • getSystemId

        String getSystemId()

        Returns the SYSTEM ID, if it has been specified.

        Returns:
        the SYSTEM ID (might be null).
      • getInternalSubset

        String getInternalSubset()

        Returns the internal subset in the DOCTYPE, if it has been specified.

        Returns:
        the internal subset (might be null).
      • getDocType

        String getDocType()

        Returns the complete DOCTYPE clause as a String.

        Returns:
        the complete DOCTYPE clause.