public class ElementImpl extends NodeImpl implements Element
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 |
|---|---|
protected AttributeNodeMapImpl |
attributes |
static org.apache.commons.logging.Log |
LOG |
protected int |
numNSDecl |
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 |
|---|
ElementImpl(ExpandedTree tree,
int node) |
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, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getBaseURI, getFeature, getNextSibling, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, insertBefore, isEqualNode, isSameNode, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic static final org.apache.commons.logging.Log LOG
protected AttributeNodeMapImpl attributes
protected int numNSDecl
public ElementImpl(ExpandedTree tree, int node)
protected Node cloneNode(Document doc, boolean deep)
NodeImplpublic String getAttribute(String name)
getAttribute in interface Elementpublic Attr getAttributeNode(String name)
getAttributeNode in interface Elementpublic Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS in interface Elementpublic String getAttributeNS(String namespaceURI, String localName)
getAttributeNS in interface Elementpublic NamedNodeMap getAttributes()
Attributes returned contains default attributes enforced by XML Schema in MarkLogic.
getAttributes in interface NodegetAttributes in class NodeImplpublic NodeList getChildNodes()
getChildNodes in interface NodegetChildNodes in class NodeImplpublic boolean isDefaultNamespace(String namespaceURI)
Not supported for namespace declaration. Overrided by DocumentImpl and ElementImpl
isDefaultNamespace in interface NodeisDefaultNamespace in class NodeImplpublic NodeList getElementsByTagNameNS(String namespaceURI, String name)
getElementsByTagNameNS in interface Elementpublic NodeList getElementsByTagName(String localName)
getElementsByTagName in interface Elementprotected int getNumChildren()
protected int getFirstChildIndex()
public Node getFirstChild()
NodeImplgetFirstChild in interface NodegetFirstChild in class NodeImplpublic Node getLastChild()
NodeImplgetLastChild in interface NodegetLastChild in class NodeImplpublic String getLocalName()
NodeImplgetLocalName in interface NodegetLocalName in class NodeImplpublic String getNamespaceURI()
NodeImplgetNamespaceURI in interface NodegetNamespaceURI in class NodeImplpublic Node getNextChild(int child)
getNextChild in class NodeImplpublic String getNodeName()
NodeImplgetNodeName in interface NodegetNodeName in class NodeImplprotected int getPrefixID(int uriAtom)
getPrefixID in class NodeImplpublic int getNumNSDecl()
protected Node getPreviousChild(int child)
getPreviousChild in class NodeImplpublic TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface Elementpublic String getTagName()
getTagName in interface Elementpublic boolean hasAttribute(String name)
hasAttribute in interface Elementpublic boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException
hasAttributeNS in interface ElementDOMExceptionpublic boolean hasAttributes()
NodeImplhasAttributes in interface NodehasAttributes in class NodeImplpublic boolean hasChildNodes()
NodeImplhasChildNodes in interface NodehasChildNodes in class NodeImplpublic String lookupNamespaceURI(String prefix)
NodeImpllookupNamespaceURI in interface NodelookupNamespaceURI in class NodeImplpublic String lookupPrefix(String namespaceURI)
NodeImpllookupPrefix in interface NodelookupPrefix in class NodeImplpublic void removeAttribute(String name) throws DOMException
removeAttribute in interface ElementDOMExceptionpublic Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode in interface ElementDOMExceptionpublic void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS in interface ElementDOMExceptionpublic void setAttribute(String name, String value) throws DOMException
setAttribute in interface ElementDOMExceptionpublic Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode in interface ElementDOMExceptionpublic Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS in interface ElementDOMExceptionpublic void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS in interface ElementDOMExceptionpublic void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute in interface ElementDOMExceptionpublic void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode in interface ElementDOMExceptionpublic void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS in interface ElementDOMExceptionCopyright © 2016 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com