All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.chrome.devtools.client.core.dom.Node Maven / Gradle / Ivy

There is a newer version: 94.0.4606.61
Show newest version
package com.hubspot.chrome.devtools.client.core.dom;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.page.FrameId;
import java.util.List;

/**
 * DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.
 * DOMNode is a base node mirror type.
 */
public final class Node {
  private NodeId nodeId;

  private NodeId parentId;

  private BackendNodeId backendNodeId;

  private Integer nodeType;

  private String nodeName;

  private String localName;

  private String nodeValue;

  private Integer childNodeCount;

  private List children;

  private List attributes;

  private String documentURL;

  private String baseURL;

  private String publicId;

  private String systemId;

  private String internalSubset;

  private String xmlVersion;

  private String name;

  private String value;

  private PseudoType pseudoType;

  private ShadowRootType shadowRootType;

  private FrameId frameId;

  private Node contentDocument;

  private List shadowRoots;

  private Node templateContent;

  private List pseudoElements;

  private Node importedDocument;

  private List distributedNodes;

  private Boolean isSVG;

  @JsonCreator
  public Node(@JsonProperty("nodeId") NodeId nodeId, @JsonProperty("parentId") NodeId parentId,
      @JsonProperty("backendNodeId") BackendNodeId backendNodeId,
      @JsonProperty("nodeType") Integer nodeType, @JsonProperty("nodeName") String nodeName,
      @JsonProperty("localName") String localName, @JsonProperty("nodeValue") String nodeValue,
      @JsonProperty("childNodeCount") Integer childNodeCount,
      @JsonProperty("children") List children,
      @JsonProperty("attributes") List attributes,
      @JsonProperty("documentURL") String documentURL, @JsonProperty("baseURL") String baseURL,
      @JsonProperty("publicId") String publicId, @JsonProperty("systemId") String systemId,
      @JsonProperty("internalSubset") String internalSubset,
      @JsonProperty("xmlVersion") String xmlVersion, @JsonProperty("name") String name,
      @JsonProperty("value") String value, @JsonProperty("pseudoType") PseudoType pseudoType,
      @JsonProperty("shadowRootType") ShadowRootType shadowRootType,
      @JsonProperty("frameId") FrameId frameId,
      @JsonProperty("contentDocument") Node contentDocument,
      @JsonProperty("shadowRoots") List shadowRoots,
      @JsonProperty("templateContent") Node templateContent,
      @JsonProperty("pseudoElements") List pseudoElements,
      @JsonProperty("importedDocument") Node importedDocument,
      @JsonProperty("distributedNodes") List distributedNodes,
      @JsonProperty("isSVG") Boolean isSVG) {
    this.nodeId = nodeId;
    this.parentId = parentId;
    this.backendNodeId = backendNodeId;
    this.nodeType = nodeType;
    this.nodeName = nodeName;
    this.localName = localName;
    this.nodeValue = nodeValue;
    this.childNodeCount = childNodeCount;
    this.children = children;
    this.attributes = attributes;
    this.documentURL = documentURL;
    this.baseURL = baseURL;
    this.publicId = publicId;
    this.systemId = systemId;
    this.internalSubset = internalSubset;
    this.xmlVersion = xmlVersion;
    this.name = name;
    this.value = value;
    this.pseudoType = pseudoType;
    this.shadowRootType = shadowRootType;
    this.frameId = frameId;
    this.contentDocument = contentDocument;
    this.shadowRoots = shadowRoots;
    this.templateContent = templateContent;
    this.pseudoElements = pseudoElements;
    this.importedDocument = importedDocument;
    this.distributedNodes = distributedNodes;
    this.isSVG = isSVG;
  }

  public NodeId getNodeId() {
    return nodeId;
  }

  public NodeId getParentId() {
    return parentId;
  }

  public BackendNodeId getBackendNodeId() {
    return backendNodeId;
  }

  public Integer getNodeType() {
    return nodeType;
  }

  public String getNodeName() {
    return nodeName;
  }

  public String getLocalName() {
    return localName;
  }

  public String getNodeValue() {
    return nodeValue;
  }

  public Integer getChildNodeCount() {
    return childNodeCount;
  }

  public List getChildren() {
    return children;
  }

  public List getAttributes() {
    return attributes;
  }

  public String getDocumentURL() {
    return documentURL;
  }

  public String getBaseURL() {
    return baseURL;
  }

  public String getPublicId() {
    return publicId;
  }

  public String getSystemId() {
    return systemId;
  }

  public String getInternalSubset() {
    return internalSubset;
  }

  public String getXmlVersion() {
    return xmlVersion;
  }

  public String getName() {
    return name;
  }

  public String getValue() {
    return value;
  }

  public PseudoType getPseudoType() {
    return pseudoType;
  }

  public ShadowRootType getShadowRootType() {
    return shadowRootType;
  }

  public FrameId getFrameId() {
    return frameId;
  }

  public Node getContentDocument() {
    return contentDocument;
  }

  public List getShadowRoots() {
    return shadowRoots;
  }

  public Node getTemplateContent() {
    return templateContent;
  }

  public List getPseudoElements() {
    return pseudoElements;
  }

  public Node getImportedDocument() {
    return importedDocument;
  }

  public List getDistributedNodes() {
    return distributedNodes;
  }

  public Boolean getIsSVG() {
    return isSVG;
  }

  public static Node.Builder builder() {
    return new Node.Builder();
  }

  public static final class Builder {
    private NodeId nodeId;

    private NodeId parentId;

    private BackendNodeId backendNodeId;

    private Integer nodeType;

    private String nodeName;

    private String localName;

    private String nodeValue;

    private Integer childNodeCount;

    private List children;

    private List attributes;

    private String documentURL;

    private String baseURL;

    private String publicId;

    private String systemId;

    private String internalSubset;

    private String xmlVersion;

    private String name;

    private String value;

    private PseudoType pseudoType;

    private ShadowRootType shadowRootType;

    private FrameId frameId;

    private Node contentDocument;

    private List shadowRoots;

    private Node templateContent;

    private List pseudoElements;

    private Node importedDocument;

    private List distributedNodes;

    private Boolean isSVG;

    private Builder() {
    }

    public Node.Builder setNodeId(NodeId nodeId) {
      this.nodeId = nodeId;
      return this;
    }

    public Node.Builder setParentId(NodeId parentId) {
      this.parentId = parentId;
      return this;
    }

    public Node.Builder setBackendNodeId(BackendNodeId backendNodeId) {
      this.backendNodeId = backendNodeId;
      return this;
    }

    public Node.Builder setNodeType(Integer nodeType) {
      this.nodeType = nodeType;
      return this;
    }

    public Node.Builder setNodeName(String nodeName) {
      this.nodeName = nodeName;
      return this;
    }

    public Node.Builder setLocalName(String localName) {
      this.localName = localName;
      return this;
    }

    public Node.Builder setNodeValue(String nodeValue) {
      this.nodeValue = nodeValue;
      return this;
    }

    public Node.Builder setChildNodeCount(Integer childNodeCount) {
      this.childNodeCount = childNodeCount;
      return this;
    }

    public Node.Builder setChildren(List children) {
      this.children = children;
      return this;
    }

    public Node.Builder setAttributes(List attributes) {
      this.attributes = attributes;
      return this;
    }

    public Node.Builder setDocumentURL(String documentURL) {
      this.documentURL = documentURL;
      return this;
    }

    public Node.Builder setBaseURL(String baseURL) {
      this.baseURL = baseURL;
      return this;
    }

    public Node.Builder setPublicId(String publicId) {
      this.publicId = publicId;
      return this;
    }

    public Node.Builder setSystemId(String systemId) {
      this.systemId = systemId;
      return this;
    }

    public Node.Builder setInternalSubset(String internalSubset) {
      this.internalSubset = internalSubset;
      return this;
    }

    public Node.Builder setXmlVersion(String xmlVersion) {
      this.xmlVersion = xmlVersion;
      return this;
    }

    public Node.Builder setName(String name) {
      this.name = name;
      return this;
    }

    public Node.Builder setValue(String value) {
      this.value = value;
      return this;
    }

    public Node.Builder setPseudoType(PseudoType pseudoType) {
      this.pseudoType = pseudoType;
      return this;
    }

    public Node.Builder setShadowRootType(ShadowRootType shadowRootType) {
      this.shadowRootType = shadowRootType;
      return this;
    }

    public Node.Builder setFrameId(FrameId frameId) {
      this.frameId = frameId;
      return this;
    }

    public Node.Builder setContentDocument(Node contentDocument) {
      this.contentDocument = contentDocument;
      return this;
    }

    public Node.Builder setShadowRoots(List shadowRoots) {
      this.shadowRoots = shadowRoots;
      return this;
    }

    public Node.Builder setTemplateContent(Node templateContent) {
      this.templateContent = templateContent;
      return this;
    }

    public Node.Builder setPseudoElements(List pseudoElements) {
      this.pseudoElements = pseudoElements;
      return this;
    }

    public Node.Builder setImportedDocument(Node importedDocument) {
      this.importedDocument = importedDocument;
      return this;
    }

    public Node.Builder setDistributedNodes(List distributedNodes) {
      this.distributedNodes = distributedNodes;
      return this;
    }

    public Node.Builder setIsSVG(Boolean isSVG) {
      this.isSVG = isSVG;
      return this;
    }

    public Node build() {
      return new Node(nodeId, parentId, backendNodeId, nodeType, nodeName, localName, nodeValue, childNodeCount, children, attributes, documentURL, baseURL, publicId, systemId, internalSubset, xmlVersion, name, value, pseudoType, shadowRootType, frameId, contentDocument, shadowRoots, templateContent, pseudoElements, importedDocument, distributedNodes, isSVG);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy