Class DocumentType

    • Constructor Detail

      • DocumentType

        public DocumentType(java.lang.String name,
                            java.lang.String publicId,
                            java.lang.String systemId,
                            java.lang.String internalSubset,
                            Document doc)

        Initializes a new instance of the DocumentType class.

        name - The entity name.
        publicId - The public id.
        systemId - The system id.
        internalSubset - The internal subset.
        doc - The document.
    • Method Detail

      • getName

        public java.lang.String getName()

        The name of DTD; i.e., the name immediately following the DOCTYPE keyword.

        Value: The node name.
      • getPublicId

        public java.lang.String getPublicId()

        The public identifier of the external subset.

        Value: The public identifier.
      • getSystemId

        public java.lang.String getSystemId()

        The system identifier of the external subset. This may be an absolute URI or not.

        Value: The system identifier.
      • getInternalSubset

        public java.lang.String getInternalSubset()

        The internal subset as a string, or null if there is none.

        Value: The internal subset.
      • getNodeName

        public java.lang.String getNodeName()

        The name of this node, depending on its type.

        Value: The name of the node.
        Specified by:
        getNodeName in class Node
      • getNodeType

        public int getNodeType()

        A code representing the type of the underlying object.

        Value: The type of the node.
        Specified by:
        getNodeType in class Node
      • toString

        public java.lang.String toString()

        Returns a String that represents this instance.

        toString in class Node
        A String that represents this instance.