com.hubspot.chrome.devtools.client.core.css.CSSStyle 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;
/**
* CSS style representation.
*/
public final class CSSStyle {
private StyleSheetId styleSheetId;
private List cssProperties;
private List shorthandEntries;
private String cssText;
private SourceRange range;
@JsonCreator
public CSSStyle(@JsonProperty("styleSheetId") StyleSheetId styleSheetId,
@JsonProperty("cssProperties") List cssProperties,
@JsonProperty("shorthandEntries") List shorthandEntries,
@JsonProperty("cssText") String cssText, @JsonProperty("range") SourceRange range) {
this.styleSheetId = styleSheetId;
this.cssProperties = cssProperties;
this.shorthandEntries = shorthandEntries;
this.cssText = cssText;
this.range = range;
}
public StyleSheetId getStyleSheetId() {
return styleSheetId;
}
public List getCssProperties() {
return cssProperties;
}
public List getShorthandEntries() {
return shorthandEntries;
}
public String getCssText() {
return cssText;
}
public SourceRange getRange() {
return range;
}
public static CSSStyle.Builder builder() {
return new CSSStyle.Builder();
}
public static final class Builder {
private StyleSheetId styleSheetId;
private List cssProperties;
private List shorthandEntries;
private String cssText;
private SourceRange range;
private Builder() {
}
public CSSStyle.Builder setStyleSheetId(StyleSheetId styleSheetId) {
this.styleSheetId = styleSheetId;
return this;
}
public CSSStyle.Builder setCssProperties(List cssProperties) {
this.cssProperties = cssProperties;
return this;
}
public CSSStyle.Builder setShorthandEntries(List shorthandEntries) {
this.shorthandEntries = shorthandEntries;
return this;
}
public CSSStyle.Builder setCssText(String cssText) {
this.cssText = cssText;
return this;
}
public CSSStyle.Builder setRange(SourceRange range) {
this.range = range;
return this;
}
public CSSStyle build() {
return new CSSStyle(styleSheetId, cssProperties, shorthandEntries, cssText, range);
}
}
}