Class DocumentType

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class DocumentType
    extends LeafNode
    A <!DOCTYPE> node.
    • Constructor Detail

      • DocumentType

        public DocumentType​(java.lang.String name,
                            java.lang.String publicId,
                            java.lang.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
      • DocumentType

        public DocumentType​(java.lang.String name,
                            java.lang.String publicId,
                            java.lang.String systemId,
                            java.lang.String baseUri)
        Deprecated.
        Create a new doctype element.
        Parameters:
        name - the doctype's name
        publicId - the doctype's public ID
        systemId - the doctype's system ID
        baseUri - unused
      • DocumentType

        public DocumentType​(java.lang.String name,
                            java.lang.String pubSysKey,
                            java.lang.String publicId,
                            java.lang.String systemId,
                            java.lang.String baseUri)
        Deprecated.
        Create a new doctype element.
        Parameters:
        name - the doctype's name
        publicId - the doctype's public ID
        systemId - the doctype's system ID
        baseUri - unused
    • Method Detail

      • setPubSysKey

        public void setPubSysKey​(java.lang.String value)
      • nodeName

        public java.lang.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​(java.lang.Appendable accum,
                           int depth,
                           Document.OutputSettings out)
                    throws java.io.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:
        java.io.IOException - if appending to the given accumulator fails.
      • has

        private boolean has​(java.lang.String attribute)