com.aspose.html.dom

Class DocumentType

    • Constructor Detail

      • DocumentType

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

        Initializes a new instance of the DocumentType class.

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

      • getName

        @DOMNameAttribute(name="name")
        public String getName()

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

        Value: The node name.
      • getPublicId

        @DOMNameAttribute(name="publicId")
        public String getPublicId()

        The public identifier of the external subset.

        Value: The public identifier.
      • getSystemId

        @DOMNameAttribute(name="systemId")
        public String getSystemId()

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

        Value: The system identifier.
      • getInternalSubset

        @DOMNameAttribute(name="internalSubset")
        public String getInternalSubset()

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

        Value: The internal subset.
      • getNodeName

        public 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 String toString()

        Returns a String that represents this instance.

        Overrides:
        toString in class Node
        Returns:
        A String that represents this instance.