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

com.hubspot.chrome.devtools.client.core.css.InheritedStyleEntry Maven / Gradle / Ivy

package com.hubspot.chrome.devtools.client.core.css;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * Inherited CSS rule collection from ancestor node.
 */
public final class InheritedStyleEntry {
  private CSSStyle inlineStyle;

  private List matchedCSSRules;

  @JsonCreator
  public InheritedStyleEntry(@JsonProperty("inlineStyle") CSSStyle inlineStyle,
      @JsonProperty("matchedCSSRules") List matchedCSSRules) {
    this.inlineStyle = inlineStyle;
    this.matchedCSSRules = matchedCSSRules;
  }

  public CSSStyle getInlineStyle() {
    return inlineStyle;
  }

  public List getMatchedCSSRules() {
    return matchedCSSRules;
  }

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

  public static final class Builder {
    private CSSStyle inlineStyle;

    private List matchedCSSRules;

    private Builder() {
    }

    public InheritedStyleEntry.Builder setInlineStyle(CSSStyle inlineStyle) {
      this.inlineStyle = inlineStyle;
      return this;
    }

    public InheritedStyleEntry.Builder setMatchedCSSRules(List matchedCSSRules) {
      this.matchedCSSRules = matchedCSSRules;
      return this;
    }

    public InheritedStyleEntry build() {
      return new InheritedStyleEntry(inlineStyle, matchedCSSRules);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy