Package org.basex.api.dom
Class BXNode
java.lang.Object
org.basex.api.dom.BXNode
- All Implemented Interfaces:
Node
DOM - Node implementation.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionfinal BXNodeappendChild(Node node) final BXNodecloneNode(boolean deep) final shortcompareDocumentPosition(Node node) static BXNodeCreates a new DOM node instance for the input node.org.basex.api.dom.BXNNodefinal Stringorg.basex.api.dom.BXNListfinal ObjectgetFeature(String feature, String version) final BXNodefinal ANodegetNode()Returns the internal node representation.final shortfinal BXNodefinal Stringfinal Stringfinal ObjectgetUserData(String name) final booleanfinal booleanfinal BXNodeinsertBefore(Node node, Node ref) final booleanisDefaultNamespace(String uri) final booleanisEqualNode(Node cmp) final booleanisSameNode(Node node) final booleanisSupported(String name, String version) final StringlookupNamespaceURI(String prefix) final StringlookupPrefix(String uri) final voidfinal BXNoderemoveChild(Node node) final BXNodereplaceChild(Node node, Node old) final voidsetNodeValue(String value) final voidfinal voidsetTextContent(String value) final ObjectsetUserData(String name, Object value, UserDataHandler handler) final StringtoString()
-
Method Details
-
get
Creates a new DOM node instance for the input node.- Parameters:
node- input node- Returns:
- DOM node, or
nullif input isnullas well
-
getNodeName
- Specified by:
getNodeNamein interfaceNode
-
getNodeType
public final short getNodeType()- Specified by:
getNodeTypein interfaceNode
-
getNodeValue
- Specified by:
getNodeValuein interfaceNode
-
getLocalName
- Specified by:
getLocalNamein interfaceNode
-
cloneNode
-
compareDocumentPosition
- Specified by:
compareDocumentPositionin interfaceNode
-
getAttributes
public org.basex.api.dom.BXNNode getAttributes()- Specified by:
getAttributesin interfaceNode
-
getBaseURI
- Specified by:
getBaseURIin interfaceNode
-
getChildNodes
public org.basex.api.dom.BXNList getChildNodes()- Specified by:
getChildNodesin interfaceNode
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
- Specified by:
getLastChildin interfaceNode
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNode
-
getNextSibling
- Specified by:
getNextSiblingin interfaceNode
-
getPreviousSibling
- Specified by:
getPreviousSiblingin interfaceNode
-
getParentNode
- Specified by:
getParentNodein interfaceNode
-
hasChildNodes
public final boolean hasChildNodes()- Specified by:
hasChildNodesin interfaceNode
-
isSameNode
- Specified by:
isSameNodein interfaceNode
-
getOwnerDocument
- Specified by:
getOwnerDocumentin interfaceNode
-
hasAttributes
public final boolean hasAttributes()- Specified by:
hasAttributesin interfaceNode
-
getFeature
- Specified by:
getFeaturein interfaceNode
-
getPrefix
-
getTextContent
- Specified by:
getTextContentin interfaceNode
-
appendChild
- Specified by:
appendChildin interfaceNode
-
getUserData
- Specified by:
getUserDatain interfaceNode
-
isSupported
- Specified by:
isSupportedin interfaceNode
-
insertBefore
- Specified by:
insertBeforein interfaceNode
-
isDefaultNamespace
- Specified by:
isDefaultNamespacein interfaceNode
-
isEqualNode
- Specified by:
isEqualNodein interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURIin interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefixin interfaceNode
-
normalize
public final void normalize() -
removeChild
- Specified by:
removeChildin interfaceNode
-
replaceChild
- Specified by:
replaceChildin interfaceNode
-
setNodeValue
- Specified by:
setNodeValuein interfaceNode
-
setPrefix
-
setTextContent
- Specified by:
setTextContentin interfaceNode
-
setUserData
- Specified by:
setUserDatain interfaceNode
-
toString
-
getNode
Returns the internal node representation.- Returns:
- xquery node
-