com.hubspot.chrome.devtools.client.core.css.CSSStyleSheetHeader Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.css;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.dom.BackendNodeId;
import com.hubspot.chrome.devtools.client.core.page.FrameId;
/**
* CSS stylesheet metainformation.
*/
public final class CSSStyleSheetHeader {
private StyleSheetId styleSheetId;
private FrameId frameId;
private String sourceURL;
private String sourceMapURL;
private StyleSheetOrigin origin;
private String title;
private BackendNodeId ownerNode;
private Boolean disabled;
private Boolean hasSourceURL;
private Boolean isInline;
private Number startLine;
private Number startColumn;
private Number length;
@JsonCreator
public CSSStyleSheetHeader(@JsonProperty("styleSheetId") StyleSheetId styleSheetId,
@JsonProperty("frameId") FrameId frameId, @JsonProperty("sourceURL") String sourceURL,
@JsonProperty("sourceMapURL") String sourceMapURL,
@JsonProperty("origin") StyleSheetOrigin origin, @JsonProperty("title") String title,
@JsonProperty("ownerNode") BackendNodeId ownerNode,
@JsonProperty("disabled") Boolean disabled,
@JsonProperty("hasSourceURL") Boolean hasSourceURL,
@JsonProperty("isInline") Boolean isInline, @JsonProperty("startLine") Number startLine,
@JsonProperty("startColumn") Number startColumn, @JsonProperty("length") Number length) {
this.styleSheetId = styleSheetId;
this.frameId = frameId;
this.sourceURL = sourceURL;
this.sourceMapURL = sourceMapURL;
this.origin = origin;
this.title = title;
this.ownerNode = ownerNode;
this.disabled = disabled;
this.hasSourceURL = hasSourceURL;
this.isInline = isInline;
this.startLine = startLine;
this.startColumn = startColumn;
this.length = length;
}
public StyleSheetId getStyleSheetId() {
return styleSheetId;
}
public FrameId getFrameId() {
return frameId;
}
public String getSourceURL() {
return sourceURL;
}
public String getSourceMapURL() {
return sourceMapURL;
}
public StyleSheetOrigin getOrigin() {
return origin;
}
public String getTitle() {
return title;
}
public BackendNodeId getOwnerNode() {
return ownerNode;
}
public Boolean getDisabled() {
return disabled;
}
public Boolean getHasSourceURL() {
return hasSourceURL;
}
public Boolean getIsInline() {
return isInline;
}
public Number getStartLine() {
return startLine;
}
public Number getStartColumn() {
return startColumn;
}
public Number getLength() {
return length;
}
public static CSSStyleSheetHeader.Builder builder() {
return new CSSStyleSheetHeader.Builder();
}
public static final class Builder {
private StyleSheetId styleSheetId;
private FrameId frameId;
private String sourceURL;
private String sourceMapURL;
private StyleSheetOrigin origin;
private String title;
private BackendNodeId ownerNode;
private Boolean disabled;
private Boolean hasSourceURL;
private Boolean isInline;
private Number startLine;
private Number startColumn;
private Number length;
private Builder() {
}
public CSSStyleSheetHeader.Builder setStyleSheetId(StyleSheetId styleSheetId) {
this.styleSheetId = styleSheetId;
return this;
}
public CSSStyleSheetHeader.Builder setFrameId(FrameId frameId) {
this.frameId = frameId;
return this;
}
public CSSStyleSheetHeader.Builder setSourceURL(String sourceURL) {
this.sourceURL = sourceURL;
return this;
}
public CSSStyleSheetHeader.Builder setSourceMapURL(String sourceMapURL) {
this.sourceMapURL = sourceMapURL;
return this;
}
public CSSStyleSheetHeader.Builder setOrigin(StyleSheetOrigin origin) {
this.origin = origin;
return this;
}
public CSSStyleSheetHeader.Builder setTitle(String title) {
this.title = title;
return this;
}
public CSSStyleSheetHeader.Builder setOwnerNode(BackendNodeId ownerNode) {
this.ownerNode = ownerNode;
return this;
}
public CSSStyleSheetHeader.Builder setDisabled(Boolean disabled) {
this.disabled = disabled;
return this;
}
public CSSStyleSheetHeader.Builder setHasSourceURL(Boolean hasSourceURL) {
this.hasSourceURL = hasSourceURL;
return this;
}
public CSSStyleSheetHeader.Builder setIsInline(Boolean isInline) {
this.isInline = isInline;
return this;
}
public CSSStyleSheetHeader.Builder setStartLine(Number startLine) {
this.startLine = startLine;
return this;
}
public CSSStyleSheetHeader.Builder setStartColumn(Number startColumn) {
this.startColumn = startColumn;
return this;
}
public CSSStyleSheetHeader.Builder setLength(Number length) {
this.length = length;
return this;
}
public CSSStyleSheetHeader build() {
return new CSSStyleSheetHeader(styleSheetId, frameId, sourceURL, sourceMapURL, origin, title, ownerNode, disabled, hasSourceURL, isInline, startLine, startColumn, length);
}
}
}