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_NODEATTRIBUTE_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_NODEaddEventListener, 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, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitappendChild, 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, setUserDatapublic 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.XPathEvaluatorDOMExceptionpublic DocumentType getDoctype()
getDoctype in interface Documentpublic DOMImplementation getImplementation()
getImplementation in interface Documentpublic Element getDocumentElement()
getDocumentElement in interface Documentpublic String getInputEncoding()
getInputEncoding in interface Documentpublic String getXmlEncoding()
getXmlEncoding in interface Documentpublic String getXmlVersion()
getXmlVersion in interface Documentpublic void setXmlVersion(String value) throws DOMException
setXmlVersion in interface DocumentDOMExceptionpublic boolean getXmlStandalone()
getXmlStandalone in interface Documentpublic void setXmlStandalone(boolean value)
throws DOMException
setXmlStandalone in interface DocumentDOMExceptionpublic String getDocumentURI()
getDocumentURI in interface Documentpublic void setDocumentURI(String value)
setDocumentURI in interface Documentpublic AbstractView getDefaultView()
getDefaultView in interface DocumentViewpublic 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
DOMExceptionpublic void setCookie(String value) throws DOMException
DOMExceptionpublic org.w3c.dom.html.HTMLElement getBody()
public void setBody(org.w3c.dom.html.HTMLElement value) throws DOMException
DOMExceptionpublic 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 DocumentDOMExceptionpublic DocumentFragment createDocumentFragment()
createDocumentFragment in interface Documentpublic Text createTextNode(String data)
createTextNode in interface Documentpublic Comment createComment(String data)
createComment in interface Documentpublic CDATASection createCDATASection(String data) throws DOMException
createCDATASection in interface DocumentDOMExceptionpublic ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
createProcessingInstruction in interface DocumentDOMExceptionpublic Attr createAttribute(String name) throws DOMException
createAttribute in interface DocumentDOMExceptionpublic EntityReference createEntityReference(String name) throws DOMException
createEntityReference in interface DocumentDOMExceptionpublic NodeList getElementsByTagName(String tagname)
getElementsByTagName in interface Documentpublic Node importNode(Node importedNode, boolean deep) throws DOMException
importNode in interface DocumentDOMExceptionpublic Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException
createElementNS in interface DocumentDOMExceptionpublic Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException
createAttributeNS in interface DocumentDOMExceptionpublic NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS in interface Documentpublic Node adoptNode(Node source) throws DOMException
adoptNode in interface DocumentDOMExceptionpublic Event createEvent(String eventType) throws DOMException
createEvent in interface DocumentEventDOMExceptionpublic 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
DOMExceptionpublic org.w3c.dom.traversal.TreeWalker createTreeWalker(Node root, int whatToShow, org.w3c.dom.traversal.NodeFilter filter, boolean expandEntityReferences) throws DOMException
DOMExceptionpublic 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.XPathEvaluatorDOMExceptionpublic org.w3c.dom.xpath.XPathNSResolver createNSResolver(Node nodeResolver)
createNSResolver in interface org.w3c.dom.xpath.XPathEvaluatorpublic 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
DOMExceptionpublic 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 Documentpublic Element querySelector(String selectors) throws DOMException
DOMExceptionpublic NodeList querySelectorAll(String selectors) throws DOMException
DOMExceptionpublic boolean getStrictErrorChecking()
getStrictErrorChecking in interface Documentpublic void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking in interface Documentpublic Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException
renameNode in interface DocumentDOMExceptionpublic DOMConfiguration getDomConfig()
getDomConfig in interface Documentpublic void normalizeDocument()
normalizeDocument in interface Documentpublic Object eval(String s) throws JSException
JSObjectEvaluates 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 JSObjects - The JavaScript expression.JSExceptionpublic Object getMember(String name)
JSObjectRetrieves a named member of a JavaScript object. Equivalent to "this.name" in JavaScript.
public void setMember(String name, Object value) throws JSException
JSObjectSets a named member of a JavaScript object. Equivalent to "this.name = value" in JavaScript.
setMember in class JSObjectname - The name of the JavaScript property to be accessed.value - The value of the propery.JSExceptionpublic void removeMember(String name) throws JSException
JSObjectRemoves a named member of a JavaScript object. Equivalent to "delete this.name" in JavaScript.
removeMember in class JSObjectname - The name of the JavaScript property to be removed.JSExceptionpublic Object getSlot(int index) throws JSException
JSObjectRetrieves an indexed member of a JavaScript object. Equivalent to "this[index]" in JavaScript.
getSlot in class JSObjectindex - The index of the array to be accessed.JSExceptionpublic void setSlot(int index,
Object value)
throws JSException
JSObjectSets an indexed member of a JavaScript object. Equivalent to "this[index] = value" in JavaScript.
setSlot in class JSObjectindex - The index of the array to be accessed.JSExceptionpublic Object call(String methodName, Object... args) throws JSException
JSObjectCalls a JavaScript method. Equivalent to "this.methodName(args[0], args[1], ...)" in JavaScript.
call in class JSObjectmethodName - The name of the JavaScript method to be invoked.args - the Java objects passed as arguments to the method.JSExceptionCopyright © 2025. All rights reserved.