org.exist.memtree
Class TextImpl

java.lang.Object
  extended byorg.exist.memtree.NodeImpl
      extended byorg.exist.memtree.TextImpl
All Implemented Interfaces:
org.w3c.dom.CharacterData, java.lang.Comparable, Item, org.w3c.dom.Node, NodeValue, QNameable, Sequence, org.w3c.dom.Text

public class TextImpl
extends NodeImpl
implements org.w3c.dom.Text


Field Summary
 
Fields inherited from class org.exist.memtree.NodeImpl
document, NAMESPACE_NODE, nodeNumber, REFERENCE_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.exist.xquery.value.NodeValue
IN_MEMORY_NODE, PERSISTENT_NODE
 
Fields inherited from interface org.exist.xquery.value.Sequence
EMPTY_SEQUENCE
 
Constructor Summary
TextImpl(DocumentImpl doc, int nodeNumber)
           
 
Method Summary
 void appendData(java.lang.String arg0)
           
 void deleteData(int arg0, int arg1)
           
 java.lang.String getData()
           
 int getLength()
          Returns the number of items contained in the sequence.
 java.lang.String getNodeValue()
           
 java.lang.String getWholeText()
          ? @see org.w3c.dom.Text#getWholeText()
 void insertData(int arg0, java.lang.String arg1)
           
 boolean isElementContentWhitespace()
          ? @see org.w3c.dom.Text#isElementContentWhitespace()
 void replaceData(int arg0, int arg1, java.lang.String arg2)
           
 org.w3c.dom.Text replaceWholeText(java.lang.String content)
          ? @see org.w3c.dom.Text#replaceWholeText(java.lang.String)
 void setData(java.lang.String arg0)
           
 org.w3c.dom.Text splitText(int arg0)
           
 java.lang.String substringData(int arg0, int arg1)
           
 java.lang.String toString()
           
 
Methods inherited from class org.exist.memtree.NodeImpl
add, addAll, addContextNode, after, appendChild, atomize, before, clearContext, cloneNode, compareDocumentPosition, compareTo, conversionPreference, convertTo, copyTo, deepCopy, effectiveBooleanValue, equals, equals, expand, getAttributes, getBaseURI, getCardinality, getChildNodes, getDocument, getDocumentSet, getFeature, getFirstChild, getImplementationType, getItemType, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeNumber, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getQName, getStringValue, getTextContent, getType, getUserData, hasAttributes, hasChildNodes, insertBefore, isCached, isDefaultNamespace, isEqualNode, isPersistentSet, isSameNode, isSupported, itemAt, iterate, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeDuplicates, replaceChild, setIsCached, setNodeValue, setPrefix, setSelfAsContext, setTextContent, setUserData, streamTo, toJavaObject, toNodeSet, toSAX, toSequence, unorderedIterator
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Constructor Detail

TextImpl

public TextImpl(DocumentImpl doc,
                int nodeNumber)
Method Detail

splitText

public org.w3c.dom.Text splitText(int arg0)
                           throws org.w3c.dom.DOMException
Specified by:
splitText in interface org.w3c.dom.Text
Throws:
org.w3c.dom.DOMException

getData

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

setData

public void setData(java.lang.String arg0)
             throws org.w3c.dom.DOMException
Specified by:
setData in interface org.w3c.dom.CharacterData
Throws:
org.w3c.dom.DOMException

getLength

public int getLength()
Description copied from interface: Sequence
Returns the number of items contained in the sequence.

Specified by:
getLength in interface org.w3c.dom.CharacterData
Overrides:
getLength in class NodeImpl

getNodeValue

public java.lang.String getNodeValue()
                              throws org.w3c.dom.DOMException
Specified by:
getNodeValue in interface org.w3c.dom.Node
Overrides:
getNodeValue in class NodeImpl
Throws:
org.w3c.dom.DOMException

substringData

public java.lang.String substringData(int arg0,
                                      int arg1)
                               throws org.w3c.dom.DOMException
Specified by:
substringData in interface org.w3c.dom.CharacterData
Throws:
org.w3c.dom.DOMException

appendData

public void appendData(java.lang.String arg0)
                throws org.w3c.dom.DOMException
Specified by:
appendData in interface org.w3c.dom.CharacterData
Throws:
org.w3c.dom.DOMException

insertData

public void insertData(int arg0,
                       java.lang.String arg1)
                throws org.w3c.dom.DOMException
Specified by:
insertData in interface org.w3c.dom.CharacterData
Throws:
org.w3c.dom.DOMException

deleteData

public void deleteData(int arg0,
                       int arg1)
                throws org.w3c.dom.DOMException
Specified by:
deleteData in interface org.w3c.dom.CharacterData
Throws:
org.w3c.dom.DOMException

replaceData

public void replaceData(int arg0,
                        int arg1,
                        java.lang.String arg2)
                 throws org.w3c.dom.DOMException
Specified by:
replaceData in interface org.w3c.dom.CharacterData
Throws:
org.w3c.dom.DOMException

isElementContentWhitespace

public boolean isElementContentWhitespace()
? @see org.w3c.dom.Text#isElementContentWhitespace()


getWholeText

public java.lang.String getWholeText()
? @see org.w3c.dom.Text#getWholeText()


replaceWholeText

public org.w3c.dom.Text replaceWholeText(java.lang.String content)
                                  throws org.w3c.dom.DOMException
? @see org.w3c.dom.Text#replaceWholeText(java.lang.String)

Throws:
org.w3c.dom.DOMException

toString

public java.lang.String toString()


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.