Package Torello.Browser
Class DOMSnapshot.NodeTreeSnapshot
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.DOMSnapshot.NodeTreeSnapshot
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DOMSnapshot
public static class DOMSnapshot.NodeTreeSnapshot extends BaseType implements java.io.Serializable
Table containing nodes.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/DOMSnapshot.java
- Open New Browser-Tab: Torello/Browser/DOMSnapshot.java
File Size: 13,031 Bytes Line Count: 300 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field int[][]
attributes
Attributes of anElement
node.int[]
backendNodeId
Node
's id, corresponds to DOM.Node.backendNodeId.DOMSnapshot.RareIntegerData
contentDocumentIndex
The index of the document in the list of the snapshot documents.DOMSnapshot.RareStringData
currentSourceURL
The selected url for nodes with a srcset attribute.DOMSnapshot.RareBooleanData
inputChecked
Only set for radio and checkbox input elements, indicates if the element has been checked
OPTIONALDOMSnapshot.RareStringData
inputValue
Only set for input elements, contains the input's associated text value.DOMSnapshot.RareBooleanData
isClickable
Whether this DOM node responds to mouse clicks.int[]
nodeName
Node
's nodeName.int[]
nodeType
Node
's nodeType.int[]
nodeValue
Node
's nodeValue.DOMSnapshot.RareBooleanData
optionSelected
Only set for option elements, indicates if the element has been selected
OPTIONALDOMSnapshot.RareStringData
originURL
The url of the script (if any) that generates this node.int[]
parentIndex
Parent node index.DOMSnapshot.RareStringData
pseudoType
Type of a pseudo element node.DOMSnapshot.RareStringData
shadowRootType
Type of the shadow root theNode
is in.DOMSnapshot.RareStringData
textValue
Only set for textarea elements, contains the text value.
-
Constructor Summary
Constructors Constructor Description NodeTreeSnapshot(int[] parentIndex, int[] nodeType, DOMSnapshot.RareStringData shadowRootType, int[] nodeName, int[] nodeValue, int[] backendNodeId, int[][] attributes, DOMSnapshot.RareStringData textValue, DOMSnapshot.RareStringData inputValue, DOMSnapshot.RareBooleanData inputChecked, DOMSnapshot.RareBooleanData optionSelected, DOMSnapshot.RareIntegerData contentDocumentIndex, DOMSnapshot.RareStringData pseudoType, DOMSnapshot.RareBooleanData isClickable, DOMSnapshot.RareStringData currentSourceURL, DOMSnapshot.RareStringData originURL)
ConstructorNodeTreeSnapshot(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
-
parentIndex
public final int[] parentIndex
Parent node index.
OPTIONAL
-
nodeType
public final int[] nodeType
Node
's nodeType.
OPTIONAL
-
shadowRootType
public final DOMSnapshot.RareStringData shadowRootType
Type of the shadow root theNode
is in. String values are equal to theShadowRootType
enum.
OPTIONAL
-
nodeName
public final int[] nodeName
Node
's nodeName.
OPTIONAL
-
nodeValue
public final int[] nodeValue
Node
's nodeValue.
OPTIONAL
-
backendNodeId
public final int[] backendNodeId
Node
's id, corresponds to DOM.Node.backendNodeId.
OPTIONAL
-
attributes
public final int[][] attributes
Attributes of anElement
node. Flatten name, value pairs.
OPTIONAL
-
textValue
public final DOMSnapshot.RareStringData textValue
Only set for textarea elements, contains the text value.
OPTIONAL
-
inputValue
public final DOMSnapshot.RareStringData inputValue
Only set for input elements, contains the input's associated text value.
OPTIONAL
-
inputChecked
public final DOMSnapshot.RareBooleanData inputChecked
Only set for radio and checkbox input elements, indicates if the element has been checked
OPTIONAL
-
optionSelected
public final DOMSnapshot.RareBooleanData optionSelected
Only set for option elements, indicates if the element has been selected
OPTIONAL
-
contentDocumentIndex
public final DOMSnapshot.RareIntegerData contentDocumentIndex
The index of the document in the list of the snapshot documents.
OPTIONAL
-
pseudoType
public final DOMSnapshot.RareStringData pseudoType
Type of a pseudo element node.
OPTIONAL
-
isClickable
public final DOMSnapshot.RareBooleanData isClickable
Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.
OPTIONAL
-
currentSourceURL
public final DOMSnapshot.RareStringData currentSourceURL
The selected url for nodes with a srcset attribute.
OPTIONAL
-
originURL
public final DOMSnapshot.RareStringData originURL
The url of the script (if any) that generates this node.
OPTIONAL
-
-
Constructor Detail
-
NodeTreeSnapshot
public NodeTreeSnapshot(int[] parentIndex, int[] nodeType, DOMSnapshot.RareStringData shadowRootType, int[] nodeName, int[] nodeValue, int[] backendNodeId, int[][] attributes, DOMSnapshot.RareStringData textValue, DOMSnapshot.RareStringData inputValue, DOMSnapshot.RareBooleanData inputChecked, DOMSnapshot.RareBooleanData optionSelected, DOMSnapshot.RareIntegerData contentDocumentIndex, DOMSnapshot.RareStringData pseudoType, DOMSnapshot.RareBooleanData isClickable, DOMSnapshot.RareStringData currentSourceURL, DOMSnapshot.RareStringData originURL)
Constructor- Parameters:
parentIndex
- Parent node index.
OPTIONALnodeType
-Node
's nodeType.
OPTIONALshadowRootType
- Type of the shadow root theNode
is in. String values are equal to theShadowRootType
enum.
OPTIONALnodeName
-Node
's nodeName.
OPTIONALnodeValue
-Node
's nodeValue.
OPTIONALbackendNodeId
-Node
's id, corresponds to DOM.Node.backendNodeId.
OPTIONALattributes
- Attributes of anElement
node. Flatten name, value pairs.
OPTIONALtextValue
- Only set for textarea elements, contains the text value.
OPTIONALinputValue
- Only set for input elements, contains the input's associated text value.
OPTIONALinputChecked
- Only set for radio and checkbox input elements, indicates if the element has been checked
OPTIONALoptionSelected
- Only set for option elements, indicates if the element has been selected
OPTIONALcontentDocumentIndex
- The index of the document in the list of the snapshot documents.
OPTIONALpseudoType
- Type of a pseudo element node.
OPTIONALisClickable
- Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.
OPTIONALcurrentSourceURL
- The selected url for nodes with a srcset attribute.
OPTIONALoriginURL
- The url of the script (if any) that generates this node.
OPTIONAL
-
NodeTreeSnapshot
public NodeTreeSnapshot(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'NodeTreeSnapshot'
.
-
-
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...
-
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; NodeTreeSnapshot o = (NodeTreeSnapshot) other; return Arrays.equals(this.parentIndex, o.parentIndex) && Arrays.equals(this.nodeType, o.nodeType) && Objects.equals(this.shadowRootType, o.shadowRootType) && Arrays.equals(this.nodeName, o.nodeName) && Arrays.equals(this.nodeValue, o.nodeValue) && Arrays.equals(this.backendNodeId, o.backendNodeId) && Arrays.equals(this.attributes, o.attributes) && Objects.equals(this.textValue, o.textValue) && Objects.equals(this.inputValue, o.inputValue) && Objects.equals(this.inputChecked, o.inputChecked) && Objects.equals(this.optionSelected, o.optionSelected) && Objects.equals(this.contentDocumentIndex, o.contentDocumentIndex) && Objects.equals(this.pseudoType, o.pseudoType) && Objects.equals(this.isClickable, o.isClickable) && Objects.equals(this.currentSourceURL, o.currentSourceURL) && Objects.equals(this.originURL, o.originURL);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Arrays.hashCode(this.parentIndex) + Arrays.hashCode(this.nodeType) + this.shadowRootType.hashCode() + Arrays.hashCode(this.nodeName) + Arrays.hashCode(this.nodeValue) + Arrays.hashCode(this.backendNodeId) + Arrays.hashCode(this.attributes) + this.textValue.hashCode() + this.inputValue.hashCode() + this.inputChecked.hashCode() + this.optionSelected.hashCode() + this.contentDocumentIndex.hashCode() + this.pseudoType.hashCode() + this.isClickable.hashCode() + this.currentSourceURL.hashCode() + this.originURL.hashCode();
-
-