Package Torello.Browser.BrowserAPI
Class DOMSnapshot.NodeTreeSnapshot
- java.lang.Object
-
- Torello.Browser.BaseType<DOMSnapshot.NodeTreeSnapshot>
-
- Torello.Browser.BrowserAPI.DOMSnapshot.NodeTreeSnapshot
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- DOMSnapshot
public static class DOMSnapshot.NodeTreeSnapshot extends BaseType<DOMSnapshot.NodeTreeSnapshot> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in theDOMSnapshotdomain, which may be found within theBrowserAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.Table containing nodes.- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/BrowserAPI/DOMSnapshot.java
- Open New Browser-Tab: Torello/Browser/BrowserAPI/DOMSnapshot.java
File Size: 6,513 Bytes Line Count: 167 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: DOMSnapshot$$NodeTreeSnapshot$$.java
- Open New Browser-Tab: DOMSnapshot$$NodeTreeSnapshot$$.java
File Size: 21,351 Bytes Line Count: 501 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description int[][]attributesAttributes of anElementnode.int[]backendNodeIdNode's id, corresponds to DOM.Node.backendNodeId.DOMSnapshot.RareIntegerDatacontentDocumentIndexThe index of the document in the list of the snapshot documents.DOMSnapshot.RareStringDatacurrentSourceURLThe selected url for nodes with a srcset attribute.DOMSnapshot.RareBooleanDatainputCheckedOnly set for radio and checkbox input elements, indicates if the element has been checkedDOMSnapshot.RareStringDatainputValueOnly set for input elements, contains the input's associated text value.DOMSnapshot.RareBooleanDataisClickableWhether this DOM node responds to mouse clicks.int[]nodeNameNode's nodeName.int[]nodeTypeNode's nodeType.int[]nodeValueNode's nodeValue.DOMSnapshot.RareBooleanDataoptionSelectedOnly set for option elements, indicates if the element has been selectedDOMSnapshot.RareStringDataoriginURLThe url of the script (if any) that generates this node.int[]parentIndexParent node index.DOMSnapshot.RareStringDatapseudoIdentifierPseudo element identifier for this node.DOMSnapshot.RareStringDatapseudoTypeType of a pseudo element node.DOMSnapshot.RareStringDatashadowRootTypeType of the shadow root theNodeis in.DOMSnapshot.RareStringDatatextValueOnly set for textarea elements, contains the text value.
-
Constructor Summary
Constructors Constructor Description NodeTreeSnapshot(ReadOnlyList<Boolean> isPresent, 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.RareStringData pseudoIdentifier, DOMSnapshot.RareBooleanData isClickable, DOMSnapshot.RareStringData currentSourceURL, DOMSnapshot.RareStringData originURL)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static DOMSnapshot.NodeTreeSnapshotfromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<DOMSnapshot.NodeTreeSnapshot>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- 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 theNodeis in. String values are equal to theShadowRootTypeenum.
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 anElementnode. 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
-
pseudoIdentifier
public final DOMSnapshot.RareStringData pseudoIdentifier
Pseudo element identifier for this node. Only present if there is a valid pseudoType.
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(ReadOnlyList<java.lang.Boolean> isPresent, 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.RareStringData pseudoIdentifier, DOMSnapshot.RareBooleanData isClickable, DOMSnapshot.RareStringData currentSourceURL, DOMSnapshot.RareStringData originURL)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static DOMSnapshot.NodeTreeSnapshot fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<DOMSnapshot.NodeTreeSnapshot> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-