Class 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


    • 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)
      Constructor
      Node​(JsonObject jo)
      JSON Object Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object other)
      Checks whether 'this' equals an input Java-Object
      int hashCode()
      Generates a Hash-Code for 'this' instance
      boolean[] optionals()
      Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 the nodeId. Backend will only push node with given id 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.
        OPTIONAL
        backendNodeId - The BackendNodeId for this node.
        nodeType - Node's nodeType.
        nodeName - Node's nodeName.
        localName - Node's localName.
        nodeValue - Node's nodeValue.
        childNodeCount - Child count for Container nodes.
        OPTIONAL
        children - Child nodes of this node when requested with children.
        OPTIONAL
        attributes - Attributes of the Element node in the form of flat array [name1, value1, name2, value2].
        OPTIONAL
        documentURL - Document URL that Document or FrameOwner node points to.
        OPTIONAL
        baseURL - Base URL that Document or FrameOwner node uses for URL completion.
        OPTIONAL
        publicId - DocumentType's publicId.
        OPTIONAL
        systemId - DocumentType's systemId.
        OPTIONAL
        internalSubset - DocumentType's internalSubset.
        OPTIONAL
        xmlVersion - Document's XML version in case of XML documents.
        OPTIONAL
        name - Attr's name.
        OPTIONAL
        value - Attr's value.
        OPTIONAL
        pseudoType - Pseudo element type for this node.
        OPTIONAL
        shadowRootType - Shadow root type.
        OPTIONAL
        frameId - Frame ID for frame owner elements.
        OPTIONAL
        contentDocument - Content document for frame owner elements.
        OPTIONAL
        shadowRoots - Shadow root list for given element host.
        OPTIONAL
        templateContent - Content document fragment for template elements.
        OPTIONAL
        pseudoElements - Pseudo elements associated with this node.
        OPTIONAL
        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 - Distributed nodes for given insertion point.
        OPTIONAL
        isSVG - Whether the node is SVG.
        OPTIONAL
        compatibilityMode - -
        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.
      • equals

        🡅  🡇     🗕  🗗  🗖
        public boolean equals​(java.lang.Object other)
        Checks whether 'this' equals an input Java-Object
        Overrides:
        equals in class java.lang.Object
      • hashCode

        🡅     🗕  🗗  🗖
        public int hashCode()
        Generates a Hash-Code for 'this' instance
        Overrides:
        hashCode in class java.lang.Object