Class DOMDocumentType

All Implemented Interfaces:
DOMRange, DocumentType, Node

public class DOMDocumentType extends DTDDeclNode implements DocumentType
A doctype node.
  • Constructor Details

    • DOMDocumentType

      public DOMDocumentType(int start, int end)
  • Method Details

    • getOwnerDocType

      public DOMDocumentType getOwnerDocType()
      Overrides:
      getOwnerDocType in class DTDDeclNode
    • getTextContent

      public String getTextContent()
      Specified by:
      getTextContent in interface Node
      Overrides:
      getTextContent in class DOMNode
    • getKind

      public String getKind()
      Returns the document type kind (PUBLIC or SYSTEM)
      Returns:
      the document type kind (PUBLIC or SYSTEM)
    • getKindNode

      public DTDDeclParameter getKindNode()
      Returns the node where document type kind (PUBLIC or SYSTEM) is declared
      Returns:
      the node where document type kind (PUBLIC or SYSTEM) is declared
    • getNodeName

      public String getNodeName()
      Specified by:
      getNodeName in interface Node
      Overrides:
      getNodeName in class DTDDeclNode
    • getNodeType

      public short getNodeType()
      Specified by:
      getNodeType in interface Node
      Overrides:
      getNodeType in class DTDDeclNode
    • getEntities

      public NamedNodeMap getEntities()
      Specified by:
      getEntities in interface DocumentType
    • getInternalSubset

      public String getInternalSubset()
      Specified by:
      getInternalSubset in interface DocumentType
    • setStartInternalSubset

      public void setStartInternalSubset(int start)
    • setEndInternalSubset

      public void setEndInternalSubset(int end)
    • isInternalSubset

      public boolean isInternalSubset(DTDDeclParameter parameter)
    • getNotations

      public NamedNodeMap getNotations()
      Specified by:
      getNotations in interface DocumentType
    • getPublicId

      public String getPublicId()
      Specified by:
      getPublicId in interface DocumentType
    • getPublicIdWithoutQuotes

      public String getPublicIdWithoutQuotes()
    • getPublicIdNode

      public DTDDeclParameter getPublicIdNode()
    • getSystemId

      public String getSystemId()
      Specified by:
      getSystemId in interface DocumentType
    • getSystemIdNode

      public DTDDeclParameter getSystemIdNode()
    • getSystemIdWithoutQuotes

      public String getSystemIdWithoutQuotes()
    • getSubstring

      public String getSubstring(int start, int end)
      Returns a substring of the whole document. Since offset values are relative to 'this.start' we need to subtract getStart() to make them relative to 'content'
    • getInternalSubsetNode

      public DTDDeclParameter getInternalSubsetNode()
      Returns the declaration parameter that represents the internal subset, or null if there is no internal subset
      Returns:
      the declaration parameter that represents the internal subset, or null if there is no internal subset