org.exist.memtree
Class CDATASectionImpl

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

public class CDATASectionImpl
extends NodeImpl
implements CDATASection

Represents a CDATA section.

Author:
wolf

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
CDATASectionImpl(DocumentImpl doc, int nodeNumber)
           
 
Method Summary
 void appendData(String arg)
           
 void deleteData(int offset, int count)
           
 String getData()
           
 Node getFirstChild()
           
 int getItemType()
          Return the primary type to which all items in this sequence belong.
 int getLength()
           
 String getNodeValue()
           
 String getWholeText()
          ? @see org.w3c.dom.Text#getWholeText()
 void insertData(int offset, String arg)
           
 boolean isElementContentWhitespace()
          ? @see org.w3c.dom.Text#isElementContentWhitespace()
 void replaceData(int offset, int count, String arg)
           
 Text replaceWholeText(String content)
          ? @see org.w3c.dom.Text#replaceWholeText(java.lang.String)
 void setData(String data)
           
 Text splitText(int offset)
           
 String substringData(int offset, int count)
           
 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, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeNumber, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getQName, getState, getStringValue, 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, 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

CDATASectionImpl

public CDATASectionImpl(DocumentImpl doc,
                        int nodeNumber)
Parameters:
doc -
nodeNumber -
Method Detail

splitText

public Text splitText(int offset)
               throws DOMException
Specified by:
splitText in interface Text
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

getNodeValue

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

getLength

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

substringData

public String substringData(int offset,
                            int count)
                     throws DOMException
Specified by:
substringData 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

insertData

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

appendData

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

setData

public void setData(String data)
             throws DOMException
Specified by:
setData 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

getFirstChild

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


Copyright (C) Wolfgang Meier. All rights reserved.