Package org.w3c.tidy

Class DOMTextImpl

  • All Implemented Interfaces:
    org.w3c.dom.CharacterData, org.w3c.dom.Node, org.w3c.dom.Text
    Direct Known Subclasses:
    DOMCDATASectionImpl

    public class DOMTextImpl
    extends DOMCharacterDataImpl
    implements org.w3c.dom.Text
    DOMTextImpl.
    Version:
    $Revision: 738 $ ($Author: fgiust $)
    • Constructor Detail

      • DOMTextImpl

        protected DOMTextImpl​(Node adaptee)
        Instantiates a new DOM text node.
        Parameters:
        adaptee - wrapped Tidy node
    • Method Detail

      • getNodeName

        public java.lang.String getNodeName()
        Specified by:
        getNodeName in interface org.w3c.dom.Node
        Overrides:
        getNodeName in class DOMNodeImpl
        See Also:
        Node.getNodeName()
      • getNodeType

        public short getNodeType()
        Specified by:
        getNodeType in interface org.w3c.dom.Node
        Overrides:
        getNodeType in class DOMNodeImpl
        See Also:
        Node.getNodeType()
      • splitText

        public org.w3c.dom.Text splitText​(int offset)
                                   throws org.w3c.dom.DOMException
        Specified by:
        splitText in interface org.w3c.dom.Text
        Throws:
        org.w3c.dom.DOMException
        See Also:
        Text.splitText(int)
      • getWholeText

        public java.lang.String getWholeText()
        Specified by:
        getWholeText in interface org.w3c.dom.Text
        See Also:
        Text.getWholeText()
      • isElementContentWhitespace

        public boolean isElementContentWhitespace()
        Specified by:
        isElementContentWhitespace in interface org.w3c.dom.Text
        See Also:
        Text.isElementContentWhitespace()
      • replaceWholeText

        public org.w3c.dom.Text replaceWholeText​(java.lang.String content)
                                          throws org.w3c.dom.DOMException
        Specified by:
        replaceWholeText in interface org.w3c.dom.Text
        Throws:
        org.w3c.dom.DOMException
        See Also:
        Text.isElementContentWhitespace()