Class DOMSnapshot.NodeTreeSnapshot

    • 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.
        OPTIONAL
        nodeType - Node's nodeType.
        OPTIONAL
        shadowRootType - Type of the shadow root the Node is in. String values are equal to the ShadowRootType enum.
        OPTIONAL
        nodeName - Node's nodeName.
        OPTIONAL
        nodeValue - Node's nodeValue.
        OPTIONAL
        backendNodeId - Node's id, corresponds to DOM.Node.backendNodeId.
        OPTIONAL
        attributes - Attributes of an Element node. Flatten name, value pairs.
        OPTIONAL
        textValue - Only set for textarea elements, contains the text value.
        OPTIONAL
        inputValue - Only set for input elements, contains the input's associated text value.
        OPTIONAL
        inputChecked - Only set for radio and checkbox input elements, indicates if the element has been checked
        OPTIONAL
        optionSelected - Only set for option elements, indicates if the element has been selected
        OPTIONAL
        contentDocumentIndex - The index of the document in the list of the snapshot documents.
        OPTIONAL
        pseudoType - Type of a pseudo element node.
        OPTIONAL
        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 - The selected url for nodes with a srcset attribute.
        OPTIONAL
        originURL - The url of the script (if any) that generates this node.
        OPTIONAL
    • 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 a JsonObject 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 position TRUE.

        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 class BaseType
        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[] { 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 class java.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 class java.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();