Class DTMNodeProxy

java.lang.Object
org.loboevolution.apache.xml.dtm.ref.DTMNodeProxy
All Implemented Interfaces:
EventTarget, Attr, CharacterData, Comment, Document, DocumentFragment, Element, InnerHTML, Node, NonDocumentTypeChildNode, NonElementParentNode, ParentNode, ProcessingInstruction, DocumentRange, Text, DocumentTraversal

public class DTMNodeProxy extends Object implements Node, Document, Text, Element, Attr, ProcessingInstruction, Comment, DocumentFragment
DTMNodeProxy presents a DOM Node API front-end to the DTM model.

It does _not_ attempt to address the "node identity" question; no effort is made to prevent the creation of multiple proxies referring to a single DTM node. Users can create a mechanism for managing this, or relinquish the use of "==" and use the .sameNodeAs() mechanism, which is under consideration for future versions of the DOM.

DTMNodeProxy may be subclassed further to present specific DOM node types.

See Also:
  • Field Details

    • dtm

      public final DTM dtm
      The DTM for this node.
    • fDocumentURI

      protected String fDocumentURI
  • Constructor Details

    • DTMNodeProxy

      public DTMNodeProxy(DTM dtm, int node)
      Create a DTMNodeProxy Node representing a specific Node in a DTM
      Parameters:
      dtm - The DTM Reference, must be non-null.
      node - The DTM node handle.
  • Method Details

    • getDTMNodeNumber

      public final int getDTMNodeNumber()
      NON-DOM: Return the DTM node number
      Returns:
      The DTM node handle.
    • equals

      public final boolean equals(Node node)
      Test for equality based on node number.
      Parameters:
      node - A DTM node proxy reference.
      Returns:
      true if the given node has the same handle as this node.
    • equals

      public final boolean equals(Object node)
      Overrides:
      equals in class Object
    • getNodeName

      public final String getNodeName()
      Returns a string appropriate for the type of node.
      Specified by:
      getNodeName in interface Node
      Returns:
      a String object.
    • getTarget

      public final String getTarget()

      getTarget.

      Specified by:
      getTarget in interface ProcessingInstruction
      Returns:
      a String object.
    • getClassList

      public DOMTokenList getClassList()
      Description copied from interface: Element
      Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
      Specified by:
      getClassList in interface Element
      Returns:
      a DOMTokenList object.
    • getClassName

      public String getClassName()
      Description copied from interface: Element
      Returns the value of element's class content attribute. Can be set to change it.
      Specified by:
      getClassName in interface Element
      Returns:
      a String object.
    • setClassName

      public void setClassName(String className)
      Description copied from interface: Element

      setClassName.

      Specified by:
      setClassName in interface Element
      Parameters:
      className - a String object.
    • getClientHeight

      public int getClientHeight()
      Description copied from interface: Element

      getClientHeight.

      Specified by:
      getClientHeight in interface Element
      Returns:
      a Integer object.
    • getClientLeft

      public int getClientLeft()
      Description copied from interface: Element

      getClientLeft.

      Specified by:
      getClientLeft in interface Element
      Returns:
      a Integer object.
    • getClientTop

      public int getClientTop()
      Description copied from interface: Element

      getClientTop.

      Specified by:
      getClientTop in interface Element
      Returns:
      a Integer object.
    • getClientWidth

      public Integer getClientWidth()
      Description copied from interface: Element

      getClientWidth.

      Specified by:
      getClientWidth in interface Element
      Returns:
      a Integer object.
    • getId

      public String getId()
      Description copied from interface: Element
      Returns the value of element's id content attribute. Can be set to change it.
      Specified by:
      getId in interface Element
      Returns:
      a String object.
    • setId

      public void setId(String id)
      Description copied from interface: Element

      setId.

      Specified by:
      setId in interface Element
      Parameters:
      id - a String object.
    • getLocalName

      public final String getLocalName()

      getLocalName.

      Specified by:
      getLocalName in interface Attr
      Specified by:
      getLocalName in interface Element
      Specified by:
      getLocalName in interface Node
      Returns:
      a String object.
    • getPrefix

      public final String getPrefix()
      Returns prefix.
      Specified by:
      getPrefix in interface Attr
      Specified by:
      getPrefix in interface Element
      Specified by:
      getPrefix in interface Node
      Returns:
      a String object.
    • getScrollHeight

      public double getScrollHeight()
      Description copied from interface: Element

      getScrollHeight.

      Specified by:
      getScrollHeight in interface Element
      Returns:
      a double.
    • getScrollLeft

      public double getScrollLeft()
      Description copied from interface: Element

      getScrollLeft.

      Specified by:
      getScrollLeft in interface Element
      Returns:
      a double.
    • setScrollLeft

      public void setScrollLeft(double scrollLeft)
      Description copied from interface: Element

      setScrollLeft.

      Specified by:
      setScrollLeft in interface Element
      Parameters:
      scrollLeft - a Integer object.
    • getScrollTop

      public double getScrollTop()
      Description copied from interface: Element

      getScrollTop.

      Specified by:
      getScrollTop in interface Element
      Returns:
      a double.
    • setScrollTop

      public void setScrollTop(double scrollTop)
      Description copied from interface: Element

      setScrollTop.

      Specified by:
      setScrollTop in interface Element
      Parameters:
      scrollTop - a Integer object.
    • getScrollWidth

      public double getScrollWidth()
      Description copied from interface: Element

      getScrollWidth.

      Specified by:
      getScrollWidth in interface Element
      Returns:
      a double.
    • getSlot

      public String getSlot()
      Description copied from interface: Element
      Returns the value of element's slot content attribute. Can be set to change it.
      Specified by:
      getSlot in interface Element
      Returns:
      a String object.
    • setSlot

      public void setSlot(String slot)
      Description copied from interface: Element

      setSlot.

      Specified by:
      setSlot in interface Element
      Parameters:
      slot - a String object.
    • setPrefix

      public final void setPrefix(String prefix) throws DOMException

      setPrefix.

      Specified by:
      setPrefix in interface Node
      Parameters:
      prefix - a String object.
      Throws:
      DOMException
    • getNamespaceURI

      public final String getNamespaceURI()

      getNamespaceURI.

      Specified by:
      getNamespaceURI in interface Attr
      Specified by:
      getNamespaceURI in interface Element
      Specified by:
      getNamespaceURI in interface Node
      Returns:
      a String object.
    • getOuterHTML

      public String getOuterHTML()
      Description copied from interface: Element

      getOuterHTML.

      Specified by:
      getOuterHTML in interface Element
      Returns:
      a String object.
    • getBoundingClientRect

      public DOMRect getBoundingClientRect()
      Description copied from interface: Element

      getBoundingClientRect.

      Specified by:
      getBoundingClientRect in interface Element
      Returns:
      a DOMRect object.
    • getClientRects

      public DOMRectList getClientRects()
      Description copied from interface: Element

      getClientRects.

      Specified by:
      getClientRects in interface Element
      Returns:
      a DOMRectList object.
    • isSupported

      public final boolean isSupported(String feature, String version)
      Specified by:
      isSupported in interface Node
    • getNodeValue

      public final String getNodeValue() throws DOMException

      getNodeValue.

      Specified by:
      getNodeValue in interface Node
      Returns:
      a String object.
      Throws:
      DOMException
    • setNodeValue

      public final void setNodeValue(String nodeValue) throws DOMException

      setNodeValue.

      Specified by:
      setNodeValue in interface Node
      Parameters:
      nodeValue - a String object.
      Throws:
      DOMException
    • getNodeType

      public final int getNodeType()
      Returns the type of node.
      Specified by:
      getNodeType in interface Node
      Returns:
      a Integer object.
    • getParentNode

      public final Node getParentNode()
      Returns the parent.
      Specified by:
      getParentNode in interface Node
      Returns:
      a Node object.
    • getChildNodes

      public final NodeList getChildNodes()
      Returns the children.
      Specified by:
      getChildNodes in interface Node
      Returns:
      a NodeList object.
    • getFirstChild

      public final Node getFirstChild()
      Returns the first child.
      Specified by:
      getFirstChild in interface Node
      Returns:
      a Node object.
    • isIsConnected

      public boolean isIsConnected()
      Description copied from interface: Node
      Returns true if node is connected and false otherwise.
      Specified by:
      isIsConnected in interface Node
      Returns:
      a boolean.
    • getLastChild

      public final Node getLastChild()
      Returns the last child.
      Specified by:
      getLastChild in interface Node
      Returns:
      a Node object.
    • getPreviousSibling

      public final Node getPreviousSibling()
      Returns the previous sibling.
      Specified by:
      getPreviousSibling in interface Node
      Returns:
      a Node object.
    • getRootNode

      public Node getRootNode()
      Description copied from interface: Node
      Returns node's root.
      Specified by:
      getRootNode in interface Node
      Returns:
      a Node object.
    • getNextSibling

      public final Node getNextSibling()
      Returns the next sibling.
      Specified by:
      getNextSibling in interface Node
      Returns:
      a Node object.
    • getAttributes

      public final NamedNodeMap getAttributes()

      getAttributes.

      Specified by:
      getAttributes in interface Node
      Returns:
      a NamedNodeMap object.
    • hasAttribute

      public boolean hasAttribute(String name)
      Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
      Specified by:
      hasAttribute in interface Element
      Parameters:
      name - a String object.
      Returns:
      a boolean.
    • hasAttributeNS

      public boolean hasAttributeNS(String namespaceURI, String localName)
      Returns true if element has an attribute whose namespace is namespace and local name is localName.
      Specified by:
      hasAttributeNS in interface Element
      Parameters:
      namespaceURI - a String object.
      localName - a String object.
      Returns:
      a boolean.
    • hasPointerCapture

      public boolean hasPointerCapture(int pointerId)
      Description copied from interface: Element

      hasPointerCapture.

      Specified by:
      hasPointerCapture in interface Element
      Parameters:
      pointerId - a Integer object.
      Returns:
      a boolean.
    • matches

      public boolean matches(String selectors)
      Description copied from interface: Element
      Returns true if matching selectors against element's root yields element, and false otherwise.
      Specified by:
      matches in interface Element
      Parameters:
      selectors - a String object.
      Returns:
      a boolean.
    • releasePointerCapture

      public void releasePointerCapture(int pointerId)
      Description copied from interface: Element

      releasePointerCapture.

      Specified by:
      releasePointerCapture in interface Element
      Parameters:
      pointerId - a Integer object.
    • getOwnerDocument

      public final Document getOwnerDocument()
      Returns the node document. Returns null for documents.
      Specified by:
      getOwnerDocument in interface Node
      Returns:
      a Document object.
    • setOwnerDocument

      public void setOwnerDocument(Document document)
      Description copied from interface: Node

      setOwnerDocument.

      Specified by:
      setOwnerDocument in interface Node
      Parameters:
      document - a Document object.
    • getParentElement

      public HTMLElement getParentElement()
      Description copied from interface: Node
      Returns the parent element.
      Specified by:
      getParentElement in interface Node
      Returns:
      a HTMLElement object.
    • insertBefore

      public final Node insertBefore(Node newChild, Node refChild) throws DOMException

      insertBefore.

      Specified by:
      insertBefore in interface Node
      Parameters:
      newChild - a Node object.
      refChild - a Node object.
      Returns:
      a Node object.
      Throws:
      DOMException
    • replaceChild

      public final Node replaceChild(Node newChild, Node oldChild) throws DOMException

      replaceChild.

      Specified by:
      replaceChild in interface Node
      Parameters:
      newChild - a Node object.
      oldChild - a Node object.
      Returns:
      a Node object.
      Throws:
      DOMException
    • removeChild

      public final Node removeChild(Node oldChild) throws DOMException

      removeChild.

      Specified by:
      removeChild in interface Node
      Parameters:
      oldChild - a Node object.
      Returns:
      a Node object.
      Throws:
      DOMException
    • appendChild

      public final Node appendChild(Node newChild) throws DOMException

      appendChild.

      Specified by:
      appendChild in interface Node
      Parameters:
      newChild - a Node object.
      Returns:
      a Node object.
      Throws:
      DOMException
    • prependChild

      public Node prependChild(Node newChild)
      Description copied from interface: Node

      prependChild.

      Specified by:
      prependChild in interface Node
      Parameters:
      newChild - a Node object.
      Returns:
      a Node object.
    • prepend

      public Node prepend(Node newChild)
      Description copied from interface: Node

      prepend.

      Specified by:
      prepend in interface Node
      Parameters:
      newChild - a Node object.
      Returns:
      a Node object.
    • hasChildNodes

      public final boolean hasChildNodes()
      Returns whether node has children.
      Specified by:
      hasChildNodes in interface Node
      Returns:
      a boolean.
    • cloneNode

      public final Node cloneNode(boolean deep)
      Returns a copy of node. If deep is true, the copy also includes the node's descendants.
      Specified by:
      cloneNode in interface Node
      Parameters:
      deep - a boolean.
      Returns:
      a Node object.
    • cloneNode

      public Node cloneNode()
      Description copied from interface: Node

      cloneNode.

      Specified by:
      cloneNode in interface Node
      Returns:
      a Node object.
    • getURL

      public String getURL()
      Description copied from interface: Document
      Sets or gets the URL for the current document.
      Specified by:
      getURL in interface Document
      Returns:
      a String object.
    • getActiveElement

      public Element getActiveElement()
      Description copied from interface: Document
      Gets the object that has the focus when the parent document has focus.
      Specified by:
      getActiveElement in interface Document
      Returns:
      a Element object.
    • getall

      public HTMLAllCollection getall()
      Description copied from interface: Document
      Returns a reference to the collection of elements contained by the object.
      Specified by:
      getall in interface Document
      Returns:
      a HTMLAllCollection object.
    • getAnchors

      public HTMLCollection getAnchors()
      Description copied from interface: Document
      Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
      Specified by:
      getAnchors in interface Document
      Returns:
      a HTMLCollection object.
    • getApplets

      public HTMLCollection getApplets()
      Description copied from interface: Document
      Retrieves a collection of all applet objects in the document.
      Specified by:
      getApplets in interface Document
      Returns:
      a HTMLCollection object.
    • getCommands

      public HTMLCollection getCommands()
      Description copied from interface: Document

      getCommands.

      Specified by:
      getCommands in interface Document
      Returns:
      a HTMLCollection object.
    • getBgColor

      public String getBgColor()
      Description copied from interface: Document
      Deprecated. Sets or retrieves a value that indicates the background color behind the object.
      Specified by:
      getBgColor in interface Document
      Returns:
      a String object.
    • setBgColor

      public void setBgColor(String bgColor)
      Description copied from interface: Document

      setBgColor.

      Specified by:
      setBgColor in interface Document
      Parameters:
      bgColor - a String object.
    • getBody

      public HTMLElement getBody()
      Description copied from interface: Document
      Specifies the beginning and end of the document body.
      Specified by:
      getBody in interface Document
      Returns:
      a HTMLElement object.
    • setBody

      public void setBody(HTMLElement body)
      Description copied from interface: Document

      setBody.

      Specified by:
      setBody in interface Document
      Parameters:
      body - a HTMLElement object.
    • getCharacterSet

      public String getCharacterSet()
      Description copied from interface: Document
      Returns document's encoding.
      Specified by:
      getCharacterSet in interface Document
      Returns:
      a String object.
    • getCharset

      public String getCharset()
      Description copied from interface: Document
      Gets or sets the character set used to encode the object.
      Specified by:
      getCharset in interface Document
      Returns:
      a String object.
    • getCompatMode

      public String getCompatMode()
      Description copied from interface: Document
      Gets a value that indicates whether standards-compliant mode is switched on for the object.
      Specified by:
      getCompatMode in interface Document
      Returns:
      a String object.
    • getContentType

      public String getContentType()
      Description copied from interface: Document
      Returns document's content type.
      Specified by:
      getContentType in interface Document
      Returns:
      a String object.
    • getCookie

      public String getCookie()
      Description copied from interface: Document
      Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.

      Can be set, to add a new cookie to the element's set of HTTP cookies.

      If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.

      Specified by:
      getCookie in interface Document
      Returns:
      a String object.
    • setCookie

      public void setCookie(String cookie)
      Description copied from interface: Document

      setCookie.

      Specified by:
      setCookie in interface Document
      Parameters:
      cookie - a String object.
    • getCurrentScript

      public HTMLScriptElement getCurrentScript()
      Description copied from interface: Document
      Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.

      Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.

      Specified by:
      getCurrentScript in interface Document
      Returns:
      a HTMLScriptElement object.
    • getDefaultView

      public Window getDefaultView()
      Description copied from interface: Document

      getDefaultView.

      Specified by:
      getDefaultView in interface Document
      Returns:
      a Window object.
    • getDesignMode

      public String getDesignMode()
      Description copied from interface: Document
      Sets or gets a value that indicates whether the document can be edited.
      Specified by:
      getDesignMode in interface Document
      Returns:
      a String object.
    • setDesignMode

      public void setDesignMode(String designMode)
      Description copied from interface: Document

      setDesignMode.

      Specified by:
      setDesignMode in interface Document
      Parameters:
      designMode - a String object.
    • getDir

      public String getDir()
      Description copied from interface: Document
      Sets or retrieves a value that indicates the reading order of the object.
      Specified by:
      getDir in interface Document
      Returns:
      a String object.
    • setDir

      public void setDir(String dir)
      Description copied from interface: Document

      setDir.

      Specified by:
      setDir in interface Document
      Parameters:
      dir - a String object.
    • getDoctype

      public final DocumentType getDoctype()
      Gets an object representing the document type declaration associated with the current document.
      Specified by:
      getDoctype in interface Document
      Returns:
      a DocumentType object.
    • getImplementation

      public final DOMImplementation getImplementation()
      Gets the implementation object of the current document.
      Specified by:
      getImplementation in interface Document
      Returns:
      a DOMImplementation object.
    • getDocumentElement

      public final Element getDocumentElement()
      Gets a reference to the root node of the document.
      Specified by:
      getDocumentElement in interface Document
      Returns:
      a Element object.
    • createElement

      public final Element createElement(String tagName) throws DOMException
      Creates an instance of the element for the specified tag.
      Specified by:
      createElement in interface Document
      Parameters:
      tagName - The name of an element.
      Returns:
      a Element object.
      Throws:
      DOMException
    • createElementNS

      public Element createElementNS(String namespace, String qualifiedName, String options)
      Description copied from interface: Document
      Returns an element with namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.

      If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.

      If one of the following conditions is true a "NamespaceError" DOMException will be thrown:

      localName does not match the QName production. Namespace prefix is not null and namespace is the empty string. Namespace prefix is "xml" and namespace is not the XML namespace. qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".

      When supplied, options's is can be used to create a customized built-in element.

      Specified by:
      createElementNS in interface Document
      Parameters:
      namespace - a String object.
      qualifiedName - a String object.
      options - a String object.
      Returns:
      a Element object.
    • createDocumentFragment

      public final DocumentFragment createDocumentFragment()
      Creates a new document.
      Specified by:
      createDocumentFragment in interface Document
      Returns:
      a DocumentFragment object.
    • createTextNode

      public final Text createTextNode(String data)
      Creates a text string from the specified value.
      Specified by:
      createTextNode in interface Document
      Parameters:
      data - String that specifies the nodeValue property of the text node.
      Returns:
      a Text object.
    • elementFromPoint

      public Element elementFromPoint(double x, double y)
      Description copied from interface: Document
      Returns the element for the specified x coordinate and the specified y coordinate.
      Specified by:
      elementFromPoint in interface Document
      Parameters:
      x - The x-offset
      y - The y-offset
      Returns:
      a Element object.
    • execCommand

      public boolean execCommand(String commandId, boolean showUI, String value)
      Description copied from interface: Document
      Executes a command on the current document, current selection, or the given range.
      Specified by:
      execCommand in interface Document
      Parameters:
      commandId - String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
      showUI - Display the user interface, defaults to false.
      value - Value to assign.
      Returns:
      a boolean.
    • execCommand

      public boolean execCommand(String commandId, boolean showUI)
      Description copied from interface: Document

      execCommand.

      Specified by:
      execCommand in interface Document
      Parameters:
      commandId - a String object.
      showUI - a boolean.
      Returns:
      a boolean.
    • execCommand

      public boolean execCommand(String commandId)
      Description copied from interface: Document

      execCommand.

      Specified by:
      execCommand in interface Document
      Parameters:
      commandId - a String object.
      Returns:
      a boolean.
    • createComment

      public final Comment createComment(String data)
      Creates a comment object with the specified data.
      Specified by:
      createComment in interface Document
      Parameters:
      data - Sets the comment object's data.
      Returns:
      a Comment object.
    • createCDATASection

      public final CDATASection createCDATASection(String data) throws DOMException
      Returns a CDATASection node whose data is data.
      Specified by:
      createCDATASection in interface Document
      Parameters:
      data - a String object.
      Returns:
      a CDATASection object.
      Throws:
      DOMException
    • createProcessingInstruction

      public final ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
      Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.
      Specified by:
      createProcessingInstruction in interface Document
      Parameters:
      target - a String object.
      data - a String object.
      Returns:
      a ProcessingInstruction object.
      Throws:
      DOMException
    • createRange

      public Range createRange()
      Description copied from interface: DocumentRange
      Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
      Specified by:
      createRange in interface DocumentRange
      Returns:
      a Range object.
    • createAttribute

      public final Attr createAttribute(String name) throws DOMException
      Creates an attribute object with a specified name.
      Specified by:
      createAttribute in interface Document
      Parameters:
      name - String that sets the attribute object's name.
      Returns:
      a Attr object.
      Throws:
      DOMException
    • createEntityReference

      public final EntityReference createEntityReference(String name) throws DOMException
      Specified by:
      createEntityReference in interface Document
      Throws:
      DOMException
    • renameNode

      public Node renameNode(Node node, String namespaceURI, String qualifiedName)
      Specified by:
      renameNode in interface Document
    • isXml

      public boolean isXml()
      Specified by:
      isXml in interface Document
    • setXml

      public void setXml(boolean xml)
      Specified by:
      setXml in interface Document
    • getElementsByTagName

      public final HTMLCollection getElementsByTagName(String tagname)
      Retrieves a collection of objects based on the specified element name.
      Specified by:
      getElementsByTagName in interface Document
      Specified by:
      getElementsByTagName in interface Element
      Parameters:
      tagname - Specifies the name of an element.
      Returns:
      a HTMLCollection object.
    • importNode

      public final Node importNode(Node importedNode, boolean deep) throws DOMException
      Returns a copy of node. If deep is true, the copy also includes the node's descendants.

      If node is a document or a shadow root, throws a "NotSupportedError" DOMException.

      Specified by:
      importNode in interface Document
      Parameters:
      importedNode - a Node object.
      deep - a boolean.
      Returns:
      a Node object.
      Throws:
      DOMException
    • open

      public Document open(String url, String name, String features, boolean replace)
      Description copied from interface: Document
      Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
      Specified by:
      open in interface Document
      Parameters:
      url - Specifies a MIME type for the document.
      name - Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
      features - Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
      replace - Specifies whether the existing entry for the document is replaced in the history list.
      Returns:
      a Document object.
    • open

      public Document open(String url, String name, String features)
      Description copied from interface: Document

      open.

      Specified by:
      open in interface Document
      Parameters:
      url - a String object.
      name - a String object.
      features - a String object.
      Returns:
      a Document object.
    • open

      public Document open(String url, String name)
      Description copied from interface: Document

      open.

      Specified by:
      open in interface Document
      Parameters:
      url - a String object.
      name - a String object.
      Returns:
      a Document object.
    • open

      public Document open(String url)
      Description copied from interface: Document

      open.

      Specified by:
      open in interface Document
      Parameters:
      url - a String object.
      Returns:
      a Document object.
    • open

      public Document open()
      Description copied from interface: Document

      open.

      Specified by:
      open in interface Document
      Returns:
      a Document object.
    • queryCommandEnabled

      public boolean queryCommandEnabled(String commandId)
      Description copied from interface: Document
      Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
      Specified by:
      queryCommandEnabled in interface Document
      Parameters:
      commandId - Specifies a command identifier.
      Returns:
      a boolean.
    • queryCommandIndeterm

      public boolean queryCommandIndeterm(String commandId)
      Description copied from interface: Document
      Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
      Specified by:
      queryCommandIndeterm in interface Document
      Parameters:
      commandId - String that specifies a command identifier.
      Returns:
      a boolean.
    • queryCommandState

      public boolean queryCommandState(String commandId)
      Description copied from interface: Document
      Returns a Boolean value that indicates the current state of the command.
      Specified by:
      queryCommandState in interface Document
      Parameters:
      commandId - String that specifies a command identifier.
      Returns:
      a boolean.
    • queryCommandSupported

      public boolean queryCommandSupported(String commandId)
      Description copied from interface: Document
      Returns a Boolean value that indicates whether the current command is supported on the current range.
      Specified by:
      queryCommandSupported in interface Document
      Parameters:
      commandId - Specifies a command identifier.
      Returns:
      a boolean.
    • queryCommandValue

      public String queryCommandValue(String commandId)
      Description copied from interface: Document
      Returns the current value of the document, range, or current selection for the given command.
      Specified by:
      queryCommandValue in interface Document
      Parameters:
      commandId - String that specifies a command identifier.
      Returns:
      a String object.
    • releaseEvents

      public void releaseEvents()
      Description copied from interface: Document

      releaseEvents.

      Specified by:
      releaseEvents in interface Document
    • write

      public void write(String text)
      Description copied from interface: Document
      Writes one or more HTML expressions to a document in the specified window.
      Specified by:
      write in interface Document
      Parameters:
      text - Specifies the text and HTML tags to write.
    • writeln

      public void writeln(String text)
      Description copied from interface: Document
      Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
      Specified by:
      writeln in interface Document
      Parameters:
      text - The text and HTML tags to write.
    • createElementNS

      public final Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException

      createElementNS.

      Specified by:
      createElementNS in interface Document
      Parameters:
      namespaceURI - a String object.
      qualifiedName - a String object.
      Returns:
      a Element object.
      Throws:
      DOMException
    • createEvent

      public Event createEvent(String eventInterface)
      Description copied from interface: Document

      createEvent.

      Specified by:
      createEvent in interface Document
      Parameters:
      eventInterface - a String object.
      Returns:
      a Event object.
    • createAttributeNS

      public final Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException

      createAttributeNS.

      Specified by:
      createAttributeNS in interface Document
      Parameters:
      namespaceURI - a String object.
      qualifiedName - a String object.
      Returns:
      a Attr object.
      Throws:
      DOMException
    • getElementsByTagNameNS

      public final HTMLCollection getElementsByTagNameNS(String namespaceURI, String localName)
      If namespace and localName are "*" returns a HTMLCollection of all descendant elements.

      If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.

      If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.

      Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.

      Specified by:
      getElementsByTagNameNS in interface Document
      Specified by:
      getElementsByTagNameNS in interface Element
      Parameters:
      namespaceURI - a String object.
      localName - a String object.
      Returns:
      a HTMLCollection object.
    • getSelection

      public Selection getSelection()
      Description copied from interface: Document
      Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
      Specified by:
      getSelection in interface Document
      Returns:
      a Selection object.
    • getElementById

      public final Element getElementById(String elementId)
      Returns the first element within node's descendants whose ID is elementId. Returns a reference to the first object with the specified value of the ID or NAME attribute.
      Specified by:
      getElementById in interface Document
      Specified by:
      getElementById in interface NonElementParentNode
      Parameters:
      elementId - a String object.
      Returns:
      a Element object.
    • getElementsByClassName

      public HTMLCollection getElementsByClassName(String classNames)
      Description copied from interface: Document
      Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
      Specified by:
      getElementsByClassName in interface Document
      Specified by:
      getElementsByClassName in interface Element
      Parameters:
      classNames - a String object.
      Returns:
      a HTMLCollection object.
    • getElementsByName

      public HTMLCollection getElementsByName(String elementName)
      Description copied from interface: Document
      Gets a collection of objects based on the value of the NAME or ID attribute.
      Specified by:
      getElementsByName in interface Document
      Parameters:
      elementName - Gets a collection of objects based on the value of the NAME or ID attribute.
      Returns:
      a HTMLCollection object.
    • splitText

      public final Text splitText(int offset) throws DOMException
      Splits data at the given offset and returns the remainder as Text node.
      Specified by:
      splitText in interface Text
      Parameters:
      offset - a Integer object.
      Returns:
      a Text object.
      Throws:
      DOMException
    • getData

      public final String getData() throws DOMException

      getData.

      Specified by:
      getData in interface CharacterData
      Returns:
      a String object.
      Throws:
      DOMException
    • setData

      public final void setData(String data) throws DOMException

      setData.

      Specified by:
      setData in interface CharacterData
      Parameters:
      data - a String object.
      Throws:
      DOMException
    • getLength

      public final int getLength()

      getLength.

      Specified by:
      getLength in interface CharacterData
      Returns:
      a Integer object.
    • substringData

      public final String substringData(int offset, int count) throws DOMException

      substringData.

      Specified by:
      substringData in interface CharacterData
      Parameters:
      offset - a Integer object.
      count - a Integer object.
      Returns:
      a String object.
      Throws:
      DOMException
    • appendData

      public final void appendData(String arg) throws DOMException

      appendData.

      Specified by:
      appendData in interface CharacterData
      Parameters:
      arg - a String object.
      Throws:
      DOMException
    • insertData

      public final void insertData(int offset, String arg) throws DOMException

      insertData.

      Specified by:
      insertData in interface CharacterData
      Parameters:
      offset - a Integer object.
      arg - a String object.
      Throws:
      DOMException
    • deleteData

      public final void deleteData(int offset, int count) throws DOMException

      deleteData.

      Specified by:
      deleteData in interface CharacterData
      Parameters:
      offset - a Integer object.
      count - a Integer object.
      Throws:
      DOMException
    • replaceData

      public final void replaceData(int offset, int count, String arg) throws DOMException

      replaceData.

      Specified by:
      replaceData in interface CharacterData
      Parameters:
      offset - a Integer object.
      count - a Integer object.
      arg - a String object.
      Throws:
      DOMException
    • getTagName

      public final String getTagName()
      Returns the HTML-uppercased qualified name.
      Specified by:
      getTagName in interface Element
      Returns:
      a String object.
    • closest

      public <E extends Element> E closest(String selector)
      Description copied from interface: Element
      Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
      Specified by:
      closest in interface Element
      Type Parameters:
      E - a E object.
      Parameters:
      selector - a String object.
      Returns:
      a E object.
    • getAttribute

      public final String getAttribute(String name)
      Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
      Specified by:
      getAttribute in interface Element
      Parameters:
      name - a String object.
      Returns:
      a String object.
    • setAttribute

      public final void setAttribute(String name, String value) throws DOMException
      Sets the value of element's first attribute whose qualified name is qualifiedName to value.
      Specified by:
      setAttribute in interface Element
      Parameters:
      name - a String object.
      value - a String object.
      Throws:
      DOMException
    • removeAttribute

      public final void removeAttribute(String name) throws DOMException
      Removes element's first attribute whose qualified name is qualifiedName.
      Specified by:
      removeAttribute in interface Element
      Parameters:
      name - a String object.
      Throws:
      DOMException
    • getAttributeNode

      public final Attr getAttributeNode(String name)

      getAttributeNode.

      Specified by:
      getAttributeNode in interface Element
      Parameters:
      name - a String object.
      Returns:
      a Attr object.
    • setAttributeNode

      public final Attr setAttributeNode(Attr newAttr) throws DOMException

      setAttributeNode.

      Specified by:
      setAttributeNode in interface Element
      Parameters:
      newAttr - a Attr object.
      Returns:
      a Attr object.
      Throws:
      DOMException
    • removeAttributeNode

      public final Attr removeAttributeNode(Attr oldAttr) throws DOMException

      removeAttributeNode.

      Specified by:
      removeAttributeNode in interface Element
      Parameters:
      oldAttr - a Attr object.
      Returns:
      a Attr object.
      Throws:
      DOMException
    • requestPointerLock

      public void requestPointerLock()
      Description copied from interface: Element

      requestPointerLock.

      Specified by:
      requestPointerLock in interface Element
    • scroll

      public void scroll(int x, int y)
      Description copied from interface: Element

      scroll.

      Specified by:
      scroll in interface Element
      Parameters:
      x - a double.
      y - a double.
    • scrollBy

      public void scrollBy(int x, int y)
      Description copied from interface: Element

      scrollBy.

      Specified by:
      scrollBy in interface Element
      Parameters:
      x - a double.
      y - a double.
    • scrollIntoView

      public void scrollIntoView(boolean arg)
      Description copied from interface: Element

      scrollIntoView.

      Specified by:
      scrollIntoView in interface Element
      Parameters:
      arg - a boolean.
    • scrollIntoView

      public void scrollIntoView()
      Description copied from interface: Element

      scrollIntoView.

      Specified by:
      scrollIntoView in interface Element
    • scrollTo

      public void scrollTo(int x, int y)
      Description copied from interface: Element

      scrollTo.

      Specified by:
      scrollTo in interface Element
      Parameters:
      x - a double.
      y - a double.
    • hasAttributes

      public boolean hasAttributes()
      Returns true if element has attributes, and false otherwise.
      Specified by:
      hasAttributes in interface Node
      Returns:
      a boolean.
    • getFeature

      public Node getFeature(String name, String version)
      Specified by:
      getFeature in interface Node
    • normalize

      public final void normalize()
      Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
      Specified by:
      normalize in interface Node
    • getAttributeNS

      public final String getAttributeNS(String namespaceURI, String localName)
      Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
      Specified by:
      getAttributeNS in interface Element
      Parameters:
      namespaceURI - a String object.
      localName - a String object.
      Returns:
      a String object.
    • getAttributeNames

      public String[] getAttributeNames()
      Description copied from interface: Element
      Returns the qualified names of all element's attributes. Can contain duplicates.
      Specified by:
      getAttributeNames in interface Element
      Returns:
      an array of String objects.
    • setAttributeNS

      public final void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
      Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
      Specified by:
      setAttributeNS in interface Element
      Parameters:
      namespaceURI - a String object.
      qualifiedName - a String object.
      value - a String object.
      Throws:
      DOMException
    • removeAttributeNS

      public final void removeAttributeNS(String namespaceURI, String localName) throws DOMException
      Removes element's attribute whose namespace is namespace and local name is localName.
      Specified by:
      removeAttributeNS in interface Element
      Parameters:
      namespaceURI - a String object.
      localName - a String object.
      Throws:
      DOMException
    • getAttributeNodeNS

      public final Attr getAttributeNodeNS(String namespaceURI, String localName)

      getAttributeNodeNS.

      Specified by:
      getAttributeNodeNS in interface Element
      Parameters:
      namespaceURI - a String object.
      localName - a String object.
      Returns:
      a Attr object.
    • setAttributeNodeNS

      public final Attr setAttributeNodeNS(Attr newAttr) throws DOMException

      setAttributeNodeNS.

      Specified by:
      setAttributeNodeNS in interface Element
      Parameters:
      newAttr - a Attr object.
      Returns:
      a Attr object.
      Throws:
      DOMException
    • getName

      public final String getName()

      getName.

      Specified by:
      getName in interface Attr
      Returns:
      a String object.
    • getValue

      public final String getValue()

      getValue.

      Specified by:
      getValue in interface Attr
      Returns:
      a String object.
    • setValue

      public final void setValue(String value)

      setValue.

      Specified by:
      setValue in interface Attr
      Parameters:
      value - a String object.
    • setOwnerElement

      public void setOwnerElement(Node element)
      Description copied from interface: Attr

      setOwnerElement.

      Specified by:
      setOwnerElement in interface Attr
      Parameters:
      element - a Node object.
    • getOwnerElement

      public final Node getOwnerElement()

      getOwnerElement.

      Specified by:
      getOwnerElement in interface Attr
      Returns:
      a Node object.
    • adoptNode

      public Node adoptNode(Node source) throws DOMException
      Moves node from another document and returns it.

      If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.

      Specified by:
      adoptNode in interface Document
      Parameters:
      source - a Node object.
      Returns:
      a Node object.
      Throws:
      DOMException
    • caretRangeFromPoint

      public Range caretRangeFromPoint(double x, double y)
      Description copied from interface: Document

      caretRangeFromPoint.

      Specified by:
      caretRangeFromPoint in interface Document
      Parameters:
      x - a double.
      y - a double.
      Returns:
      a Range object.
    • clear

      public void clear()
      Description copied from interface: Document

      clear.

      Specified by:
      clear in interface Document
    • close

      public void close()
      Description copied from interface: Document
      Closes an output stream and forces the sent data to display.
      Specified by:
      close in interface Document
    • getInputEncoding

      public String getInputEncoding()
      Returns the character encoding used to create the webpage that is loaded into the document object.
      Specified by:
      getInputEncoding in interface Document
      Returns:
      a String object.
    • getLastModified

      public String getLastModified()
      Description copied from interface: Document
      Gets the date that the page was last modified, if the page supplies one.
      Specified by:
      getLastModified in interface Document
      Returns:
      a String object.
    • getLinks

      public HTMLCollection getLinks()
      Description copied from interface: Document
      Retrieves a collection of all a objects that specify the href property and all area objects in the document.
      Specified by:
      getLinks in interface Document
      Returns:
      a HTMLCollection object.
    • getLocation

      public Location getLocation()
      Description copied from interface: Document
      Contains information about the current URL.
      Specified by:
      getLocation in interface Document
      Returns:
      a Location object.
    • setLocation

      public void setLocation(Location location)
      Description copied from interface: Document

      setLocation.

      Specified by:
      setLocation in interface Document
      Parameters:
      location - a Location object.
    • getOrigin

      public String getOrigin()
      Description copied from interface: Document
      Returns document's origin.
      Specified by:
      getOrigin in interface Document
      Returns:
      a String object.
    • getPlugins

      public HTMLCollection getPlugins()
      Description copied from interface: Document
      Return an HTMLCollection of the embed elements in the Document.
      Specified by:
      getPlugins in interface Document
      Returns:
      a HTMLCollection object.
    • getReadyState

      public DocumentReadyState getReadyState()
      Description copied from interface: Document
      Retrieves a value that indicates the current state of the object.
      Specified by:
      getReadyState in interface Document
      Returns:
      a DocumentReadyState object.
    • getReferrer

      public String getReferrer()
      Description copied from interface: Document
      Gets the URL of the location that referred the user to the current page.
      Specified by:
      getReferrer in interface Document
      Returns:
      a String object.
    • getScripts

      public HTMLCollection getScripts()
      Description copied from interface: Document
      Retrieves a collection of all script objects in the document.
      Specified by:
      getScripts in interface Document
      Returns:
      a HTMLCollection object.
    • getScrollingElement

      public Element getScrollingElement()
      Description copied from interface: Document

      getScrollingElement.

      Specified by:
      getScrollingElement in interface Document
      Returns:
      a Element object.
    • getTitle

      public String getTitle()
      Description copied from interface: Document
      Contains the title of the document.
      Specified by:
      getTitle in interface Document
      Returns:
      a String object.
    • setTitle

      public void setTitle(String title)
      Description copied from interface: Document

      setTitle.

      Specified by:
      setTitle in interface Document
      Parameters:
      title - a String object.
    • getVisibilityState

      public VisibilityState getVisibilityState()
      Description copied from interface: Document

      getVisibilityState.

      Specified by:
      getVisibilityState in interface Document
      Returns:
      a VisibilityState object.
    • getStrictErrorChecking

      public boolean getStrictErrorChecking()

      getStrictErrorChecking.

      Specified by:
      getStrictErrorChecking in interface Document
      Returns:
      a boolean.
    • setStrictErrorChecking

      public void setStrictErrorChecking(boolean strictErrorChecking)

      setStrictErrorChecking.

      Specified by:
      setStrictErrorChecking in interface Document
      Parameters:
      strictErrorChecking - a boolean.
    • getInnerHTML

      public String getInnerHTML()
      Description copied from interface: Element

      getInnerHTML.

      Specified by:
      getInnerHTML in interface Element
      Specified by:
      getInnerHTML in interface InnerHTML
      Returns:
      a String object.
    • getInnerText

      public String getInnerText()
      Description copied from interface: Element

      getInnerText.

      Specified by:
      getInnerText in interface Element
      Returns:
      a String object.
    • setInnerHTML

      public void setInnerHTML(String innerHTML)
      Description copied from interface: InnerHTML

      setInnerHTML.

      Specified by:
      setInnerHTML in interface InnerHTML
      Parameters:
      innerHTML - a String object.
    • getNextElementSibling

      public Element getNextElementSibling()
      Description copied from interface: NonDocumentTypeChildNode
      Returns the first following sibling that is an element, and null otherwise.
      Specified by:
      getNextElementSibling in interface NonDocumentTypeChildNode
      Returns:
      a Element object.
    • getPreviousElementSibling

      public Element getPreviousElementSibling()
      Description copied from interface: NonDocumentTypeChildNode
      Returns the first preceding sibling that is an element, and null otherwise.
      Specified by:
      getPreviousElementSibling in interface NonDocumentTypeChildNode
      Returns:
      a Element object.
    • getChildElementCount

      public int getChildElementCount()
      Description copied from interface: ParentNode

      getChildElementCount.

      Specified by:
      getChildElementCount in interface ParentNode
      Returns:
      a Integer object.
    • getChildren

      public HTMLCollection getChildren()
      Description copied from interface: ParentNode
      Returns the child elements.
      Specified by:
      getChildren in interface ParentNode
      Returns:
      a HTMLCollection object.
    • getFirstElementChild

      public Element getFirstElementChild()
      Description copied from interface: ParentNode
      Returns the first child that is an element, and null otherwise.
      Specified by:
      getFirstElementChild in interface ParentNode
      Returns:
      a Element object.
    • getLastElementChild

      public Element getLastElementChild()
      Description copied from interface: ParentNode
      Returns the last child that is an element, and null otherwise.
      Specified by:
      getLastElementChild in interface ParentNode
      Returns:
      a Element object.
    • querySelector

      public Element querySelector(String selectors)
      Description copied from interface: ParentNode
      Returns the first element that is a descendant of node that matches selectors.
      Specified by:
      querySelector in interface ParentNode
      Parameters:
      selectors - a String object.
      Returns:
      a Element object.
    • querySelectorAll

      public NodeList querySelectorAll(String selectors)
      Description copied from interface: ParentNode
      Returns all element descendants of node that match selectors.
      Specified by:
      querySelectorAll in interface ParentNode
      Parameters:
      selectors - a String object.
      Returns:
      a NodeList object.
    • addEventListener

      public void addEventListener(String type, Function listener)
      Description copied from interface: EventTarget

      addEventListener.

      Specified by:
      addEventListener in interface EventTarget
      Parameters:
      type - a String object.
      listener - a Function object.
    • addEventListener

      public void addEventListener(String type, Function listener, boolean useCapture)
      Description copied from interface: EventTarget

      addEventListener.

      Specified by:
      addEventListener in interface EventTarget
      Parameters:
      type - a String object.
      listener - a Function object.
      useCapture - a boolean.
    • removeEventListener

      public void removeEventListener(String type, Function listener)
      Description copied from interface: EventTarget

      removeEventListener.

      Specified by:
      removeEventListener in interface EventTarget
      Parameters:
      type - a String object.
      listener - a Function object.
    • removeEventListener

      public void removeEventListener(String type, Function listener, boolean useCapture)
      Description copied from interface: EventTarget

      removeEventListener.

      Specified by:
      removeEventListener in interface EventTarget
      Parameters:
      type - a String object.
      listener - a Function object.
      useCapture - a boolean.
    • dispatchEvent

      public boolean dispatchEvent(Node element, Event evt)
      Description copied from interface: EventTarget

      dispatchEvent.

      Specified by:
      dispatchEvent in interface EventTarget
      Parameters:
      element - a Node object.
      evt - a Event object.
      Returns:
      a boolean.
    • dispatchEvent

      public boolean dispatchEvent(Event evt) throws EventException
      Description copied from interface: EventTarget

      dispatchEvent.

      Specified by:
      dispatchEvent in interface EventTarget
      Parameters:
      evt - a Event object.
      Returns:
      a boolean.
      Throws:
      EventException - if any.
    • createNodeIterator

      public NodeIterator createNodeIterator(Node root) throws DOMException
      Description copied from interface: DocumentTraversal
      Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
      Specified by:
      createNodeIterator in interface DocumentTraversal
      Parameters:
      root - a Node object.
      Throws:
      DOMException
    • createNodeIterator

      public NodeIterator createNodeIterator(Node root, int whatToShow) throws DOMException
      Description copied from interface: DocumentTraversal
      Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
      Specified by:
      createNodeIterator in interface DocumentTraversal
      Parameters:
      root - a Node object.
      whatToShow - a Integer object.
      Throws:
      DOMException
    • createNodeIterator

      public NodeIterator createNodeIterator(Node root, NodeFilter filter) throws DOMException
      Description copied from interface: DocumentTraversal
      Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
      Specified by:
      createNodeIterator in interface DocumentTraversal
      Parameters:
      root - a Node object.
      filter - a NodeFilter object.
      Throws:
      DOMException
    • createNodeIterator

      public NodeIterator createNodeIterator(Node root, int whatToShow, NodeFilter filter) throws DOMException
      Description copied from interface: DocumentTraversal
      Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
      Specified by:
      createNodeIterator in interface DocumentTraversal
      Parameters:
      root - a Node object.
      whatToShow - a Integer object.
      filter - a NodeFilter object.
      Throws:
      DOMException
    • createTreeWalker

      public TreeWalker createTreeWalker(Node root) throws DOMException
      Description copied from interface: DocumentTraversal

      createTreeWalker.

      Specified by:
      createTreeWalker in interface DocumentTraversal
      Parameters:
      root - a Node object.
      Throws:
      DOMException
    • createTreeWalker

      public TreeWalker createTreeWalker(Node root, int whatToShow) throws DOMException
      Description copied from interface: DocumentTraversal

      createTreeWalker.

      Specified by:
      createTreeWalker in interface DocumentTraversal
      Parameters:
      root - a Node object.
      whatToShow - a Integer object.
      Throws:
      DOMException
    • createTreeWalker

      public TreeWalker createTreeWalker(Node root, NodeFilter filter) throws DOMException
      Description copied from interface: DocumentTraversal

      createTreeWalker.

      Specified by:
      createTreeWalker in interface DocumentTraversal
      Parameters:
      root - a Node object.
      filter - a NodeFilter object.
      Throws:
      DOMException
    • createTreeWalker

      public TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter) throws DOMException
      Description copied from interface: DocumentTraversal

      createTreeWalker.

      Specified by:
      createTreeWalker in interface DocumentTraversal
      Parameters:
      root - a Node object.
      whatToShow - a Integer object.
      filter - a NodeFilter object.
      Throws:
      DOMException
    • setUserData

      public Object setUserData(String key, Object data, UserDataHandler handler)

      setUserData.

      Specified by:
      setUserData in interface Node
      Parameters:
      key - a String object.
      data - a Object object.
      handler - a UserDataHandler object.
      Returns:
      a Object object.
    • contains

      public boolean contains(Node other)
      Description copied from interface: Node
      Returns true if other is an inclusive descendant of node, and false otherwise.
      Specified by:
      contains in interface Node
      Parameters:
      other - a Node object.
      Returns:
      a boolean.
    • getUserData

      public Object getUserData(String key)

      getUserData.

      Specified by:
      getUserData in interface Node
      Parameters:
      key - a String object.
      Returns:
      a Object object.
    • isEqualNode

      public boolean isEqualNode(Node arg)
      Returns whether node and otherNode have the same properties.
      Specified by:
      isEqualNode in interface Node
      Parameters:
      arg - a Node object.
      Returns:
      a boolean.
    • lookupNamespaceURI

      public String lookupNamespaceURI(String specifiedPrefix)

      lookupNamespaceURI.

      Specified by:
      lookupNamespaceURI in interface Node
      Parameters:
      specifiedPrefix - a String object.
      Returns:
      a String object.
    • isDefaultNamespace

      public boolean isDefaultNamespace(String namespaceURI)

      isDefaultNamespace.

      Specified by:
      isDefaultNamespace in interface Node
      Parameters:
      namespaceURI - a String object.
      Returns:
      a boolean.
    • lookupPrefix

      public String lookupPrefix(String namespaceURI)

      lookupPrefix.

      Specified by:
      lookupPrefix in interface Node
      Parameters:
      namespaceURI - a String object.
      Returns:
      a String object.
    • isSameNode

      public boolean isSameNode(Node other)

      isSameNode.

      Specified by:
      isSameNode in interface Node
      Parameters:
      other - a Node object.
      Returns:
      a boolean.
    • setTextContent

      public void setTextContent(String textContent) throws DOMException

      setTextContent.

      Specified by:
      setTextContent in interface Node
      Parameters:
      textContent - a String object.
      Throws:
      DOMException
    • getTextContent

      public String getTextContent() throws DOMException

      getTextContent.

      Specified by:
      getTextContent in interface Node
      Returns:
      a String object.
      Throws:
      DOMException
    • compareDocumentPosition

      public short compareDocumentPosition(Node other) throws DOMException

      compareDocumentPosition.

      Specified by:
      compareDocumentPosition in interface Node
      Parameters:
      other - a Node object.
      Returns:
      a short.
      Throws:
      DOMException
    • getBaseURI

      public String getBaseURI()
      Returns node's node document's document base URL.
      Specified by:
      getBaseURI in interface Node
      Returns:
      a String object.
    • normalizeDocument

      public void normalizeDocument()

      normalizeDocument.

      Specified by:
      normalizeDocument in interface Document
    • createExpression

      public XPathExpression createExpression()
      Description copied from interface: Document

      createExpression.

      Specified by:
      createExpression in interface Document
      Returns:
      a XPathExpression object.
    • createNSResolver

      public XPathNSResolver createNSResolver(Node nodeResolver)
      Description copied from interface: Document

      createNSResolver.

      Specified by:
      createNSResolver in interface Document
      Parameters:
      nodeResolver - a Node object.
      Returns:
      a XPathNSResolver object.
    • evaluate

      public XPathResult evaluate(String expression, Node contextNode, XPathNSResolver resolver, short type, Object result)
      Description copied from interface: Document

      evaluate.

      Specified by:
      evaluate in interface Document
      Parameters:
      expression - a String object.
      contextNode - a Node object.
      resolver - a XPathNSResolver object.
      type - a short.
      result - a Object object.
      Returns:
      a XPathResult object.
    • getDomConfig

      public DOMConfiguration getDomConfig()

      getDomConfig.

      Specified by:
      getDomConfig in interface Document
      Returns:
      a DOMConfiguration object.
    • setDocumentURI

      public void setDocumentURI(String documentURI)

      setDocumentURI.

      Specified by:
      setDocumentURI in interface Document
      Parameters:
      documentURI - a String object.
    • getDocumentURI

      public String getDocumentURI()
      Returns document's URL.
      Specified by:
      getDocumentURI in interface Document
      Returns:
      a String object.
    • getDomain

      public String getDomain()
      Description copied from interface: Document
      Sets or gets the security domain of the document.
      Specified by:
      getDomain in interface Document
      Returns:
      a String object.
    • setDomain

      public void setDomain(String domain)
      Description copied from interface: Document

      setDomain.

      Specified by:
      setDomain in interface Document
      Parameters:
      domain - a String object.
    • getEmbeds

      public HTMLCollection getEmbeds()
      Description copied from interface: Document
      Retrieves a collection of all embed objects in the document.
      Specified by:
      getEmbeds in interface Document
      Returns:
      a HTMLCollection object.
    • getFgColor

      public String getFgColor()
      Description copied from interface: Document
      Sets or gets the foreground (text) color of the document.
      Specified by:
      getFgColor in interface Document
      Returns:
      a String object.
    • setFgColor

      public void setFgColor(String fgColor)
      Description copied from interface: Document

      setFgColor.

      Specified by:
      setFgColor in interface Document
      Parameters:
      fgColor - a String object.
    • getForms

      public HTMLCollection getForms()
      Description copied from interface: Document
      Retrieves a collection, in source order, of all form objects in the document.
      Specified by:
      getForms in interface Document
      Returns:
      a HTMLCollection object.
    • isFullscreen

      public boolean isFullscreen()
      Description copied from interface: Document

      isFullscreen.

      Specified by:
      isFullscreen in interface Document
      Returns:
      a boolean.
    • isFullscreenEnabled

      public boolean isFullscreenEnabled()
      Description copied from interface: Document
      Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
      Specified by:
      isFullscreenEnabled in interface Document
      Returns:
      a boolean.
    • getHead

      public HTMLHeadElement getHead()
      Description copied from interface: Document
      Returns the head element.
      Specified by:
      getHead in interface Document
      Returns:
      a HTMLHeadElement object.
    • isHidden

      public boolean isHidden()
      Description copied from interface: Document

      isHidden.

      Specified by:
      isHidden in interface Document
      Returns:
      a boolean.
    • getImages

      public HTMLCollection getImages()
      Description copied from interface: Document
      Retrieves a collection, in source order, of img objects in the document.
      Specified by:
      getImages in interface Document
      Returns:
      a HTMLCollection object.
    • replaceWholeText

      public Text replaceWholeText(String content) throws DOMException

      replaceWholeText.

      Specified by:
      replaceWholeText in interface Text
      Parameters:
      content - a String object.
      Returns:
      a Text object.
      Throws:
      DOMException
    • getAssignedSlot

      public HTMLSlotElement getAssignedSlot()
      Description copied from interface: Text

      getAssignedSlot.

      Specified by:
      getAssignedSlot in interface Text
      Returns:
      a HTMLSlotElement object.
    • getWholeText

      public String getWholeText()
      Returns the combined data of all direct Text node siblings.
      Specified by:
      getWholeText in interface Text
      Returns:
      a String object.
    • isElementContentWhitespace

      public boolean isElementContentWhitespace()

      isElementContentWhitespace.

      Specified by:
      isElementContentWhitespace in interface Text
      Returns:
      a boolean.
    • setIdAttribute

      public void setIdAttribute(String name, boolean makeId)

      setIdAttribute.

      Specified by:
      setIdAttribute in interface Element
      Parameters:
      name - a String object.
      makeId - a boolean.
    • setIdAttributeNode

      public void setIdAttributeNode(Attr at, boolean makeId)

      setIdAttributeNode.

      Specified by:
      setIdAttributeNode in interface Element
      Parameters:
      at - a Attr object.
      makeId - a boolean.
    • setIdAttributeNS

      public void setIdAttributeNS(String namespaceURI, String localName, boolean makeId)

      setIdAttributeNode.

      Specified by:
      setIdAttributeNS in interface Element
      Parameters:
      namespaceURI - a String object.
      localName - a String object.
      makeId - a boolean.
    • setPointerCapture

      public void setPointerCapture(int pointerId)
      Description copied from interface: Element

      setPointerCapture.

      Specified by:
      setPointerCapture in interface Element
      Parameters:
      pointerId - a Integer object.
    • toggleAttribute

      public boolean toggleAttribute(String qualifiedName, boolean force)
      Description copied from interface: Element
      If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.

      Returns true if qualifiedName is now present, and false otherwise.

      Specified by:
      toggleAttribute in interface Element
      Parameters:
      qualifiedName - a String object.
      force - a boolean.
      Returns:
      a boolean.
    • toggleAttribute

      public boolean toggleAttribute(String qualifiedName)
      Description copied from interface: Element

      toggleAttribute.

      Specified by:
      toggleAttribute in interface Element
      Parameters:
      qualifiedName - a String object.
      Returns:
      a boolean.
    • insertAdjacentElement

      public Node insertAdjacentElement(String where, Node insertedElement)
      Description copied from interface: Element

      insertAdjacentElement.

      Specified by:
      insertAdjacentElement in interface Element
      Parameters:
      where - a String object.
      insertedElement - Node object.
      Returns:
      a Node object.
    • insertAdjacentHTML

      public void insertAdjacentHTML(String position, String text)
      Description copied from interface: Element

      insertAdjacentHTML.

      Specified by:
      insertAdjacentHTML in interface Element
      Parameters:
      position - a String object.
      text - a String object.
    • getSchemaTypeInfo

      public TypeInfo getSchemaTypeInfo()

      getSchemaTypeInfo.

      Specified by:
      getSchemaTypeInfo in interface Attr
      Specified by:
      getSchemaTypeInfo in interface Element
      Returns:
      a TypeInfo object.
    • setOuterHTML

      public void setOuterHTML(String outerHTML)
      Description copied from interface: Element

      setOuterHTML.

      Specified by:
      setOuterHTML in interface Element
      Parameters:
      outerHTML - a String object.
    • isSpecified

      public boolean isSpecified()
      Description copied from interface: Attr

      isSpecified.

      Specified by:
      isSpecified in interface Attr
      Returns:
      a boolean.
    • isId

      public boolean isId()

      isId.

      Specified by:
      isId in interface Attr
      Returns:
      a boolean.
    • getXmlEncoding

      public String getXmlEncoding()

      getXmlEncoding.

      Specified by:
      getXmlEncoding in interface Document
      Returns:
      a String object.
    • getXmlStandalone

      public boolean getXmlStandalone()

      getXmlStandalone.

      Specified by:
      getXmlStandalone in interface Document
      Returns:
      a boolean.
    • setXmlStandalone

      public void setXmlStandalone(boolean xmlStandalone) throws DOMException

      setXmlStandalone.

      Specified by:
      setXmlStandalone in interface Document
      Parameters:
      xmlStandalone - a boolean.
      Throws:
      DOMException
    • getXmlVersion

      public String getXmlVersion()

      getXmlVersion.

      Specified by:
      getXmlVersion in interface Document
      Returns:
      a String object.
    • setXmlVersion

      public void setXmlVersion(String xmlVersion) throws DOMException

      setXmlVersion.

      Specified by:
      setXmlVersion in interface Document
      Parameters:
      xmlVersion - a String object.
      Throws:
      DOMException
    • hasFocus

      public boolean hasFocus()
      Description copied from interface: Document
      Gets a value indicating whether the object currently has focus.
      Specified by:
      hasFocus in interface Document
      Returns:
      a boolean.