Class DOMSnapshot.DocumentSnapshot

    • Constructor Detail

      • DocumentSnapshot

        🡅  🡇    
        public DocumentSnapshot​(int documentURL,
                                int title,
                                int baseURL,
                                int contentLanguage,
                                int encodingName,
                                int publicId,
                                int systemId,
                                int frameId,
                                DOMSnapshot.NodeTreeSnapshot nodes,
                                DOMSnapshot.LayoutTreeSnapshot layout,
                                DOMSnapshot.TextBoxSnapshot textBoxes,
                                java.lang.Number scrollOffsetX,
                                java.lang.Number scrollOffsetY,
                                java.lang.Number contentWidth,
                                java.lang.Number contentHeight)
        documentURL - Document URL that Document or FrameOwner node points to.
        title - Document title.
        baseURL - Base URL that Document or FrameOwner node uses for URL completion.
        contentLanguage - Contains the document's content language.
        encodingName - Contains the document's character set encoding.
        publicId - DocumentType node's publicId.
        systemId - DocumentType node's systemId.
        frameId - Frame ID for frame owner elements and also for the document node.
        nodes - A table with dom nodes.
        layout - The nodes in the layout tree.
        textBoxes - The post-layout inline text nodes.
        scrollOffsetX - Horizontal scroll offset.
        scrollOffsetY - Vertical scroll offset.
        contentWidth - Document content width.
        contentHeight - Document content height.
    • 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
        A boolean[] array whose length is precisely equal to the number of fields in the Java Object.