public class DocumentImpl extends NodeImpl implements Document
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. To create a modifiable copy of a node for XML document, use
cloneNode(boolean). Text document cannot be cloned.
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
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 and Description |
|---|
DocumentImpl(ExpandedTree tree,
int node) |
| Modifier and Type | Method and Description |
|---|---|
Node |
adoptNode(Node arg0)
Unsupported.
|
Node |
cloneNode(boolean deep)
CloneNode is only supported for document node.
|
Attr |
createAttribute(String arg0)
Unsupported.
|
Attr |
createAttributeNS(String arg0,
String arg1)
Unsupported.
|
CDATASection |
createCDATASection(String arg0)
Unsupported.
|
Comment |
createComment(String arg0)
Unsupported.
|
DocumentFragment |
createDocumentFragment()
Unsupported.
|
Element |
createElement(String arg0)
Unsupported.
|
Element |
createElementNS(String arg0,
String arg1)
Unsupported.
|
EntityReference |
createEntityReference(String arg0)
Unsupported.
|
ProcessingInstruction |
createProcessingInstruction(String arg0,
String arg1)
Unsupported.
|
Text |
createTextNode(String arg0)
Unsupported.
|
NodeList |
getChildNodes() |
DocumentType |
getDoctype()
Returns a dummy DocumentTypeImpl object that contains nothing.
|
Element |
getDocumentElement() |
String |
getDocumentURI() |
DOMConfiguration |
getDomConfig()
Unsupported.
|
Element |
getElementById(String arg0)
Unsupported.
|
NodeList |
getElementsByTagName(String localName) |
NodeList |
getElementsByTagNameNS(String namespaceURI,
String name) |
Node |
getFirstChild() |
int |
getFirstChildIndex() |
DOMImplementation |
getImplementation()
Unsupported.
|
String |
getInputEncoding()
Unsupported.
|
Node |
getLastChild() |
protected Node |
getNextChild(int child) |
String |
getNodeName() |
protected int |
getNumChildren() |
Document |
getOwnerDocument()
OwnerDocument of namespace attribute is created artificially,
which only contains the attribute only.
|
protected Node |
getPreviousChild(int node) |
boolean |
getStrictErrorChecking()
Unsupported.
|
String |
getXmlEncoding()
Unsupported.
|
boolean |
getXmlStandalone()
Unsupported.
|
String |
getXmlVersion() |
boolean |
hasChildNodes() |
Node |
importNode(Node arg0,
boolean arg1)
Unsupported.
|
protected void |
initClonedOwnerDoc() |
boolean |
isDefaultNamespace(String namespaceURI) |
boolean |
isXMLDoc()
Document can be an XML document or a text document.
|
String |
lookupNamespaceURI(String prefix) |
String |
lookupPrefix(String namespaceURI) |
void |
normalizeDocument()
Unsupported.
|
Node |
renameNode(Node arg0,
String arg1,
String arg2)
Unsupported.
|
void |
setDocumentURI(String arg0)
Unsupported.
|
void |
setStrictErrorChecking(boolean arg0)
Unsupported.
|
void |
setXmlStandalone(boolean arg0)
Unsupported.
|
void |
setXmlVersion(String arg0)
Unsupported.
|
appendChild, builtinNSPrefix, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getElementsByTagNameNSOrNodeName, getExpandedTree, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getNSNodeID, getNSNodeID, getParentNode, getPrefix, getPrefixID, getPreviousSibling, getTextContent, getUserData, hasAttributes, insertBefore, isEqualNode, isSameNode, isSupported, nextNSNodeID, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendChild, compareDocumentPosition, getAttributes, getBaseURI, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeType, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, insertBefore, isEqualNode, isSameNode, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic DocumentImpl(ExpandedTree tree, int node)
public Node cloneNode(boolean deep)
Text documents in MarkLogic cannot be cloned. UnsupportedOperationException will be thrown if cloneNode is call on text document. >
DocumentType node will not be cloned as it is not part of the Expanded Tree.>
protected void initClonedOwnerDoc()
throws ParserConfigurationException
ParserConfigurationExceptionpublic boolean isXMLDoc()
public String getNodeName()
NodeImplgetNodeName in interface NodegetNodeName in class NodeImplpublic Document getOwnerDocument()
NodeImplgetOwnerDocument in interface NodegetOwnerDocument in class NodeImplprotected int getNumChildren()
public int getFirstChildIndex()
public NodeList getChildNodes()
NodeImplgetChildNodes in interface NodegetChildNodes in class NodeImplpublic Node getFirstChild()
NodeImplgetFirstChild in interface NodegetFirstChild in class NodeImplpublic Node getLastChild()
NodeImplgetLastChild in interface NodegetLastChild in class NodeImplpublic boolean hasChildNodes()
NodeImplhasChildNodes in interface NodehasChildNodes in class NodeImplprotected Node getNextChild(int child)
getNextChild in class NodeImplprotected Node getPreviousChild(int node)
getPreviousChild in class NodeImplpublic Node adoptNode(Node arg0) throws DOMException
adoptNode in interface DocumentDOMExceptionpublic Attr createAttribute(String arg0) throws DOMException
createAttribute in interface DocumentDOMExceptionpublic Attr createAttributeNS(String arg0, String arg1) throws DOMException
createAttributeNS in interface DocumentDOMExceptionpublic CDATASection createCDATASection(String arg0) throws DOMException
createCDATASection in interface DocumentDOMExceptionpublic Comment createComment(String arg0)
createComment in interface Documentpublic DocumentFragment createDocumentFragment()
createDocumentFragment in interface Documentpublic Element createElement(String arg0) throws DOMException
createElement in interface DocumentDOMExceptionpublic Element createElementNS(String arg0, String arg1) throws DOMException
createElementNS in interface DocumentDOMExceptionpublic EntityReference createEntityReference(String arg0) throws DOMException
createEntityReference in interface DocumentDOMExceptionpublic ProcessingInstruction createProcessingInstruction(String arg0, String arg1) throws DOMException
createProcessingInstruction in interface DocumentDOMExceptionpublic Text createTextNode(String arg0)
createTextNode in interface Documentpublic DocumentType getDoctype()
getDoctype in interface Documentpublic Element getDocumentElement()
getDocumentElement in interface Documentpublic boolean isDefaultNamespace(String namespaceURI)
NodeImplNot supported for namespace declaration. Overrided by DocumentImpl and ElementImpl
isDefaultNamespace in interface NodeisDefaultNamespace in class NodeImplpublic String getDocumentURI()
getDocumentURI in interface Documentpublic DOMConfiguration getDomConfig()
getDomConfig in interface Documentpublic Element getElementById(String arg0)
getElementById in interface Documentpublic NodeList getElementsByTagNameNS(String namespaceURI, String name)
getElementsByTagNameNS in interface Documentpublic NodeList getElementsByTagName(String localName)
getElementsByTagName in interface Documentpublic DOMImplementation getImplementation()
getImplementation in interface Documentpublic String getInputEncoding()
getInputEncoding in interface Documentpublic boolean getStrictErrorChecking()
getStrictErrorChecking in interface Documentpublic String getXmlEncoding()
getXmlEncoding in interface Documentpublic boolean getXmlStandalone()
getXmlStandalone in interface Documentpublic String getXmlVersion()
getXmlVersion in interface Documentpublic Node importNode(Node arg0, boolean arg1) throws DOMException
importNode in interface DocumentDOMExceptionpublic String lookupNamespaceURI(String prefix)
NodeImpllookupNamespaceURI in interface NodelookupNamespaceURI in class NodeImplpublic String lookupPrefix(String namespaceURI)
NodeImpllookupPrefix in interface NodelookupPrefix in class NodeImplpublic void normalizeDocument()
normalizeDocument in interface Documentpublic Node renameNode(Node arg0, String arg1, String arg2) throws DOMException
renameNode in interface DocumentDOMExceptionpublic void setDocumentURI(String arg0)
setDocumentURI in interface Documentpublic void setStrictErrorChecking(boolean arg0)
setStrictErrorChecking in interface Documentpublic void setXmlStandalone(boolean arg0)
throws DOMException
setXmlStandalone in interface DocumentDOMExceptionpublic void setXmlVersion(String arg0) throws DOMException
setXmlVersion in interface DocumentDOMExceptionCopyright © 2021 MarkLogic Corporation
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com