public class DocumentImpl extends NodeImpl implements Document, org.w3c.dom.xpath.XPathEvaluator, DocumentView, DocumentEvent
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
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
addEventListener, appendChild, cloneNode, compareDocumentPosition, contains, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
public Object evaluate(String expression, Node contextNode, org.w3c.dom.xpath.XPathNSResolver resolver, short type, Object result) throws DOMException
evaluate
in interface org.w3c.dom.xpath.XPathEvaluator
DOMException
public DocumentType getDoctype()
getDoctype
in interface Document
public DOMImplementation getImplementation()
getImplementation
in interface Document
public Element getDocumentElement()
getDocumentElement
in interface Document
public String getInputEncoding()
getInputEncoding
in interface Document
public String getXmlEncoding()
getXmlEncoding
in interface Document
public String getXmlVersion()
getXmlVersion
in interface Document
public void setXmlVersion(String value) throws DOMException
setXmlVersion
in interface Document
DOMException
public boolean getXmlStandalone()
getXmlStandalone
in interface Document
public void setXmlStandalone(boolean value) throws DOMException
setXmlStandalone
in interface Document
DOMException
public String getDocumentURI()
getDocumentURI
in interface Document
public void setDocumentURI(String value)
setDocumentURI
in interface Document
public AbstractView getDefaultView()
getDefaultView
in interface DocumentView
public org.w3c.dom.stylesheets.StyleSheetList getStyleSheets()
public String getContentType()
public String getTitle()
public void setTitle(String value)
public String getReferrer()
public String getDomain()
public String getURL()
public String getCookie() throws DOMException
DOMException
public void setCookie(String value) throws DOMException
DOMException
public org.w3c.dom.html.HTMLElement getBody()
public void setBody(org.w3c.dom.html.HTMLElement value) throws DOMException
DOMException
public org.w3c.dom.html.HTMLHeadElement getHead()
public org.w3c.dom.html.HTMLCollection getImages()
public org.w3c.dom.html.HTMLCollection getApplets()
public org.w3c.dom.html.HTMLCollection getLinks()
public org.w3c.dom.html.HTMLCollection getForms()
public org.w3c.dom.html.HTMLCollection getAnchors()
public String getLastModified()
public String getCharset()
public String getDefaultCharset()
public String getReadyState()
public String getCharacterSet()
public String getPreferredStylesheetSet()
public String getSelectedStylesheetSet()
public void setSelectedStylesheetSet(String value)
public Element getActiveElement()
public String getCompatMode()
public boolean getWebkitIsFullScreen()
public boolean getWebkitFullScreenKeyboardInputAllowed()
public Element getWebkitCurrentFullScreenElement()
public boolean getWebkitFullscreenEnabled()
public Element getWebkitFullscreenElement()
public String getVisibilityState()
public boolean getHidden()
public org.w3c.dom.html.HTMLScriptElement getCurrentScript()
public String getOrigin()
public Element getScrollingElement()
public EventListener getOnbeforecopy()
public void setOnbeforecopy(EventListener value)
public EventListener getOnbeforecut()
public void setOnbeforecut(EventListener value)
public EventListener getOnbeforepaste()
public void setOnbeforepaste(EventListener value)
public EventListener getOncopy()
public void setOncopy(EventListener value)
public EventListener getOncut()
public void setOncut(EventListener value)
public EventListener getOnpaste()
public void setOnpaste(EventListener value)
public EventListener getOnselectstart()
public void setOnselectstart(EventListener value)
public EventListener getOnselectionchange()
public void setOnselectionchange(EventListener value)
public EventListener getOnreadystatechange()
public void setOnreadystatechange(EventListener value)
public EventListener getOnabort()
public void setOnabort(EventListener value)
public EventListener getOnblur()
public void setOnblur(EventListener value)
public EventListener getOncanplay()
public void setOncanplay(EventListener value)
public EventListener getOncanplaythrough()
public void setOncanplaythrough(EventListener value)
public EventListener getOnchange()
public void setOnchange(EventListener value)
public EventListener getOnclick()
public void setOnclick(EventListener value)
public EventListener getOncontextmenu()
public void setOncontextmenu(EventListener value)
public EventListener getOndblclick()
public void setOndblclick(EventListener value)
public EventListener getOndrag()
public void setOndrag(EventListener value)
public EventListener getOndragend()
public void setOndragend(EventListener value)
public EventListener getOndragenter()
public void setOndragenter(EventListener value)
public EventListener getOndragleave()
public void setOndragleave(EventListener value)
public EventListener getOndragover()
public void setOndragover(EventListener value)
public EventListener getOndragstart()
public void setOndragstart(EventListener value)
public EventListener getOndrop()
public void setOndrop(EventListener value)
public EventListener getOndurationchange()
public void setOndurationchange(EventListener value)
public EventListener getOnemptied()
public void setOnemptied(EventListener value)
public EventListener getOnended()
public void setOnended(EventListener value)
public EventListener getOnerror()
public void setOnerror(EventListener value)
public EventListener getOnfocus()
public void setOnfocus(EventListener value)
public EventListener getOninput()
public void setOninput(EventListener value)
public EventListener getOninvalid()
public void setOninvalid(EventListener value)
public EventListener getOnkeydown()
public void setOnkeydown(EventListener value)
public EventListener getOnkeypress()
public void setOnkeypress(EventListener value)
public EventListener getOnkeyup()
public void setOnkeyup(EventListener value)
public EventListener getOnload()
public void setOnload(EventListener value)
public EventListener getOnloadeddata()
public void setOnloadeddata(EventListener value)
public EventListener getOnloadedmetadata()
public void setOnloadedmetadata(EventListener value)
public EventListener getOnloadstart()
public void setOnloadstart(EventListener value)
public EventListener getOnmousedown()
public void setOnmousedown(EventListener value)
public EventListener getOnmouseenter()
public void setOnmouseenter(EventListener value)
public EventListener getOnmouseleave()
public void setOnmouseleave(EventListener value)
public EventListener getOnmousemove()
public void setOnmousemove(EventListener value)
public EventListener getOnmouseout()
public void setOnmouseout(EventListener value)
public EventListener getOnmouseover()
public void setOnmouseover(EventListener value)
public EventListener getOnmouseup()
public void setOnmouseup(EventListener value)
public EventListener getOnmousewheel()
public void setOnmousewheel(EventListener value)
public EventListener getOnpause()
public void setOnpause(EventListener value)
public EventListener getOnplay()
public void setOnplay(EventListener value)
public EventListener getOnplaying()
public void setOnplaying(EventListener value)
public EventListener getOnprogress()
public void setOnprogress(EventListener value)
public EventListener getOnratechange()
public void setOnratechange(EventListener value)
public EventListener getOnreset()
public void setOnreset(EventListener value)
public EventListener getOnresize()
public void setOnresize(EventListener value)
public EventListener getOnscroll()
public void setOnscroll(EventListener value)
public EventListener getOnseeked()
public void setOnseeked(EventListener value)
public EventListener getOnseeking()
public void setOnseeking(EventListener value)
public EventListener getOnselect()
public void setOnselect(EventListener value)
public EventListener getOnstalled()
public void setOnstalled(EventListener value)
public EventListener getOnsubmit()
public void setOnsubmit(EventListener value)
public EventListener getOnsuspend()
public void setOnsuspend(EventListener value)
public EventListener getOntimeupdate()
public void setOntimeupdate(EventListener value)
public EventListener getOnvolumechange()
public void setOnvolumechange(EventListener value)
public EventListener getOnwaiting()
public void setOnwaiting(EventListener value)
public EventListener getOnsearch()
public void setOnsearch(EventListener value)
public EventListener getOnwheel()
public void setOnwheel(EventListener value)
public org.w3c.dom.html.HTMLCollection getChildren()
public Element getFirstElementChild()
public Element getLastElementChild()
public int getChildElementCount()
public Element createElement(String tagName) throws DOMException
createElement
in interface Document
DOMException
public DocumentFragment createDocumentFragment()
createDocumentFragment
in interface Document
public Text createTextNode(String data)
createTextNode
in interface Document
public Comment createComment(String data)
createComment
in interface Document
public CDATASection createCDATASection(String data) throws DOMException
createCDATASection
in interface Document
DOMException
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
createProcessingInstruction
in interface Document
DOMException
public Attr createAttribute(String name) throws DOMException
createAttribute
in interface Document
DOMException
public EntityReference createEntityReference(String name) throws DOMException
createEntityReference
in interface Document
DOMException
public NodeList getElementsByTagName(String tagname)
getElementsByTagName
in interface Document
public Node importNode(Node importedNode, boolean deep) throws DOMException
importNode
in interface Document
DOMException
public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
createElementNS
in interface Document
DOMException
public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
createAttributeNS
in interface Document
DOMException
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Document
public Node adoptNode(Node source) throws DOMException
adoptNode
in interface Document
DOMException
public Event createEvent(String eventType) throws DOMException
createEvent
in interface DocumentEvent
DOMException
public org.w3c.dom.ranges.Range createRange()
public org.w3c.dom.traversal.NodeIterator createNodeIterator(Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean expandEntityReferences) throws DOMException
DOMException
public org.w3c.dom.traversal.TreeWalker createTreeWalker(Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean expandEntityReferences) throws DOMException
DOMException
public org.w3c.dom.css.CSSStyleDeclaration getOverrideStyle(Element element, String pseudoElement)
public org.w3c.dom.xpath.XPathExpression createExpression(String expression, org.w3c.dom.xpath.XPathNSResolver resolver) throws DOMException
createExpression
in interface org.w3c.dom.xpath.XPathEvaluator
DOMException
public org.w3c.dom.xpath.XPathNSResolver createNSResolver(Node nodeResolver)
createNSResolver
in interface org.w3c.dom.xpath.XPathEvaluator
public org.w3c.dom.xpath.XPathResult evaluate(String expression, Node contextNode, org.w3c.dom.xpath.XPathNSResolver resolver, short type, org.w3c.dom.xpath.XPathResult inResult) throws DOMException
DOMException
public boolean queryCommandEnabled(String command)
public boolean queryCommandIndeterm(String command)
public boolean queryCommandState(String command)
public boolean queryCommandSupported(String command)
public Element elementFromPoint(int x, int y)
public org.w3c.dom.ranges.Range caretRangeFromPoint(int x, int y)
public org.w3c.dom.css.CSSStyleDeclaration createCSSStyleDeclaration()
public org.w3c.dom.html.HTMLCollection getElementsByClassName(String classNames)
public boolean hasFocus()
public void webkitCancelFullScreen()
public void webkitExitFullscreen()
public Element getElementById(String elementId)
getElementById
in interface Document
public Element querySelector(String selectors) throws DOMException
DOMException
public NodeList querySelectorAll(String selectors) throws DOMException
DOMException
public boolean getStrictErrorChecking()
getStrictErrorChecking
in interface Document
public void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking
in interface Document
public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException
renameNode
in interface Document
DOMException
public DOMConfiguration getDomConfig()
getDomConfig
in interface Document
public void normalizeDocument()
normalizeDocument
in interface Document
public Object eval(String s) throws JSException
JSObject
Evaluates a JavaScript expression. The expression is a string of JavaScript source code which will be evaluated in the context given by "this".
eval
in class JSObject
s
- The JavaScript expression.JSException
public Object getMember(String name)
JSObject
Retrieves a named member of a JavaScript object. Equivalent to "this.name" in JavaScript.
public void setMember(String name, Object value) throws JSException
JSObject
Sets a named member of a JavaScript object. Equivalent to "this.name = value" in JavaScript.
setMember
in class JSObject
name
- The name of the JavaScript property to be accessed.value
- The value of the propery.JSException
public void removeMember(String name) throws JSException
JSObject
Removes a named member of a JavaScript object. Equivalent to "delete this.name" in JavaScript.
removeMember
in class JSObject
name
- The name of the JavaScript property to be removed.JSException
public Object getSlot(int index) throws JSException
JSObject
Retrieves an indexed member of a JavaScript object. Equivalent to "this[index]" in JavaScript.
getSlot
in class JSObject
index
- The index of the array to be accessed.JSException
public void setSlot(int index, Object value) throws JSException
JSObject
Sets an indexed member of a JavaScript object. Equivalent to "this[index] = value" in JavaScript.
setSlot
in class JSObject
index
- The index of the array to be accessed.JSException
public Object call(String methodName, Object... args) throws JSException
JSObject
Calls a JavaScript method. Equivalent to "this.methodName(args[0], args[1], ...)" in JavaScript.
call
in class JSObject
methodName
- The name of the JavaScript method to be invoked.args
- the Java objects passed as arguments to the method.JSException
Copyright © 2020. All rights reserved.