public abstract class NodeImpl extends Object implements Node
This interface is effectively read-only: Setters and update methods inherited
from org.w3c.Node are not supported and will raise an exception
if called.
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
protected int |
node |
protected ExpandedTree |
tree |
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| Modifier and Type | Method and Description |
|---|---|
Node |
appendChild(Node newChild)
Unsupported.
|
protected String |
builtinNSPrefix(String URI) |
Node |
cloneNode(boolean deep)
CloneNode is only supported for document node.
|
protected Node |
cloneNode(Document doc,
boolean deep)
Given a owner document, clone the node
|
short |
compareDocumentPosition(Node other) |
NamedNodeMap |
getAttributes() |
String |
getBaseURI() |
NodeList |
getChildNodes() |
protected NodeList |
getElementsByTagNameNSOrNodeName(String namespaceURI,
String name,
boolean nodeName) |
ExpandedTree |
getExpandedTree() |
Object |
getFeature(String feature,
String version)
Unsupported.
|
Node |
getFirstChild() |
Node |
getLastChild() |
String |
getLocalName() |
String |
getNamespaceURI() |
protected Node |
getNextChild(int node) |
Node |
getNextSibling() |
abstract String |
getNodeName() |
short |
getNodeType() |
String |
getNodeValue() |
protected int |
getNSNodeID(long ordinal) |
protected int |
getNSNodeID(long ordinal,
long minOrdinal) |
Document |
getOwnerDocument()
OwnerDocument of namespace attribute is created artificially,
which only contains the attribute only.
|
Node |
getParentNode() |
String |
getPrefix() |
protected int |
getPrefixID(int uriAtom) |
protected Node |
getPreviousChild(int child) |
Node |
getPreviousSibling() |
String |
getTextContent()
Overwritten by TextImpl, CommentImpl and ProcessingInstructionImpl
|
Object |
getUserData(String key)
Unsupported.
|
boolean |
hasAttributes() |
boolean |
hasChildNodes() |
Node |
insertBefore(Node newChild,
Node refChild)
Unsupported.
|
boolean |
isDefaultNamespace(String namespaceURI) |
boolean |
isEqualNode(Node other) |
boolean |
isSameNode(Node other) |
boolean |
isSupported(String feature,
String version) |
String |
lookupNamespaceURI(String prefix) |
String |
lookupPrefix(String namespaceURI) |
protected int |
nextNSNodeID(int ns,
long minOrdinal) |
void |
normalize()
Unsupported.
|
Node |
removeChild(Node oldChild)
Unsupported.
|
Node |
replaceChild(Node newChild,
Node oldChild)
Unsupported.
|
void |
setNodeValue(String nodeValue)
Unsupported.
|
void |
setPrefix(String prefix)
Unsupported.
|
void |
setTextContent(String textContent)
Unsupported.
|
Object |
setUserData(String key,
Object data,
UserDataHandler handler)
Unsupported.
|
public static final org.apache.commons.logging.Log LOG
protected final ExpandedTree tree
protected final int node
public ExpandedTree getExpandedTree()
public Node appendChild(Node newChild) throws DOMException
appendChild in interface NodeDOMExceptionpublic Node cloneNode(boolean deep)
protected Node cloneNode(Document doc, boolean deep)
doc - owner documentdeep - the flag to indicate deep clone or notpublic short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition in interface NodeDOMExceptionpublic NamedNodeMap getAttributes()
getAttributes in interface Nodepublic String getBaseURI()
getBaseURI in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic Object getFeature(String feature, String version)
getFeature in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic String getLocalName()
getLocalName in interface Nodepublic String getNamespaceURI()
getNamespaceURI in interface Nodeprotected Node getNextChild(int node)
public Node getNextSibling()
getNextSibling in interface Nodepublic abstract String getNodeName()
getNodeName in interface Nodepublic short getNodeType()
getNodeType in interface Nodepublic String getNodeValue() throws DOMException
getNodeValue in interface NodeDOMExceptionpublic Document getOwnerDocument()
getOwnerDocument in interface Nodepublic Node getParentNode()
getParentNode in interface Nodeprotected int getPrefixID(int uriAtom)
protected Node getPreviousChild(int child)
public Node getPreviousSibling()
getPreviousSibling in interface Nodepublic String getTextContent() throws DOMException
getTextContent in interface NodeDOMExceptionpublic Object getUserData(String key)
getUserData in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore in interface NodeDOMExceptionpublic boolean isDefaultNamespace(String namespaceURI)
Not supported for namespace declaration. Overrided by DocumentImpl and ElementImpl
isDefaultNamespace in interface Nodepublic boolean isEqualNode(Node other)
isEqualNode in interface Nodepublic boolean isSameNode(Node other)
isSameNode in interface Nodepublic boolean isSupported(String feature, String version)
isSupported in interface Nodeprotected int getNSNodeID(long ordinal,
long minOrdinal)
protected int getNSNodeID(long ordinal)
protected int nextNSNodeID(int ns,
long minOrdinal)
public String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface Nodepublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface Nodepublic Node removeChild(Node oldChild) throws DOMException
removeChild in interface NodeDOMExceptionpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild in interface NodeDOMExceptionpublic void setNodeValue(String nodeValue) throws DOMException
setNodeValue in interface NodeDOMExceptionpublic void setPrefix(String prefix) throws DOMException
setPrefix in interface NodeDOMExceptionpublic void setTextContent(String textContent) throws DOMException
setTextContent in interface NodeDOMExceptionpublic Object setUserData(String key, Object data, UserDataHandler handler)
setUserData in interface Nodeprotected NodeList getElementsByTagNameNSOrNodeName(String namespaceURI, String name, boolean nodeName)
Copyright © 2024 MarkLogic Corporation
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com