Package io.webfolder.cdp.type.dom
Class Node
java.lang.Object
io.webfolder.cdp.type.dom.Node
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 -
Method Summary
Modifier and TypeMethodDescriptionAttributes of the Element node in the form of flat array [name1, value1, name2, value2].The BackendNodeId for this node.Base URL that Document or FrameOwner node uses for URL completion.Child count for Container nodes.Child nodes of this node when requested with children.Content document for frame owner elements.Distributed nodes for given insertion point.Document URL that Document or FrameOwner node points to.Frame ID for frame owner elements.Deprecated.DocumentType's internalSubset.Node's localName.getName()
Attr's name.Node identifier that is passed into the rest of the DOM messages as the nodeId.Node's nodeName.Node's nodeType.Node's nodeValue.The id of the parent node if any.Pseudo elements associated with this node.Pseudo element identifier for this node.Pseudo element type for this node.DocumentType's publicId.Shadow root list for given element host.Shadow root type.DocumentType's systemId.Content document fragment for template elements.getValue()
Attr's value.Document's XML version in case of XML documents.isIsSVG()
Whether the node is SVG.void
setAssignedSlot
(BackendNode assignedSlot) void
setAttributes
(List<String> attributes) Attributes of the Element node in the form of flat array [name1, value1, name2, value2].void
setBackendNodeId
(Integer backendNodeId) The BackendNodeId for this node.void
setBaseURL
(String baseURL) Base URL that Document or FrameOwner node uses for URL completion.void
setChildNodeCount
(Integer childNodeCount) Child count for Container nodes.void
setChildren
(List<Node> children) Child nodes of this node when requested with children.void
setCompatibilityMode
(CompatibilityMode compatibilityMode) void
setContentDocument
(Node contentDocument) Content document for frame owner elements.void
setDistributedNodes
(List<BackendNode> distributedNodes) Distributed nodes for given insertion point.void
setDocumentURL
(String documentURL) Document URL that Document or FrameOwner node points to.void
setFrameId
(String frameId) Frame ID for frame owner elements.void
setImportedDocument
(Node importedDocument) Deprecated.void
setInternalSubset
(String internalSubset) DocumentType's internalSubset.void
Whether the node is SVG.void
setLocalName
(String localName) Node's localName.void
Attr's name.void
Node identifier that is passed into the rest of the DOM messages as the nodeId.void
setNodeName
(String nodeName) Node's nodeName.void
setNodeType
(Integer nodeType) Node's nodeType.void
setNodeValue
(String nodeValue) Node's nodeValue.void
setParentId
(Integer parentId) The id of the parent node if any.void
setPseudoElements
(List<Node> pseudoElements) Pseudo elements associated with this node.void
setPseudoIdentifier
(String pseudoIdentifier) Pseudo element identifier for this node.void
setPseudoType
(PseudoType pseudoType) Pseudo element type for this node.void
setPublicId
(String publicId) DocumentType's publicId.void
setShadowRoots
(List<Node> shadowRoots) Shadow root list for given element host.void
setShadowRootType
(ShadowRootType shadowRootType) Shadow root type.void
setSystemId
(String systemId) DocumentType's systemId.void
setTemplateContent
(Node templateContent) Content document fragment for template elements.void
Attr's value.void
setXmlVersion
(String xmlVersion) Document's XML version in case of XML documents.toString()
-
Constructor Details
-
Node
public Node()
-
-
Method Details
-
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
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
The id of the parent node if any. -
setParentId
The id of the parent node if any. -
getBackendNodeId
The BackendNodeId for this node. -
setBackendNodeId
The BackendNodeId for this node. -
getNodeType
Node's nodeType. -
setNodeType
Node's nodeType. -
getNodeName
Node's nodeName. -
setNodeName
Node's nodeName. -
getLocalName
Node's localName. -
setLocalName
Node's localName. -
getNodeValue
Node's nodeValue. -
setNodeValue
Node's nodeValue. -
getChildNodeCount
Child count for Container nodes. -
setChildNodeCount
Child count for Container nodes. -
getChildren
Child nodes of this node when requested with children. -
setChildren
Child nodes of this node when requested with children. -
getAttributes
Attributes of the Element node in the form of flat array [name1, value1, name2, value2]. -
setAttributes
Attributes of the Element node in the form of flat array [name1, value1, name2, value2]. -
getDocumentURL
Document URL that Document or FrameOwner node points to. -
setDocumentURL
Document URL that Document or FrameOwner node points to. -
getBaseURL
Base URL that Document or FrameOwner node uses for URL completion. -
setBaseURL
Base URL that Document or FrameOwner node uses for URL completion. -
getPublicId
DocumentType's publicId. -
setPublicId
DocumentType's publicId. -
getSystemId
DocumentType's systemId. -
setSystemId
DocumentType's systemId. -
getInternalSubset
DocumentType's internalSubset. -
setInternalSubset
DocumentType's internalSubset. -
getXmlVersion
Document's XML version in case of XML documents. -
setXmlVersion
Document's XML version in case of XML documents. -
getName
Attr's name. -
setName
Attr's name. -
getValue
Attr's value. -
setValue
Attr's value. -
getPseudoType
Pseudo element type for this node. -
setPseudoType
Pseudo element type for this node. -
getPseudoIdentifier
Pseudo element identifier for this node. Only present if there is a valid pseudoType. -
setPseudoIdentifier
Pseudo element identifier for this node. Only present if there is a valid pseudoType. -
getShadowRootType
Shadow root type. -
setShadowRootType
Shadow root type. -
getFrameId
Frame ID for frame owner elements. -
setFrameId
Frame ID for frame owner elements. -
getContentDocument
Content document for frame owner elements. -
setContentDocument
Content document for frame owner elements. -
getShadowRoots
Shadow root list for given element host. -
setShadowRoots
Shadow root list for given element host. -
getTemplateContent
Content document fragment for template elements. -
setTemplateContent
Content document fragment for template elements. -
getPseudoElements
Pseudo elements associated with this node. -
setPseudoElements
Pseudo elements associated with this 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.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
Distributed nodes for given insertion point. -
setDistributedNodes
Distributed nodes for given insertion point. -
isIsSVG
Whether the node is SVG. -
setIsSVG
Whether the node is SVG. -
getCompatibilityMode
-
setCompatibilityMode
-
getAssignedSlot
-
setAssignedSlot
-
toString
-