Class Node

java.lang.Object
io.webfolder.cdp.type.dom.Node

public class Node
extends java.lang.Object
DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes DOMNode is a base node mirror type
  • Constructor Summary

    Constructors 
    Constructor Description
    Node()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.String> getAttributes()
    Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.
    java.lang.Integer getBackendNodeId()
    The BackendNodeId for this node.
    java.lang.String getBaseURL()
    Base URL that `Document` or `FrameOwner` node uses for URL completion.
    java.lang.Integer getChildNodeCount()
    Child count for `Container` nodes.
    java.util.List<Node> getChildren()
    Child nodes of this node when requested with children.
    Node getContentDocument()
    Content document for frame owner elements.
    java.util.List<BackendNode> getDistributedNodes()
    Distributed nodes for given insertion point.
    java.lang.String getDocumentURL()
    Document URL that `Document` or `FrameOwner` node points to.
    java.lang.String getFrameId()
    Frame ID for frame owner elements.
    Node getImportedDocument()
    Import document for the HTMLImport links.
    java.lang.String getInternalSubset()
    `DocumentType`'s internalSubset.
    java.lang.Boolean getIsSVG()
    Whether the node is SVG.
    java.lang.String getLocalName()
    `Node`'s localName.
    java.lang.String getName()
    `Attr`'s name.
    java.lang.Integer getNodeId()
    Node identifier that is passed into the rest of the DOM messages as the `nodeId`.
    java.lang.String getNodeName()
    `Node`'s nodeName.
    java.lang.Integer getNodeType()
    `Node`'s nodeType.
    java.lang.String getNodeValue()
    `Node`'s nodeValue.
    java.lang.Integer getParentId()
    The id of the parent node if any.
    java.util.List<Node> getPseudoElements()
    Pseudo elements associated with this node.
    PseudoType getPseudoType()
    Pseudo element type for this node.
    java.lang.String getPublicId()
    `DocumentType`'s publicId.
    java.util.List<Node> getShadowRoots()
    Shadow root list for given element host.
    ShadowRootType getShadowRootType()
    Shadow root type.
    java.lang.String getSystemId()
    `DocumentType`'s systemId.
    Node getTemplateContent()
    Content document fragment for template elements.
    java.lang.String getValue()
    `Attr`'s value.
    java.lang.String getXmlVersion()
    `Document`'s XML version in case of XML documents.
    void setAttributes​(java.util.List<java.lang.String> attributes)
    Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.
    void setBackendNodeId​(java.lang.Integer backendNodeId)
    The BackendNodeId for this node.
    void setBaseURL​(java.lang.String baseURL)
    Base URL that `Document` or `FrameOwner` node uses for URL completion.
    void setChildNodeCount​(java.lang.Integer childNodeCount)
    Child count for `Container` nodes.
    void setChildren​(java.util.List<Node> children)
    Child nodes of this node when requested with children.
    void setContentDocument​(Node contentDocument)
    Content document for frame owner elements.
    void setDistributedNodes​(java.util.List<BackendNode> distributedNodes)
    Distributed nodes for given insertion point.
    void setDocumentURL​(java.lang.String documentURL)
    Document URL that `Document` or `FrameOwner` node points to.
    void setFrameId​(java.lang.String frameId)
    Frame ID for frame owner elements.
    void setImportedDocument​(Node importedDocument)
    Import document for the HTMLImport links.
    void setInternalSubset​(java.lang.String internalSubset)
    `DocumentType`'s internalSubset.
    void setIsSVG​(java.lang.Boolean isSVG)
    Whether the node is SVG.
    void setLocalName​(java.lang.String localName)
    `Node`'s localName.
    void setName​(java.lang.String name)
    `Attr`'s name.
    void setNodeId​(java.lang.Integer nodeId)
    Node identifier that is passed into the rest of the DOM messages as the `nodeId`.
    void setNodeName​(java.lang.String nodeName)
    `Node`'s nodeName.
    void setNodeType​(java.lang.Integer nodeType)
    `Node`'s nodeType.
    void setNodeValue​(java.lang.String nodeValue)
    `Node`'s nodeValue.
    void setParentId​(java.lang.Integer parentId)
    The id of the parent node if any.
    void setPseudoElements​(java.util.List<Node> pseudoElements)
    Pseudo elements associated with this node.
    void setPseudoType​(PseudoType pseudoType)
    Pseudo element type for this node.
    void setPublicId​(java.lang.String publicId)
    `DocumentType`'s publicId.
    void setShadowRoots​(java.util.List<Node> shadowRoots)
    Shadow root list for given element host.
    void setShadowRootType​(ShadowRootType shadowRootType)
    Shadow root type.
    void setSystemId​(java.lang.String systemId)
    `DocumentType`'s systemId.
    void setTemplateContent​(Node templateContent)
    Content document fragment for template elements.
    void setValue​(java.lang.String value)
    `Attr`'s value.
    void setXmlVersion​(java.lang.String xmlVersion)
    `Document`'s XML version in case of XML documents.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Node

      public Node()
  • Method Details

    • getNodeId

      public java.lang.Integer getNodeId()
      Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend will only push node with given `id` once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.
    • setNodeId

      public void setNodeId​(java.lang.Integer nodeId)
      Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend will only push node with given `id` once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.
    • getParentId

      public java.lang.Integer getParentId()
      The id of the parent node if any.
    • setParentId

      public void setParentId​(java.lang.Integer parentId)
      The id of the parent node if any.
    • getBackendNodeId

      public java.lang.Integer getBackendNodeId()
      The BackendNodeId for this node.
    • setBackendNodeId

      public void setBackendNodeId​(java.lang.Integer backendNodeId)
      The BackendNodeId for this node.
    • getNodeType

      public java.lang.Integer getNodeType()
      `Node`'s nodeType.
    • setNodeType

      public void setNodeType​(java.lang.Integer nodeType)
      `Node`'s nodeType.
    • getNodeName

      public java.lang.String getNodeName()
      `Node`'s nodeName.
    • setNodeName

      public void setNodeName​(java.lang.String nodeName)
      `Node`'s nodeName.
    • getLocalName

      public java.lang.String getLocalName()
      `Node`'s localName.
    • setLocalName

      public void setLocalName​(java.lang.String localName)
      `Node`'s localName.
    • getNodeValue

      public java.lang.String getNodeValue()
      `Node`'s nodeValue.
    • setNodeValue

      public void setNodeValue​(java.lang.String nodeValue)
      `Node`'s nodeValue.
    • getChildNodeCount

      public java.lang.Integer getChildNodeCount()
      Child count for `Container` nodes.
    • setChildNodeCount

      public void setChildNodeCount​(java.lang.Integer childNodeCount)
      Child count for `Container` nodes.
    • getChildren

      public java.util.List<Node> getChildren()
      Child nodes of this node when requested with children.
    • setChildren

      public void setChildren​(java.util.List<Node> children)
      Child nodes of this node when requested with children.
    • getAttributes

      public java.util.List<java.lang.String> getAttributes()
      Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.
    • setAttributes

      public void setAttributes​(java.util.List<java.lang.String> attributes)
      Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.
    • getDocumentURL

      public java.lang.String getDocumentURL()
      Document URL that `Document` or `FrameOwner` node points to.
    • setDocumentURL

      public void setDocumentURL​(java.lang.String documentURL)
      Document URL that `Document` or `FrameOwner` node points to.
    • getBaseURL

      public java.lang.String getBaseURL()
      Base URL that `Document` or `FrameOwner` node uses for URL completion.
    • setBaseURL

      public void setBaseURL​(java.lang.String baseURL)
      Base URL that `Document` or `FrameOwner` node uses for URL completion.
    • getPublicId

      public java.lang.String getPublicId()
      `DocumentType`'s publicId.
    • setPublicId

      public void setPublicId​(java.lang.String publicId)
      `DocumentType`'s publicId.
    • getSystemId

      public java.lang.String getSystemId()
      `DocumentType`'s systemId.
    • setSystemId

      public void setSystemId​(java.lang.String systemId)
      `DocumentType`'s systemId.
    • getInternalSubset

      public java.lang.String getInternalSubset()
      `DocumentType`'s internalSubset.
    • setInternalSubset

      public void setInternalSubset​(java.lang.String internalSubset)
      `DocumentType`'s internalSubset.
    • getXmlVersion

      public java.lang.String getXmlVersion()
      `Document`'s XML version in case of XML documents.
    • setXmlVersion

      public void setXmlVersion​(java.lang.String xmlVersion)
      `Document`'s XML version in case of XML documents.
    • getName

      public java.lang.String getName()
      `Attr`'s name.
    • setName

      public void setName​(java.lang.String name)
      `Attr`'s name.
    • getValue

      public java.lang.String getValue()
      `Attr`'s value.
    • setValue

      public void setValue​(java.lang.String value)
      `Attr`'s value.
    • getPseudoType

      public PseudoType getPseudoType()
      Pseudo element type for this node.
    • setPseudoType

      public void setPseudoType​(PseudoType pseudoType)
      Pseudo element type for this node.
    • getShadowRootType

      public ShadowRootType getShadowRootType()
      Shadow root type.
    • setShadowRootType

      public void setShadowRootType​(ShadowRootType shadowRootType)
      Shadow root type.
    • getFrameId

      public java.lang.String getFrameId()
      Frame ID for frame owner elements.
    • setFrameId

      public void setFrameId​(java.lang.String frameId)
      Frame ID for frame owner elements.
    • getContentDocument

      public Node getContentDocument()
      Content document for frame owner elements.
    • setContentDocument

      public void setContentDocument​(Node contentDocument)
      Content document for frame owner elements.
    • getShadowRoots

      public java.util.List<Node> getShadowRoots()
      Shadow root list for given element host.
    • setShadowRoots

      public void setShadowRoots​(java.util.List<Node> shadowRoots)
      Shadow root list for given element host.
    • getTemplateContent

      public Node getTemplateContent()
      Content document fragment for template elements.
    • setTemplateContent

      public void setTemplateContent​(Node templateContent)
      Content document fragment for template elements.
    • getPseudoElements

      public java.util.List<Node> getPseudoElements()
      Pseudo elements associated with this node.
    • setPseudoElements

      public void setPseudoElements​(java.util.List<Node> pseudoElements)
      Pseudo elements associated with this node.
    • getImportedDocument

      public Node getImportedDocument()
      Import document for the HTMLImport links.
    • setImportedDocument

      public void setImportedDocument​(Node importedDocument)
      Import document for the HTMLImport links.
    • getDistributedNodes

      public java.util.List<BackendNode> getDistributedNodes()
      Distributed nodes for given insertion point.
    • setDistributedNodes

      public void setDistributedNodes​(java.util.List<BackendNode> distributedNodes)
      Distributed nodes for given insertion point.
    • setIsSVG

      public void setIsSVG​(java.lang.Boolean isSVG)
      Whether the node is SVG.
    • getIsSVG

      public java.lang.Boolean getIsSVG()
      Whether the node is SVG.