Package com.marklogic.dom
Class TextImpl
- java.lang.Object
-
- com.marklogic.dom.NodeImpl
-
- com.marklogic.dom.CharacterDataImpl
-
- com.marklogic.dom.TextImpl
-
- All Implemented Interfaces:
CharacterData,Node,Text
public class TextImpl extends CharacterDataImpl implements Text
A read-only W3C DOM Node implementation of MarkLogic's internal representation of text data as stored in the expanded tree cache of a forest on disk.This interface is effectively read-only: Setters and update methods inherited from
org.w3c.Nodeare not supported and will raise an exception if called.
-
-
Field Summary
-
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
Constructors Constructor Description TextImpl(ExpandedTree tree, int node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NodecloneNode(Document doc, boolean deep)Given a owner document, clone the nodeStringgetNodeName()StringgetTextContent()Overwritten by TextImpl, CommentImpl and ProcessingInstructionImplStringgetWholeText()Unsupported.booleanisElementContentWhitespace()Unsupported.TextreplaceWholeText(String content)Unsupported.TextsplitText(int offset)Unsupported.-
Methods inherited from class com.marklogic.dom.CharacterDataImpl
appendData, deleteData, getData, getLength, getNodeValue, insertData, replaceData, setData, substringData
-
Methods inherited from class com.marklogic.dom.NodeImpl
appendChild, builtinNSPrefix, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getElementsByTagNameNSOrNodeName, getExpandedTree, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextChild, getNextSibling, getNodeType, getNSNodeID, getNSNodeID, getOwnerDocument, getParentNode, getPrefix, getPrefixID, getPreviousChild, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, nextNSNodeID, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.CharacterData
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
TextImpl
public TextImpl(ExpandedTree tree, int node)
-
-
Method Detail
-
cloneNode
protected Node cloneNode(Document doc, boolean deep)
Description copied from class:NodeImplGiven a owner document, clone the node
-
getNodeName
public String getNodeName()
Description copied from class:NodeImpl- Specified by:
getNodeNamein interfaceNode- Specified by:
getNodeNamein classNodeImpl
-
getTextContent
public String getTextContent() throws DOMException
Description copied from class:NodeImplOverwritten by TextImpl, CommentImpl and ProcessingInstructionImpl- Specified by:
getTextContentin interfaceNode- Overrides:
getTextContentin classNodeImpl- Throws:
DOMException
-
getWholeText
public String getWholeText()
Unsupported.- Specified by:
getWholeTextin interfaceText
-
isElementContentWhitespace
public boolean isElementContentWhitespace()
Unsupported.- Specified by:
isElementContentWhitespacein interfaceText
-
replaceWholeText
public Text replaceWholeText(String content) throws DOMException
Unsupported.- Specified by:
replaceWholeTextin interfaceText- Throws:
DOMException
-
splitText
public Text splitText(int offset) throws DOMException
Unsupported.- Specified by:
splitTextin interfaceText- Throws:
DOMException
-
-