org.w3c.tidy
Class DOMTextImpl

java.lang.Object
  |
  +--org.w3c.tidy.DOMNodeImpl
        |
        +--org.w3c.tidy.DOMCharacterDataImpl
              |
              +--org.w3c.tidy.DOMTextImpl
All Implemented Interfaces:
CharacterData, Node, Text
Direct Known Subclasses:
DOMCDATASectionImpl

public class DOMTextImpl
extends DOMCharacterDataImpl
implements Text

DOMTextImpl (c) 1998-2000 (W3C) MIT, INRIA, Keio University See Tidy.java for the copyright notice. Derived from HTML Tidy Release 4 Aug 2000

Version:
1.7, 1999/12/06 Tidy Release 30 Nov 1999
Author:
Dave Raggett , Andy Quick (translation to Java)

Fields inherited from class org.w3c.tidy.DOMNodeImpl
adaptee
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
protected DOMTextImpl(Node adaptee)
           
 
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, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, supports
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.CharacterData
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Constructor Detail

DOMTextImpl

protected DOMTextImpl(Node adaptee)
Method Detail

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface Node
Overrides:
getNodeName in class DOMNodeImpl
See Also:
Node.getNodeName()

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface Node
Overrides:
getNodeType in class DOMNodeImpl
See Also:
Node.getNodeType()

splitText

public Text splitText(int offset)
               throws DOMException
Specified by:
splitText in interface Text
See Also:
Text.splitText(int)

isElementContentWhitespace

public boolean isElementContentWhitespace()
Specified by:
isElementContentWhitespace in interface Text

getWholeText

public String getWholeText()
Specified by:
getWholeText in interface Text

replaceWholeText

public Text replaceWholeText(String content)
                      throws DOMException
Specified by:
replaceWholeText in interface Text


Copyright © 1998-2000 World Wide Web Consortium (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights reserved.