org.exist.dom
Class TextImpl

java.lang.Object
  extended by org.exist.dom.NodeImpl
      extended by org.exist.dom.StoredNode
          extended by org.exist.dom.CharacterDataImpl
              extended by org.exist.dom.TextImpl
All Implemented Interfaces:
NodeHandle, QNameable, Visitable, CharacterData, Node, Text

public class TextImpl
extends CharacterDataImpl
implements Text

TextImpl.java

Author:
wolf

Field Summary
 
Fields inherited from class org.exist.dom.StoredNode
LENGTH_SIGNATURE_LENGTH, UNKNOWN_NODE_IMPL_ADDRESS
 
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
TextImpl()
           
TextImpl(NodeId nodeId, String data)
           
TextImpl(String data)
           
 
Method Summary
 void appendData(char[] data, int start, int howmany)
           
 void appendData(String arg)
           
 short compareDocumentPosition(Node other)
          ? @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
 void deleteData(int offset, int count)
           
static StoredNode deserialize(byte[] data, int start, int len, DocumentImpl doc, boolean pooled)
           
 String getBaseURI()
          ? @see org.w3c.dom.Node#getBaseURI()
 int getChildCount()
           
 Object getFeature(String feature, String version)
          ? @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
 Node getFirstChild()
           
 int getLength()
           
 String getLocalName()
           
 String getNamespaceURI()
           
 String getNodeValue()
           
 String getTextContent()
          ? @see org.w3c.dom.Node#getTextContent()
 Object getUserData(String key)
          ? @see org.w3c.dom.Node#getUserData(java.lang.String)
 String getWholeText()
          ? @see org.w3c.dom.Text#getWholeText()
 boolean hasChildNodes()
           
 void insertData(int offset, String arg)
           
 boolean isDefaultNamespace(String namespaceURI)
          ? @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
 boolean isElementContentWhitespace()
          ? @see org.w3c.dom.Text#isElementContentWhitespace()
 boolean isEqualNode(Node arg)
          ? @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
 boolean isSameNode(Node other)
          ? @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
 String lookupNamespaceURI(String prefix)
          ? @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
 String lookupPrefix(String namespaceURI)
          ? @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
 void replaceData(int offset, int count, String arg)
           
 Text replaceWholeText(String content)
          ? @see org.w3c.dom.Text#replaceWholeText(java.lang.String)
 byte[] serialize()
           
 void setNodeValue(String value)
          Set the node value.
 void setTextContent(String textContent)
          ? @see org.w3c.dom.Node#setTextContent(java.lang.String)
 Object setUserData(String key, Object data, UserDataHandler handler)
          ? @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
 Text splitText(int offset)
           
 String substringData(int offset, int count)
           
 String toString()
           
 String toString(boolean top)
           
 
Methods inherited from class org.exist.dom.CharacterDataImpl
clear, getData, getLowerCaseData, getStringLength, getXMLString, readData, release, setData, setData, setData
 
Methods inherited from class org.exist.dom.StoredNode
accept, accept, deserialize, equals, getDocId, getDocument, getInternalAddress, getNextSibling, getNodeId, getNodeType, getOwnerDocument, getParentNode, getParentStoredNode, getPath, getPath, getPreviousSibling, getQName, isDirty, setDirty, setInternalAddress, setNodeId, setOwnerDocument
 
Methods inherited from class org.exist.dom.NodeImpl
appendChild, appendChildren, cloneNode, getAttributes, getAttributesCount, getChildNodes, getLastChild, getNodeName, getPrefix, hasAttributes, insertAfter, insertAfter, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setAttributes, setNodeName, setPrefix, supports, updateChild, updateChild
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.CharacterData
getData, setData
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getLastChild, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, insertBefore, isSupported, normalize, removeChild, replaceChild, setPrefix
 

Constructor Detail

TextImpl

public TextImpl()

TextImpl

public TextImpl(String data)

TextImpl

public TextImpl(NodeId nodeId,
                String data)
Method Detail

getLocalName

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

getNamespaceURI

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

serialize

public byte[] serialize()
Overrides:
serialize in class StoredNode

deserialize

public static StoredNode deserialize(byte[] data,
                                     int start,
                                     int len,
                                     DocumentImpl doc,
                                     boolean pooled)

appendData

public void appendData(String arg)
                throws DOMException
Specified by:
appendData in interface CharacterData
Overrides:
appendData in class CharacterDataImpl
Throws:
DOMException

appendData

public void appendData(char[] data,
                       int start,
                       int howmany)
                throws DOMException
Overrides:
appendData in class CharacterDataImpl
Throws:
DOMException

deleteData

public void deleteData(int offset,
                       int count)
                throws DOMException
Specified by:
deleteData in interface CharacterData
Overrides:
deleteData in class CharacterDataImpl
Throws:
DOMException

getLength

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

getNodeValue

public String getNodeValue()
Specified by:
getNodeValue in interface Node
Overrides:
getNodeValue in class CharacterDataImpl
See Also:
Node.getNodeValue()

insertData

public void insertData(int offset,
                       String arg)
                throws DOMException
Specified by:
insertData in interface CharacterData
Overrides:
insertData in class CharacterDataImpl
Throws:
DOMException

replaceData

public void replaceData(int offset,
                        int count,
                        String arg)
                 throws DOMException
Specified by:
replaceData in interface CharacterData
Overrides:
replaceData in class CharacterDataImpl
Throws:
DOMException

setNodeValue

public void setNodeValue(String value)
                  throws DOMException
Description copied from class: NodeImpl
Set the node value.

Specified by:
setNodeValue in interface Node
Overrides:
setNodeValue in class NodeImpl
Parameters:
value - The new nodeValue value
Throws:
DOMException - Description of the Exception

splitText

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

substringData

public String substringData(int offset,
                            int count)
                     throws DOMException
Specified by:
substringData in interface CharacterData
Overrides:
substringData in class CharacterDataImpl
Throws:
DOMException

toString

public String toString(boolean top)
Overrides:
toString in class StoredNode

toString

public String toString()
Overrides:
toString in class CharacterDataImpl

getChildCount

public int getChildCount()
Overrides:
getChildCount in class NodeImpl

hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface Node
Overrides:
hasChildNodes in class NodeImpl
See Also:
Node.hasChildNodes()

getFirstChild

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

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

getBaseURI

public String getBaseURI()
? @see org.w3c.dom.Node#getBaseURI()

Specified by:
getBaseURI in interface Node
Overrides:
getBaseURI in class NodeImpl

compareDocumentPosition

public short compareDocumentPosition(Node other)
                              throws DOMException
? @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)

Specified by:
compareDocumentPosition in interface Node
Overrides:
compareDocumentPosition in class NodeImpl
Throws:
DOMException

getTextContent

public String getTextContent()
                      throws DOMException
? @see org.w3c.dom.Node#getTextContent()

Specified by:
getTextContent in interface Node
Overrides:
getTextContent in class NodeImpl
Throws:
DOMException

setTextContent

public void setTextContent(String textContent)
                    throws DOMException
? @see org.w3c.dom.Node#setTextContent(java.lang.String)

Specified by:
setTextContent in interface Node
Overrides:
setTextContent in class NodeImpl
Throws:
DOMException

isSameNode

public boolean isSameNode(Node other)
? @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)

Specified by:
isSameNode in interface Node
Overrides:
isSameNode in class NodeImpl

lookupPrefix

public String lookupPrefix(String namespaceURI)
? @see org.w3c.dom.Node#lookupPrefix(java.lang.String)

Specified by:
lookupPrefix in interface Node
Overrides:
lookupPrefix in class NodeImpl

isDefaultNamespace

public boolean isDefaultNamespace(String namespaceURI)
? @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)

Specified by:
isDefaultNamespace in interface Node
Overrides:
isDefaultNamespace in class NodeImpl

lookupNamespaceURI

public String lookupNamespaceURI(String prefix)
? @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)

Specified by:
lookupNamespaceURI in interface Node
Overrides:
lookupNamespaceURI in class NodeImpl

isEqualNode

public boolean isEqualNode(Node arg)
? @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)

Specified by:
isEqualNode in interface Node
Overrides:
isEqualNode in class NodeImpl

getFeature

public Object getFeature(String feature,
                         String version)
? @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)

Specified by:
getFeature in interface Node
Overrides:
getFeature in class NodeImpl

setUserData

public Object setUserData(String key,
                          Object data,
                          UserDataHandler handler)
? @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)

Specified by:
setUserData in interface Node
Overrides:
setUserData in class NodeImpl

getUserData

public Object getUserData(String key)
? @see org.w3c.dom.Node#getUserData(java.lang.String)

Specified by:
getUserData in interface Node
Overrides:
getUserData in class NodeImpl


Copyright (C) Wolfgang Meier. All rights reserved.