com.hubspot.chrome.devtools.client.core.css.CSSProperty Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.css;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* CSS property declaration data.
*/
public final class CSSProperty {
private String name;
private String value;
private Boolean important;
private Boolean implicit;
private String text;
private Boolean parsedOk;
private Boolean disabled;
private SourceRange range;
@JsonCreator
public CSSProperty(@JsonProperty("name") String name, @JsonProperty("value") String value,
@JsonProperty("important") Boolean important, @JsonProperty("implicit") Boolean implicit,
@JsonProperty("text") String text, @JsonProperty("parsedOk") Boolean parsedOk,
@JsonProperty("disabled") Boolean disabled, @JsonProperty("range") SourceRange range) {
this.name = name;
this.value = value;
this.important = important;
this.implicit = implicit;
this.text = text;
this.parsedOk = parsedOk;
this.disabled = disabled;
this.range = range;
}
public String getName() {
return name;
}
public String getValue() {
return value;
}
public Boolean getImportant() {
return important;
}
public Boolean getImplicit() {
return implicit;
}
public String getText() {
return text;
}
public Boolean getParsedOk() {
return parsedOk;
}
public Boolean getDisabled() {
return disabled;
}
public SourceRange getRange() {
return range;
}
public static CSSProperty.Builder builder() {
return new CSSProperty.Builder();
}
public static final class Builder {
private String name;
private String value;
private Boolean important;
private Boolean implicit;
private String text;
private Boolean parsedOk;
private Boolean disabled;
private SourceRange range;
private Builder() {
}
public CSSProperty.Builder setName(String name) {
this.name = name;
return this;
}
public CSSProperty.Builder setValue(String value) {
this.value = value;
return this;
}
public CSSProperty.Builder setImportant(Boolean important) {
this.important = important;
return this;
}
public CSSProperty.Builder setImplicit(Boolean implicit) {
this.implicit = implicit;
return this;
}
public CSSProperty.Builder setText(String text) {
this.text = text;
return this;
}
public CSSProperty.Builder setParsedOk(Boolean parsedOk) {
this.parsedOk = parsedOk;
return this;
}
public CSSProperty.Builder setDisabled(Boolean disabled) {
this.disabled = disabled;
return this;
}
public CSSProperty.Builder setRange(SourceRange range) {
this.range = range;
return this;
}
public CSSProperty build() {
return new CSSProperty(name, value, important, implicit, text, parsedOk, disabled, range);
}
}
}