Package org.basex.api.dom
Class BXNode
- java.lang.Object
-
- org.basex.api.dom.BXNode
-
-
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
-
-
-
Method Detail
-
get
public static BXNode get(ANode node)
Creates a new DOM node instance for the input node.- Parameters:
node
- input node- Returns:
- DOM node, or
null
if input isnull
as well
-
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interfaceNode
-
getNodeType
public final short getNodeType()
- Specified by:
getNodeType
in interfaceNode
-
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValue
in interfaceNode
-
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interfaceNode
-
compareDocumentPosition
public final short compareDocumentPosition(Node node)
- Specified by:
compareDocumentPosition
in interfaceNode
-
getAttributes
public org.basex.api.dom.BXNNode getAttributes()
- Specified by:
getAttributes
in interfaceNode
-
getBaseURI
public final String getBaseURI()
- Specified by:
getBaseURI
in interfaceNode
-
getChildNodes
public org.basex.api.dom.BXNList getChildNodes()
- Specified by:
getChildNodes
in interfaceNode
-
getFirstChild
public BXNode getFirstChild()
- Specified by:
getFirstChild
in interfaceNode
-
getLastChild
public final BXNode getLastChild()
- Specified by:
getLastChild
in interfaceNode
-
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfaceNode
-
getNextSibling
public BXNode getNextSibling()
- Specified by:
getNextSibling
in interfaceNode
-
getPreviousSibling
public BXNode getPreviousSibling()
- Specified by:
getPreviousSibling
in interfaceNode
-
getParentNode
public final BXNode getParentNode()
- Specified by:
getParentNode
in interfaceNode
-
hasChildNodes
public final boolean hasChildNodes()
- Specified by:
hasChildNodes
in interfaceNode
-
isSameNode
public final boolean isSameNode(Node node)
- Specified by:
isSameNode
in interfaceNode
-
getOwnerDocument
public BXDoc getOwnerDocument()
- Specified by:
getOwnerDocument
in interfaceNode
-
hasAttributes
public final boolean hasAttributes()
- Specified by:
hasAttributes
in interfaceNode
-
getFeature
public final Object getFeature(String feature, String version)
- Specified by:
getFeature
in interfaceNode
-
getTextContent
public final String getTextContent()
- Specified by:
getTextContent
in interfaceNode
-
appendChild
public final BXNode appendChild(Node node)
- Specified by:
appendChild
in interfaceNode
-
getUserData
public final Object getUserData(String name)
- Specified by:
getUserData
in interfaceNode
-
isSupported
public final boolean isSupported(String name, String version)
- Specified by:
isSupported
in interfaceNode
-
insertBefore
public final BXNode insertBefore(Node node, Node ref)
- Specified by:
insertBefore
in interfaceNode
-
isDefaultNamespace
public final boolean isDefaultNamespace(String uri)
- Specified by:
isDefaultNamespace
in interfaceNode
-
isEqualNode
public final boolean isEqualNode(Node cmp)
- Specified by:
isEqualNode
in interfaceNode
-
lookupNamespaceURI
public final String lookupNamespaceURI(String prefix)
- Specified by:
lookupNamespaceURI
in interfaceNode
-
lookupPrefix
public final String lookupPrefix(String uri)
- Specified by:
lookupPrefix
in interfaceNode
-
removeChild
public final BXNode removeChild(Node node)
- Specified by:
removeChild
in interfaceNode
-
replaceChild
public final BXNode replaceChild(Node node, Node old)
- Specified by:
replaceChild
in interfaceNode
-
setNodeValue
public final void setNodeValue(String value)
- Specified by:
setNodeValue
in interfaceNode
-
setTextContent
public final void setTextContent(String value)
- Specified by:
setTextContent
in interfaceNode
-
setUserData
public final Object setUserData(String name, Object value, UserDataHandler handler)
- Specified by:
setUserData
in interfaceNode
-
getNode
public final ANode getNode()
Returns the internal node representation.- Returns:
- xquery node
-
-