Package com.marklogic.dom
Class ElementImpl
- java.lang.Object
-
- com.marklogic.dom.NodeImpl
-
- com.marklogic.dom.ElementImpl
-
public class ElementImpl extends NodeImpl implements Element
A read-only W3C DOM Node implementation of MarkLogic's internal representation of a document element 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 Modifier and Type Field Description protected AttributeNodeMapImplattributesstatic org.apache.commons.logging.LogLOGprotected intnumNSDecl-
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 ElementImpl(ExpandedTree tree, int node)
-
Method Summary
-
Methods inherited from class com.marklogic.dom.NodeImpl
appendChild, builtinNSPrefix, cloneNode, compareDocumentPosition, getBaseURI, getElementsByTagNameNSOrNodeName, getExpandedTree, getFeature, getNextSibling, getNodeType, getNodeValue, getNSNodeID, getNSNodeID, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, insertBefore, 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.Node
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getFeature, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, insertBefore, isEqualNode, isSameNode, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Field Detail
-
LOG
public static final org.apache.commons.logging.Log LOG
-
attributes
protected AttributeNodeMapImpl attributes
-
numNSDecl
protected int numNSDecl
-
-
Constructor Detail
-
ElementImpl
public ElementImpl(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
-
getAttribute
public String getAttribute(String name)
- Specified by:
getAttributein interfaceElement
-
getAttributeNode
public Attr getAttributeNode(String name)
- Specified by:
getAttributeNodein interfaceElement
-
getAttributeNodeNS
public Attr getAttributeNodeNS(String namespaceURI, String localName)
- Specified by:
getAttributeNodeNSin interfaceElement
-
getAttributeNS
public String getAttributeNS(String namespaceURI, String localName)
- Specified by:
getAttributeNSin interfaceElement
-
getAttributes
public NamedNodeMap getAttributes()
Attributes returned contains default attributes enforced by XML Schema in MarkLogic.
- Specified by:
getAttributesin interfaceNode- Overrides:
getAttributesin classNodeImpl
-
getChildNodes
public NodeList getChildNodes()
- Specified by:
getChildNodesin interfaceNode- Overrides:
getChildNodesin classNodeImpl
-
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
Not supported for namespace declaration. Overrided by DocumentImpl and ElementImpl
- Specified by:
isDefaultNamespacein interfaceNode- Overrides:
isDefaultNamespacein classNodeImpl
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String name)
- Specified by:
getElementsByTagNameNSin interfaceElement
-
getElementsByTagName
public NodeList getElementsByTagName(String localName)
- Specified by:
getElementsByTagNamein interfaceElement
-
getNumChildren
protected int getNumChildren()
-
getFirstChildIndex
protected int getFirstChildIndex()
-
getFirstChild
public Node getFirstChild()
Description copied from class:NodeImpl- Specified by:
getFirstChildin interfaceNode- Overrides:
getFirstChildin classNodeImpl
-
getLastChild
public Node getLastChild()
Description copied from class:NodeImpl- Specified by:
getLastChildin interfaceNode- Overrides:
getLastChildin classNodeImpl
-
getLocalName
public String getLocalName()
Description copied from class:NodeImpl- Specified by:
getLocalNamein interfaceNode- Overrides:
getLocalNamein classNodeImpl
-
getNamespaceURI
public String getNamespaceURI()
Description copied from class:NodeImpl- Specified by:
getNamespaceURIin interfaceNode- Overrides:
getNamespaceURIin classNodeImpl
-
getNextChild
public Node getNextChild(int child)
- Overrides:
getNextChildin classNodeImpl
-
getNodeName
public String getNodeName()
Description copied from class:NodeImpl- Specified by:
getNodeNamein interfaceNode- Specified by:
getNodeNamein classNodeImpl
-
getPrefixID
protected int getPrefixID(int uriAtom)
- Overrides:
getPrefixIDin classNodeImpl
-
getNumNSDecl
public int getNumNSDecl()
-
getPreviousChild
protected Node getPreviousChild(int child)
- Overrides:
getPreviousChildin classNodeImpl
-
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfoin interfaceElement
-
getTagName
public String getTagName()
- Specified by:
getTagNamein interfaceElement
-
hasAttribute
public boolean hasAttribute(String name)
- Specified by:
hasAttributein interfaceElement
-
hasAttributeNS
public boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException
- Specified by:
hasAttributeNSin interfaceElement- Throws:
DOMException
-
hasAttributes
public boolean hasAttributes()
Description copied from class:NodeImpl- Specified by:
hasAttributesin interfaceNode- Overrides:
hasAttributesin classNodeImpl
-
hasChildNodes
public boolean hasChildNodes()
Description copied from class:NodeImpl- Specified by:
hasChildNodesin interfaceNode- Overrides:
hasChildNodesin classNodeImpl
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
Description copied from class:NodeImpl- Specified by:
lookupNamespaceURIin interfaceNode- Overrides:
lookupNamespaceURIin classNodeImpl
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
Description copied from class:NodeImpl- Specified by:
lookupPrefixin interfaceNode- Overrides:
lookupPrefixin classNodeImpl
-
removeAttribute
public void removeAttribute(String name) throws DOMException
Unsupported.- Specified by:
removeAttributein interfaceElement- Throws:
DOMException
-
removeAttributeNode
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
Unsupported.- Specified by:
removeAttributeNodein interfaceElement- Throws:
DOMException
-
removeAttributeNS
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
Unsupported.- Specified by:
removeAttributeNSin interfaceElement- Throws:
DOMException
-
setAttribute
public void setAttribute(String name, String value) throws DOMException
Unsupported.- Specified by:
setAttributein interfaceElement- Throws:
DOMException
-
setAttributeNode
public Attr setAttributeNode(Attr newAttr) throws DOMException
Unsupported.- Specified by:
setAttributeNodein interfaceElement- Throws:
DOMException
-
setAttributeNodeNS
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
Unsupported.- Specified by:
setAttributeNodeNSin interfaceElement- Throws:
DOMException
-
setAttributeNS
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
Unsupported.- Specified by:
setAttributeNSin interfaceElement- Throws:
DOMException
-
setIdAttribute
public void setIdAttribute(String name, boolean isId) throws DOMException
Unsupported.- Specified by:
setIdAttributein interfaceElement- Throws:
DOMException
-
setIdAttributeNode
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
Unsupported.- Specified by:
setIdAttributeNodein interfaceElement- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
Unsupported.- Specified by:
setIdAttributeNSin interfaceElement- Throws:
DOMException
-
-