com.aspose.html.dom

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.

        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 java.lang.String getName()

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

        Value: The node name.
      • getPublicId

        @DOMNameAttribute(name="publicId")
        public java.lang.String getPublicId()

        The public identifier of the external subset.

        Value: The public identifier.
      • getSystemId

        @DOMNameAttribute(name="systemId")
        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

        @DOMNameAttribute(name="internalSubset")
        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.

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