Class DoctypeToken

All Implemented Interfaces:
BaseToken, HtmlNode

public class DoctypeToken extends BaseHtmlNode implements HtmlNode

HTML doctype token.

  • Field Details

  • Constructor Details

  • Method Details

    • isValid

      public boolean isValid()
    • getContent

      public String getContent()
    • toString

      public String toString()
      Overrides:
      toString in class BaseTokenImpl
    • getType

      public int getType()
      This will retrieve an integer representing the identified DocType
    • getName

      public String getName()
    • serialize

      public void serialize(Serializer serializer, Writer writer) throws IOException
      Specified by:
      serialize in interface BaseToken
      Overrides:
      serialize in class BaseHtmlNode
      Throws:
      IOException
    • getPublicId

      public String getPublicId()
      This will retrieve the public ID of an externally referenced DTD, or an empty String if none is referenced.
    • getSystemId

      public String getSystemId()
      This will retrieve the system ID of an externally referenced DTD, or an empty String if none is referenced.
    • getPart1

      public String getPart1()
    • getPart2

      public String getPart2()
    • getPart3

      @Deprecated public String getPart3()
      Deprecated.
      Deprecated - use getPublicId() instead
      Returns:
      the third part of the DOCSTRING
    • getPart4

      @Deprecated public String getPart4()
      Deprecated.
      Deprecated - use getSystemId() instead
      Returns:
      the fourth part of the DOCSTRING