org.w3c.tidy

Class DOMTextImpl

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

public class DOMTextImpl
extends DOMCharacterDataImpl
implements Text

DOMTextImpl.
Version:
$Revision: 738 $ ($Author: fgiust $)
Authors:
Dave Raggett dsr@w3.org
Andy Quick ac.quick@sympatico.ca (translation to Java)
Fabrizio Giustina

Field Summary

Fields inherited from class org.w3c.tidy.DOMNodeImpl

adaptee

Constructor Summary

DOMTextImpl(Node adaptee)
Instantiates a new DOM text node.

Method Summary

String
getNodeName()
short
getNodeType()
String
getWholeText()
boolean
isElementContentWhitespace()
Text
replaceWholeText(String content)
Text
splitText(int offset)

Methods inherited from class org.w3c.tidy.DOMCharacterDataImpl

appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData

Methods inherited from class org.w3c.tidy.DOMNodeImpl

appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, supports

Constructor Details

DOMTextImpl

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

Method Details

getNodeName

public String getNodeName()
Overrides:
getNodeName in interface DOMNodeImpl
See Also:
org.w3c.dom.Node.getNodeName

getNodeType

public short getNodeType()
Overrides:
getNodeType in interface DOMNodeImpl
See Also:
org.w3c.dom.Node.getNodeType

getWholeText

public String getWholeText()
See Also:
org.w3c.dom.Text.getWholeText()

isElementContentWhitespace

public boolean isElementContentWhitespace()
See Also:
org.w3c.dom.Text.isElementContentWhitespace()

replaceWholeText

public Text replaceWholeText(String content)
            throws DOMException
See Also:
org.w3c.dom.Text.isElementContentWhitespace()

splitText

public Text splitText(int offset)
            throws DOMException
See Also:
org.w3c.dom.Text.splitText(int)