org.exist.memtree
Class TextImpl

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

public class TextImpl
extends NodeImpl
implements Text


Field Summary
 
Fields inherited from class org.exist.memtree.NodeImpl
NAMESPACE_NODE, REFERENCE_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
 
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(String arg0)
           
 void deleteData(int arg0, int arg1)
           
 String getData()
           
 Node getFirstChild()
           
 int getItemType()
          Return the primary type to which all items in this sequence belong.
 int getLength()
           
 String getLocalName()
           
 String getNamespaceURI()
           
 String getNodeValue()
           
 String getStringValue()
          Return the string value of this item (see the definition of string value in XPath).
 String getWholeText()
          ? @see org.w3c.dom.Text#getWholeText()
 void insertData(int arg0, String arg1)
           
 boolean isElementContentWhitespace()
          ? @see org.w3c.dom.Text#isElementContentWhitespace()
 void replaceData(int arg0, int arg1, String arg2)
           
 Text replaceWholeText(String content)
          ? @see org.w3c.dom.Text#replaceWholeText(java.lang.String)
 void setData(String arg0)
           
 Text splitText(int arg0)
           
 String substringData(int arg0, int arg1)
           
 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, getCollectionIterator, getDocument, getDocumentSet, getFeature, getImplementationType, getItemCount, getLastChild, getNextSibling, getNode, getNodeName, getNodeNumber, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getQName, getState, getTextContent, getType, getUserData, hasAttributes, hasChanged, hasChildNodes, hasMany, hasOne, insertBefore, isCacheable, isCached, isDefaultNamespace, isEmpty, isEqualNode, isPersistentSet, isSameNode, isSupported, itemAt, iterate, lookupNamespaceURI, lookupPrefix, nodeMoved, normalize, removeChild, removeDuplicates, replaceChild, setIsCached, setNodeValue, setPrefix, setSelfAsContext, setTextContent, setUserData, streamTo, toJavaObject, toNodeSet, toSAX, toSequence, unorderedIterator
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getLastChild, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Constructor Detail

TextImpl

public TextImpl(DocumentImpl doc,
                int nodeNumber)
Method Detail

getStringValue

public String getStringValue()
Description copied from interface: Item
Return the string value of this item (see the definition of string value in XPath).

Specified by:
getStringValue in interface Item
Specified by:
getStringValue in interface Sequence
Overrides:
getStringValue in class NodeImpl

splitText

public Text splitText(int arg0)
               throws DOMException
Specified by:
splitText in interface Text
Throws:
DOMException

getData

public String getData()
               throws DOMException
Specified by:
getData in interface CharacterData
Throws:
DOMException

setData

public void setData(String arg0)
             throws DOMException
Specified by:
setData in interface CharacterData
Throws:
DOMException

getLength

public int getLength()
Specified by:
getLength in interface CharacterData
Overrides:
getLength in class NodeImpl

getNodeValue

public String getNodeValue()
                    throws DOMException
Specified by:
getNodeValue in interface Node
Overrides:
getNodeValue in class NodeImpl
Throws:
DOMException

getLocalName

public String getLocalName()
Specified by:
getLocalName in interface Node
Overrides:
getLocalName in class NodeImpl

getNamespaceURI

public String getNamespaceURI()
Specified by:
getNamespaceURI in interface Node
Overrides:
getNamespaceURI in class NodeImpl

getFirstChild

public Node getFirstChild()
Specified by:
getFirstChild in interface Node
Overrides:
getFirstChild in class NodeImpl

substringData

public String substringData(int arg0,
                            int arg1)
                     throws DOMException
Specified by:
substringData in interface CharacterData
Throws:
DOMException

appendData

public void appendData(String arg0)
                throws DOMException
Specified by:
appendData in interface CharacterData
Throws:
DOMException

insertData

public void insertData(int arg0,
                       String arg1)
                throws DOMException
Specified by:
insertData in interface CharacterData
Throws:
DOMException

deleteData

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

replaceData

public void replaceData(int arg0,
                        int arg1,
                        String arg2)
                 throws DOMException
Specified by:
replaceData in interface CharacterData
Throws:
DOMException

isElementContentWhitespace

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

Specified by:
isElementContentWhitespace in interface Text

getWholeText

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

Specified by:
getWholeText in interface Text

replaceWholeText

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

Specified by:
replaceWholeText in interface Text
Throws:
DOMException

getItemType

public int getItemType()
Description copied from interface: Sequence
Return the primary type to which all items in this sequence belong. This is Type.NODE for node sets, Type.ITEM for other sequences with mixed items.

Specified by:
getItemType in interface Sequence
Overrides:
getItemType in class NodeImpl
Returns:
the primary type of the items in this sequence.

toString

public String toString()
Overrides:
toString in class Object


Copyright (C) Wolfgang Meier. All rights reserved.