Class Node

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

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

    • Node

      public Node()
  • Method Details

    • getNodeId

      public 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(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 Integer getParentId()
      The id of the parent node if any.
    • setParentId

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

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

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

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

      public void setNodeType(Integer nodeType)
      Node's nodeType.
    • getNodeName

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

      public void setNodeName(String nodeName)
      Node's nodeName.
    • getLocalName

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

      public void setLocalName(String localName)
      Node's localName.
    • getNodeValue

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

      public void setNodeValue(String nodeValue)
      Node's nodeValue.
    • getChildNodeCount

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

      public void setChildNodeCount(Integer childNodeCount)
      Child count for Container nodes.
    • getChildren

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

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

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

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

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

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

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

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

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

      public void setPublicId(String publicId)
      DocumentType's publicId.
    • getSystemId

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

      public void setSystemId(String systemId)
      DocumentType's systemId.
    • getInternalSubset

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

      public void setInternalSubset(String internalSubset)
      DocumentType's internalSubset.
    • getXmlVersion

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

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

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

      public void setName(String name)
      Attr's name.
    • getValue

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

      public void setValue(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.
    • getPseudoIdentifier

      public String getPseudoIdentifier()
      Pseudo element identifier for this node. Only present if there is a valid pseudoType.
    • setPseudoIdentifier

      public void setPseudoIdentifier(String pseudoIdentifier)
      Pseudo element identifier for this node. Only present if there is a valid pseudoType.
    • getShadowRootType

      public ShadowRootType getShadowRootType()
      Shadow root type.
    • setShadowRootType

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

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

      public void setFrameId(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 List<Node> getShadowRoots()
      Shadow root list for given element host.
    • setShadowRoots

      public void setShadowRoots(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 List<Node> getPseudoElements()
      Pseudo elements associated with this node.
    • setPseudoElements

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

      @Deprecated public Node getImportedDocument()
      Deprecated.
      Deprecated, as the HTML Imports API has been removed (crbug.com/937746). This property used to return the imported document for the HTMLImport links. The property is always undefined now.
    • setImportedDocument

      @Deprecated public void setImportedDocument(Node importedDocument)
      Deprecated.
      Deprecated, as the HTML Imports API has been removed (crbug.com/937746). This property used to return the imported document for the HTMLImport links. The property is always undefined now.
    • getDistributedNodes

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

      public void setDistributedNodes(List<BackendNode> distributedNodes)
      Distributed nodes for given insertion point.
    • isIsSVG

      public Boolean isIsSVG()
      Whether the node is SVG.
    • setIsSVG

      public void setIsSVG(Boolean isSVG)
      Whether the node is SVG.
    • getCompatibilityMode

      public CompatibilityMode getCompatibilityMode()
    • setCompatibilityMode

      public void setCompatibilityMode(CompatibilityMode compatibilityMode)
    • getAssignedSlot

      public BackendNode getAssignedSlot()
    • setAssignedSlot

      public void setAssignedSlot(BackendNode assignedSlot)
    • toString

      public String toString()
      Overrides:
      toString in class Object