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,
setUserData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition,
getBaseURI, getFeature, getNextSibling,
getNodeType, getNodeValue,
getOwnerDocument,
getParentNode,
getPreviousSibling,
getTextContent,
getUserData, insertBefore,
isEqualNode, isSameNode, isSupported, normalize, removeChild, replaceChild,
setNodeValue,
setPrefix, setTextContent,
setUserData
public 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)
NodeImpl
public String getAttribute(String name)
getAttribute
in
interface Element
public Attr getAttributeNode(String name)
getAttributeNode
in
interface Element
public Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS
in
interface Element
public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS
in
interface Element
public NamedNodeMap getAttributes()
Attributes returned contains default attributes enforced by XML Schema in MarkLogic.
getAttributes
in
interface Node
getAttributes
in
class NodeImpl
public NodeList getChildNodes()
getChildNodes
in
interface Node
getChildNodes
in
class NodeImpl
public boolean isDefaultNamespace(String namespaceURI)
Not supported for namespace declaration. Overrided by DocumentImpl and ElementImpl
isDefaultNamespace
in
interface Node
isDefaultNamespace
in class NodeImpl
public NodeList getElementsByTagNameNS(String namespaceURI, String name)
getElementsByTagNameNS
in
interface Element
public NodeList getElementsByTagName(String localName)
getElementsByTagName
in
interface Element
protected int getNumChildren()
protected int getFirstChildIndex()
public Node getFirstChild()
NodeImpl
getFirstChild
in
interface Node
getFirstChild
in
class NodeImpl
public Node getLastChild()
NodeImpl
getLastChild
in
interface Node
getLastChild
in
class NodeImpl
public String getLocalName()
NodeImpl
getLocalName
in
interface Node
getLocalName
in
class NodeImpl
public String getNamespaceURI()
NodeImpl
getNamespaceURI
in
interface Node
getNamespaceURI
in
class NodeImpl
public Node getNextChild(int child)
getNextChild
in
class NodeImpl
public String getNodeName()
NodeImpl
getNodeName
in
interface Node
getNodeName
in
class NodeImpl
protected int getPrefixID(int uriAtom)
getPrefixID
in
class NodeImpl
public int getNumNSDecl()
protected Node getPreviousChild(int child)
getPreviousChild
in
class NodeImpl
public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in
interface Element
public String getTagName()
getTagName
in
interface Element
public boolean hasAttribute(String name)
hasAttribute
in
interface Element
public boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException
hasAttributeNS
in
interface Element
DOMException
public boolean hasAttributes()
NodeImpl
hasAttributes
in
interface Node
hasAttributes
in
class NodeImpl
public boolean hasChildNodes()
NodeImpl
hasChildNodes
in
interface Node
hasChildNodes
in
class NodeImpl
public String lookupNamespaceURI(String prefix)
NodeImpl
lookupNamespaceURI
in
interface Node
lookupNamespaceURI
in class NodeImpl
public String lookupPrefix(String namespaceURI)
NodeImpl
lookupPrefix
in
interface Node
lookupPrefix
in class NodeImpl
public void removeAttribute(String name) throws DOMException
removeAttribute
in
interface Element
DOMException
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode
in
interface Element
DOMException
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS
in
interface Element
DOMException
public void setAttribute(String name, String value) throws DOMException
setAttribute
in
interface Element
DOMException
public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode
in
interface Element
DOMException
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS
in
interface Element
DOMException
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS
in
interface Element
DOMException
public void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute
in
interface Element
DOMException
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode
in
interface Element
DOMException
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS
in
interface Element
DOMException
Copyright © 2020 MarkLogic
Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com