public abstract class DOMNodeDecorator extends Object implements DOMNode
DOMNode.Type
Modifier and Type | Field and Description |
---|---|
protected DOMNode |
decoratedNode |
Constructor and Description |
---|
DOMNodeDecorator(DOMNode node) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeJavaScript, getBrowser, getDOMProperty, getXPathLocator, isEqualNode, isStale, isTextNode, registerMutationObserver, toPrettyString
protected DOMNode decoratedNode
public DOMNodeDecorator(DOMNode node)
public DOMMutationObserver registerMutationObserver(DOMMutationObserver.MutationObserverOptions options)
registerMutationObserver
in interface DOMNode
public void addEventListener(String type, DOMEventListener listener, boolean useCapture)
addEventListener
in interface DOMEventTarget
public void removeEventListener(String type, DOMEventListener listener, boolean useCapture)
removeEventListener
in interface DOMEventTarget
public DOMNode.Type getNodeType()
getNodeType
in interface DOMNode
public DOMNodeList getChildNodes()
getChildNodes
in interface DOMNode
public String getNodeValue()
getNodeValue
in interface DOMNode
public DOMNode getParentNode()
getParentNode
in interface DOMNode
public String getLocalName()
getLocalName
in interface DOMNode
public DOMNamedNodeMap<DOMNode> getAttributes()
DOMNode
getAttributes
in interface DOMNode
public String getNodeName()
getNodeName
in interface DOMNode
public String toPrettyHTML()
DOMNode
toPrettyHTML
in interface DOMNode
public String getTextContent()
getTextContent
in interface DOMNode
public boolean isDescendant(DOMNode node)
isDescendant
in interface DOMNode
public DOMXPathEvaluator getXPathEvaluator()
getXPathEvaluator
in interface DOMNode
DOMXPathEvaluator
associated to this node. There is one DOMXPathEvaluator associated with each
browser instance, therefore this method is equivalent to the same method in WebBrowser
public short compareDocumentPosition(DOMNode other)
DOMNode
compareDocumentPosition
in interface DOMNode
other
- other nodepublic DOMDocument getOwnerDocument()
getOwnerDocument
in interface DOMNode
public boolean isSameNode(DOMNode other)
isSameNode
in interface DOMNode
public DOMNode appendChild(DOMNode newChild)
DOMNode
appendChild
in interface DOMNode
public DOMNode removeChild(DOMNode child)
DOMNode
removeChild
in interface DOMNode
public DOMNode replaceChild(DOMNode newChild, DOMNode oldChild)
DOMNode
replaceChild
in interface DOMNode
public DOMNode insertBefore(DOMNode newChild, DOMNode refChild)
DOMNode
insertBefore
in interface DOMNode
public void setTextContent(String text)
setTextContent
in interface DOMNode
public DOMNode getPreviousSibling()
getPreviousSibling
in interface DOMNode
public DOMNode getNextSibling()
getNextSibling
in interface DOMNode
public DOMNode getLastChild()
getLastChild
in interface DOMNode
public DOMNode getFirstChild()
getFirstChild
in interface DOMNode
Copyright © 2020 OXPath Team. All rights reserved.