Package com.marklogic.dom
Class CommentImpl
- java.lang.Object
-
- com.marklogic.dom.NodeImpl
-
- com.marklogic.dom.CharacterDataImpl
-
- com.marklogic.dom.CommentImpl
-
- All Implemented Interfaces:
CharacterData,Comment,Node
public class CommentImpl extends CharacterDataImpl implements Comment
A read-only W3C DOM Node implementation of MarkLogic's internal representation of an XML comment 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 CommentImpl(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 ProcessingInstructionImplStringlookupNamespaceURI(String prefix)StringlookupPrefix(String namespaceURI)-
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, 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, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
CommentImpl
public CommentImpl(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()
- Specified by:
getNodeNamein interfaceNode- Specified by:
getNodeNamein classNodeImpl
-
getTextContent
public String getTextContent() throws DOMException
Overwritten by TextImpl, CommentImpl and ProcessingInstructionImpl- Specified by:
getTextContentin interfaceNode- Overrides:
getTextContentin classNodeImpl- Throws:
DOMException
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
- Specified by:
lookupPrefixin interfaceNode- Overrides:
lookupPrefixin classNodeImpl
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURIin interfaceNode- Overrides:
lookupNamespaceURIin classNodeImpl
-
-