org.basex.api.dom
Class BXText

java.lang.Object
  extended by org.basex.api.dom.BXNode
      extended by org.basex.api.dom.BXText
All Implemented Interfaces:
org.w3c.dom.CharacterData, org.w3c.dom.Node, org.w3c.dom.Text
Direct Known Subclasses:
BXCData

public class BXText
extends BXNode
implements org.w3c.dom.Text

DOM - Text implementation.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.api.dom.BXNode
node
 
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
BXText(ANode n)
          Constructor.
 
Method Summary
 void appendData(java.lang.String value)
           
 void deleteData(int off, int count)
           
 java.lang.String getData()
           
 int getLength()
           
 java.lang.String getNodeValue()
           
 java.lang.String getWholeText()
           
 void insertData(int off, java.lang.String value)
           
 boolean isElementContentWhitespace()
           
 void replaceData(int off, int count, java.lang.String value)
           
 BXText replaceWholeText(java.lang.String content)
           
 void setData(java.lang.String dat)
           
 BXText splitText(int off)
           
 java.lang.String substringData(int off, int count)
           
 
Methods inherited from class org.basex.api.dom.BXNode
appendChild, cloneNode, compareDocumentPosition, finish, get, getAttributes, getBaseURI, getChildNodes, getElements, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, kind, lookupNamespaceURI, lookupPrefix, normalize, readOnly, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, 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
 

Constructor Detail

BXText

public BXText(ANode n)
Constructor.

Parameters:
n - node reference
Method Detail

getWholeText

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

isElementContentWhitespace

public boolean isElementContentWhitespace()
Specified by:
isElementContentWhitespace in interface org.w3c.dom.Text

replaceWholeText

public BXText replaceWholeText(java.lang.String content)
Specified by:
replaceWholeText in interface org.w3c.dom.Text

splitText

public BXText splitText(int off)
Specified by:
splitText in interface org.w3c.dom.Text

getData

public final java.lang.String getData()
Specified by:
getData in interface org.w3c.dom.CharacterData

getNodeValue

public final java.lang.String getNodeValue()
Specified by:
getNodeValue in interface org.w3c.dom.Node
Overrides:
getNodeValue in class BXNode

getLength

public final int getLength()
Specified by:
getLength in interface org.w3c.dom.CharacterData

substringData

public final java.lang.String substringData(int off,
                                            int count)
Specified by:
substringData in interface org.w3c.dom.CharacterData

appendData

public final void appendData(java.lang.String value)
Specified by:
appendData in interface org.w3c.dom.CharacterData

deleteData

public final void deleteData(int off,
                             int count)
Specified by:
deleteData in interface org.w3c.dom.CharacterData

insertData

public final void insertData(int off,
                             java.lang.String value)
Specified by:
insertData in interface org.w3c.dom.CharacterData

replaceData

public final void replaceData(int off,
                              int count,
                              java.lang.String value)
Specified by:
replaceData in interface org.w3c.dom.CharacterData

setData

public final void setData(java.lang.String dat)
Specified by:
setData in interface org.w3c.dom.CharacterData