org.exist.dom
Class CharacterDataImpl

java.lang.Object
  extended by org.exist.dom.NodeImpl
      extended by org.exist.dom.StoredNode
          extended by org.exist.dom.CharacterDataImpl
All Implemented Interfaces:
QNameable, Visitable, CharacterData, Node
Direct Known Subclasses:
CDATASectionImpl, CommentImpl, TextImpl

public class CharacterDataImpl
extends StoredNode
implements CharacterData


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
CharacterDataImpl(short nodeType)
           
CharacterDataImpl(short nodeType, char[] data, int start, int howmany)
           
CharacterDataImpl(short nodeType, NodeId nodeId)
           
CharacterDataImpl(short nodeType, NodeId nodeId, String data)
           
CharacterDataImpl(short nodeType, String data)
           
 
Method Summary
 void appendData(char[] data, int start, int howmany)
           
 void appendData(String arg)
           
 void clear()
          Reset this object to its initial state.
 void deleteData(int offset, int count)
           
 String getData()
           
 int getLength()
           
 String getLowerCaseData()
           
 String getNodeValue()
           
 XMLString getXMLString()
           
 void insertData(int offset, String arg)
           
static XMLString readData(NodeId nodeId, Value value, XMLString string)
           
 void release()
          Release all resources hold by this object.
 void replaceData(int offset, int count, String arg)
           
 void setData(char[] data, int start, int howmany)
           
 void setData(String data)
           
 void setData(XMLString data)
           
 String substringData(int offset, int count)
           
 String toString()
           
 
Methods inherited from class org.exist.dom.StoredNode
accept, accept, deserialize, deserialize, equals, getDocId, getDocument, getInternalAddress, getNextSibling, getNodeId, getNodeType, getOwnerDocument, getParentNode, getPath, getPath, getPreviousSibling, getQName, isDirty, serialize, setDirty, setInternalAddress, setNodeId, setOwnerDocument, toString
 
Methods inherited from class org.exist.dom.NodeImpl
appendChild, appendChildren, cloneNode, compareDocumentPosition, getAttributes, getAttributesCount, getBaseURI, getChildCount, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeName, getPrefix, getTextContent, getUserData, hasAttributes, hasChildNodes, insertAfter, insertAfter, insertBefore, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeChild, replaceChild, replaceChild, setAttributes, setNodeName, setNodeValue, setPrefix, setTextContent, setUserData, supports, updateChild, updateChild
 
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, getFirstChild, getLastChild, getLocalName, getNamespaceURI, 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

CharacterDataImpl

public CharacterDataImpl(short nodeType)

CharacterDataImpl

public CharacterDataImpl(short nodeType,
                         NodeId nodeId)

CharacterDataImpl

public CharacterDataImpl(short nodeType,
                         NodeId nodeId,
                         String data)

CharacterDataImpl

public CharacterDataImpl(short nodeType,
                         String data)

CharacterDataImpl

public CharacterDataImpl(short nodeType,
                         char[] data,
                         int start,
                         int howmany)
Method Detail

clear

public void clear()
Description copied from class: StoredNode
Reset this object to its initial state. Required by the parser to be able to reuse node objects.

Overrides:
clear in class StoredNode

appendData

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

appendData

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

deleteData

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

getData

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

getXMLString

public XMLString getXMLString()

getLowerCaseData

public String getLowerCaseData()
                        throws DOMException
Throws:
DOMException

getLength

public int getLength()
Specified by:
getLength in interface CharacterData

getNodeValue

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

insertData

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

replaceData

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

setData

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

setData

public void setData(XMLString data)
             throws DOMException
Throws:
DOMException

setData

public void setData(char[] data,
                    int start,
                    int howmany)
             throws DOMException
Throws:
DOMException

substringData

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

toString

public String toString()
Overrides:
toString in class StoredNode

release

public void release()
Release all resources hold by this object.

Overrides:
release in class StoredNode

readData

public static XMLString readData(NodeId nodeId,
                                 Value value,
                                 XMLString string)


Copyright (C) Wolfgang Meier. All rights reserved.