Package Torello.Browser
Class DOM.Node
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.DOM.Node
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DOM
public static class DOM.Node extends BaseType implements java.io.Serializable
DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/DOM.java
- Open New Browser-Tab: Torello/Browser/DOM.java
File Size: 20,151 Bytes Line Count: 475 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field String[]
attributes
Attributes of theElement
node in the form of flat array[name1, value1, name2, value2]
.int
backendNodeId
The BackendNodeId for this node.String
baseURL
Base URL thatDocument
orFrameOwner
node uses for URL completion.Integer
childNodeCount
Child count forContainer
nodes.DOM.Node[]
children
Child nodes of this node when requested with children.String
compatibilityMode
[No Description Provided by Google]
OPTIONALDOM.Node
contentDocument
Content document for frame owner elements.DOM.BackendNode[]
distributedNodes
Distributed nodes for given insertion point.String
documentURL
Document URL thatDocument
orFrameOwner
node points to.String
frameId
Frame ID for frame owner elements.DOM.Node
importedDocument
Deprecated, as the HTML Imports API has been removed (crbug.com/937746).String
internalSubset
DocumentType
's internalSubset.Boolean
isSVG
Whether the node is SVG.String
localName
Node
's localName.String
name
Attr
's name.int
nodeId
Node identifier that is passed into the rest of the DOM messages as thenodeId
.String
nodeName
Node
's nodeName.int
nodeType
Node
's nodeType.String
nodeValue
Node
's nodeValue.Integer
parentId
The id of the parent node if any.DOM.Node[]
pseudoElements
Pseudo elements associated with this node.String
pseudoType
Pseudo element type for this node.String
publicId
DocumentType
's publicId.DOM.Node[]
shadowRoots
Shadow root list for given element host.String
shadowRootType
Shadow root type.String
systemId
DocumentType
's systemId.DOM.Node
templateContent
Content document fragment for template elements.String
value
Attr
's value.String
xmlVersion
Document
's XML version in case of XML documents.
-
Constructor Summary
Constructors Constructor Description Node(int nodeId, Integer parentId, int backendNodeId, int nodeType, String nodeName, String localName, String nodeValue, Integer childNodeCount, DOM.Node[] children, String[] attributes, String documentURL, String baseURL, String publicId, String systemId, String internalSubset, String xmlVersion, String name, String value, String pseudoType, String shadowRootType, String frameId, DOM.Node contentDocument, DOM.Node[] shadowRoots, DOM.Node templateContent, DOM.Node[] pseudoElements, DOM.Node importedDocument, DOM.BackendNode[] distributedNodes, Boolean isSVG, String compatibilityMode)
ConstructorNode(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
nodeId
public final int nodeId
Node identifier that is passed into the rest of the DOM messages as thenodeId
. Backend will only push node with givenid
once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.
-
parentId
public final java.lang.Integer parentId
The id of the parent node if any.
OPTIONAL
-
backendNodeId
public final int backendNodeId
The BackendNodeId for this node.
-
nodeType
public final int nodeType
Node
's nodeType.
-
nodeName
public final java.lang.String nodeName
Node
's nodeName.
-
localName
public final java.lang.String localName
Node
's localName.
-
nodeValue
public final java.lang.String nodeValue
Node
's nodeValue.
-
childNodeCount
public final java.lang.Integer childNodeCount
Child count forContainer
nodes.
OPTIONAL
-
children
-
attributes
public final java.lang.String[] attributes
Attributes of theElement
node in the form of flat array[name1, value1, name2, value2]
.
OPTIONAL
-
documentURL
public final java.lang.String documentURL
Document URL thatDocument
orFrameOwner
node points to.
OPTIONAL
-
baseURL
public final java.lang.String baseURL
Base URL thatDocument
orFrameOwner
node uses for URL completion.
OPTIONAL
-
publicId
public final java.lang.String publicId
DocumentType
's publicId.
OPTIONAL
-
systemId
public final java.lang.String systemId
DocumentType
's systemId.
OPTIONAL
-
internalSubset
public final java.lang.String internalSubset
DocumentType
's internalSubset.
OPTIONAL
-
xmlVersion
public final java.lang.String xmlVersion
Document
's XML version in case of XML documents.
OPTIONAL
-
name
public final java.lang.String name
Attr
's name.
OPTIONAL
-
value
public final java.lang.String value
Attr
's value.
OPTIONAL
-
pseudoType
public final java.lang.String pseudoType
Pseudo element type for this node.
OPTIONAL
-
shadowRootType
public final java.lang.String shadowRootType
Shadow root type.
OPTIONAL
-
frameId
public final java.lang.String frameId
Frame ID for frame owner elements.
OPTIONAL
-
contentDocument
public final DOM.Node contentDocument
Content document for frame owner elements.
OPTIONAL
-
shadowRoots
public final DOM.Node[] shadowRoots
Shadow root list for given element host.
OPTIONAL
-
templateContent
public final DOM.Node templateContent
Content document fragment for template elements.
OPTIONAL
-
pseudoElements
public final DOM.Node[] pseudoElements
Pseudo elements associated with this node.
OPTIONAL
-
importedDocument
public final DOM.Node importedDocument
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.
OPTIONAL
DEPRECATED
-
distributedNodes
public final DOM.BackendNode[] distributedNodes
Distributed nodes for given insertion point.
OPTIONAL
-
isSVG
public final java.lang.Boolean isSVG
Whether the node is SVG.
OPTIONAL
-
compatibilityMode
public final java.lang.String compatibilityMode
[No Description Provided by Google]
OPTIONAL
-
-
Constructor Detail
-
Node
public Node(int nodeId, java.lang.Integer parentId, int backendNodeId, int nodeType, java.lang.String nodeName, java.lang.String localName, java.lang.String nodeValue, java.lang.Integer childNodeCount, DOM.Node[] children, java.lang.String[] attributes, java.lang.String documentURL, java.lang.String baseURL, java.lang.String publicId, java.lang.String systemId, java.lang.String internalSubset, java.lang.String xmlVersion, java.lang.String name, java.lang.String value, java.lang.String pseudoType, java.lang.String shadowRootType, java.lang.String frameId, DOM.Node contentDocument, DOM.Node[] shadowRoots, DOM.Node templateContent, DOM.Node[] pseudoElements, DOM.Node importedDocument, DOM.BackendNode[] distributedNodes, java.lang.Boolean isSVG, java.lang.String compatibilityMode)
Constructor- Parameters:
nodeId
- Node identifier that is passed into the rest of the DOM messages as thenodeId
. Backend will only push node with givenid
once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.parentId
- The id of the parent node if any.
OPTIONALbackendNodeId
- The BackendNodeId for this node.nodeType
-Node
's nodeType.nodeName
-Node
's nodeName.localName
-Node
's localName.nodeValue
-Node
's nodeValue.childNodeCount
- Child count forContainer
nodes.
OPTIONALchildren
- Child nodes of this node when requested with children.
OPTIONALattributes
- Attributes of theElement
node in the form of flat array[name1, value1, name2, value2]
.
OPTIONALdocumentURL
- Document URL thatDocument
orFrameOwner
node points to.
OPTIONALbaseURL
- Base URL thatDocument
orFrameOwner
node uses for URL completion.
OPTIONALpublicId
-DocumentType
's publicId.
OPTIONALsystemId
-DocumentType
's systemId.
OPTIONALinternalSubset
-DocumentType
's internalSubset.
OPTIONALxmlVersion
-Document
's XML version in case of XML documents.
OPTIONALname
-Attr
's name.
OPTIONALvalue
-Attr
's value.
OPTIONALpseudoType
- Pseudo element type for this node.
OPTIONALshadowRootType
- Shadow root type.
OPTIONALframeId
- Frame ID for frame owner elements.
OPTIONALcontentDocument
- Content document for frame owner elements.
OPTIONALshadowRoots
- Shadow root list for given element host.
OPTIONALtemplateContent
- Content document fragment for template elements.
OPTIONALpseudoElements
- Pseudo elements associated with this node.
OPTIONALimportedDocument
- 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.
OPTIONAL
DEPRECATEDdistributedNodes
- Distributed nodes for given insertion point.
OPTIONALisSVG
- Whether the node is SVG.
OPTIONALcompatibilityMode
- -
OPTIONAL
-
Node
public Node(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'Node'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...- Specified by:
optionals
in classBaseType
- Returns:
- A
boolean[]
array whose length is precisely equal to the number of fields in the Java Object. - Code:
- Exact Method Body:
return new boolean[] { false, true, false, false, false, false, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, };
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; Node o = (Node) other; return Objects.equals(this.nodeId, o.nodeId) && Objects.equals(this.parentId, o.parentId) && Objects.equals(this.backendNodeId, o.backendNodeId) && (this.nodeType == o.nodeType) && Objects.equals(this.nodeName, o.nodeName) && Objects.equals(this.localName, o.localName) && Objects.equals(this.nodeValue, o.nodeValue) && Objects.equals(this.childNodeCount, o.childNodeCount) && Arrays.deepEquals(this.children, o.children) && Arrays.deepEquals(this.attributes, o.attributes) && Objects.equals(this.documentURL, o.documentURL) && Objects.equals(this.baseURL, o.baseURL) && Objects.equals(this.publicId, o.publicId) && Objects.equals(this.systemId, o.systemId) && Objects.equals(this.internalSubset, o.internalSubset) && Objects.equals(this.xmlVersion, o.xmlVersion) && Objects.equals(this.name, o.name) && Objects.equals(this.value, o.value) && Objects.equals(this.pseudoType, o.pseudoType) && Objects.equals(this.shadowRootType, o.shadowRootType) && Objects.equals(this.frameId, o.frameId) && Objects.equals(this.contentDocument, o.contentDocument) && Arrays.deepEquals(this.shadowRoots, o.shadowRoots) && Objects.equals(this.templateContent, o.templateContent) && Arrays.deepEquals(this.pseudoElements, o.pseudoElements) && Objects.equals(this.importedDocument, o.importedDocument) && Arrays.deepEquals(this.distributedNodes, o.distributedNodes) && Objects.equals(this.isSVG, o.isSVG) && Objects.equals(this.compatibilityMode, o.compatibilityMode);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return this.nodeId + Objects.hashCode(this.parentId) + this.backendNodeId + this.nodeType + Objects.hashCode(this.nodeName) + Objects.hashCode(this.localName) + Objects.hashCode(this.nodeValue) + Objects.hashCode(this.childNodeCount) + Arrays.deepHashCode(this.children) + Arrays.deepHashCode(this.attributes) + Objects.hashCode(this.documentURL) + Objects.hashCode(this.baseURL) + Objects.hashCode(this.publicId) + Objects.hashCode(this.systemId) + Objects.hashCode(this.internalSubset) + Objects.hashCode(this.xmlVersion) + Objects.hashCode(this.name) + Objects.hashCode(this.value) + Objects.hashCode(this.pseudoType) + Objects.hashCode(this.shadowRootType) + Objects.hashCode(this.frameId) + this.contentDocument.hashCode() + Arrays.deepHashCode(this.shadowRoots) + this.templateContent.hashCode() + Arrays.deepHashCode(this.pseudoElements) + this.importedDocument.hashCode() + Arrays.deepHashCode(this.distributedNodes) + Objects.hashCode(this.isSVG) + Objects.hashCode(this.compatibilityMode);
-
-