Class DocumentType

  • All Implemented Interfaces:
    java.lang.Cloneable

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

      • DocumentType

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

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

      • 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