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 Node
DOMException
public 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 Node
DOMException
public NamedNodeMap getAttributes()
getAttributes
in
interface Node
public String getBaseURI()
getBaseURI
in
interface Node
public NodeList getChildNodes()
getChildNodes
in
interface Node
public Object getFeature(String feature, String version)
getFeature
in
interface Node
public Node getFirstChild()
getFirstChild
in
interface Node
public Node getLastChild()
getLastChild
in
interface Node
public String getLocalName()
getLocalName
in
interface Node
public String getNamespaceURI()
getNamespaceURI
in
interface Node
protected Node getNextChild(int node)
public Node getNextSibling()
getNextSibling
in
interface Node
public abstract String getNodeName()
getNodeName
in
interface Node
public short getNodeType()
getNodeType
in
interface Node
public String getNodeValue() throws DOMException
getNodeValue
in
interface Node
DOMException
public Document getOwnerDocument()
getOwnerDocument
in
interface Node
public Node getParentNode()
getParentNode
in
interface Node
protected int getPrefixID(int uriAtom)
protected Node getPreviousChild(int child)
public Node getPreviousSibling()
getPreviousSibling
in
interface Node
public String getTextContent() throws DOMException
getTextContent
in
interface Node
DOMException
public Object getUserData(String key)
getUserData
in
interface Node
public boolean hasAttributes()
hasAttributes
in
interface Node
public boolean hasChildNodes()
hasChildNodes
in
interface Node
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in
interface Node
DOMException
public boolean isDefaultNamespace(String namespaceURI)
Not supported for namespace declaration. Overrided by DocumentImpl and ElementImpl
isDefaultNamespace
in
interface Node
public boolean isEqualNode(Node other)
isEqualNode
in
interface Node
public boolean isSameNode(Node other)
isSameNode
in
interface Node
public boolean isSupported(String feature, String version)
isSupported
in
interface Node
protected 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 Node
public String lookupPrefix(String namespaceURI)
lookupPrefix
in
interface Node
public Node removeChild(Node oldChild) throws DOMException
removeChild
in
interface Node
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in
interface Node
DOMException
public void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in
interface Node
DOMException
public void setPrefix(String prefix) throws DOMException
setPrefix
in
interface Node
DOMException
public void setTextContent(String textContent) throws DOMException
setTextContent
in
interface Node
DOMException
public Object setUserData(String key, Object data, UserDataHandler handler)
setUserData
in
interface Node
protected NodeList getElementsByTagNameNSOrNodeName(String namespaceURI, String name, boolean nodeName)
Copyright © 2020 MarkLogic
Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com