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
      • cloneNode

        public Node cloneNode(boolean deep)

        Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent (parentNode is null) and no user data.

        Specified by:
        cloneNode in class Node
        Parameters:
        deep - if set to true [deep].
        Returns:
        Returns node
      • toString

        public String toString()

        Returns a System.String that represents this instance.

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