Class DocumentType

All Implemented Interfaces:
Cloneable

public class DocumentType extends LeafNode
A <!DOCTYPE> node.
  • Field Details

  • Constructor Details

    • DocumentType

      public DocumentType(String name, String publicId, String systemId)
      Create a new doctype element.
      Parameters:
      name - the doctype's name
      publicId - the doctype's public ID
      systemId - the doctype's system ID
  • Method Details

    • setPubSysKey

      public void setPubSysKey(String value)
    • updatePubSyskey

      private void updatePubSyskey()
    • name

      public String name()
      Get this doctype's name (when set, or empty string)
      Returns:
      doctype name
    • publicId

      public String publicId()
      Get this doctype's Public ID (when set, or empty string)
      Returns:
      doctype Public ID
    • systemId

      public String systemId()
      Get this doctype's System ID (when set, or empty string)
      Returns:
      doctype System ID
    • nodeName

      public String nodeName()
      Description copied from class: Node
      Get the node name of this node. Use for debugging purposes and not logic switching (for that, use instanceof).
      Specified by:
      nodeName in class Node
      Returns:
      node name
    • outerHtmlHead

      void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException
      Description copied from class: Node
      Get the outer HTML of this node.
      Specified by:
      outerHtmlHead in class Node
      Parameters:
      accum - accumulator to place HTML into
      Throws:
      IOException - if appending to the given accumulator fails.
    • outerHtmlTail

      void outerHtmlTail(Appendable accum, int depth, Document.OutputSettings out)
      Specified by:
      outerHtmlTail in class Node
    • has

      private boolean has(String attribute)