Package Torello.Browser
Class CSS.CSSStyleSheetHeader
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.CSS.CSSStyleSheetHeader
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- CSS
public static class CSS.CSSStyleSheetHeader extends BaseType implements java.io.Serializable
CSS stylesheet metainformation.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/CSS.java
- Open New Browser-Tab: Torello/Browser/CSS.java
File Size: 11,989 Bytes Line Count: 262 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field boolean
disabled
Denotes whether the stylesheet is disabled.Number
endColumn
Column offset of the end of the stylesheet within the resource (zero based).Number
endLine
Line offset of the end of the stylesheet within the resource (zero based).String
frameId
Owner frame identifier.Boolean
hasSourceURL
Whether the sourceURL field value comes from the sourceURL comment.boolean
isConstructed
True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.boolean
isInline
Whether this stylesheet is created for STYLE tag by parser.boolean
isMutable
Whether this stylesheet is mutable.Number
length
Size of the content (in characters).String
origin
Stylesheet origin.Integer
ownerNode
The backend id for the owner node of the stylesheet.String
sourceMapURL
URL of source map associated with the stylesheet (if any).String
sourceURL
Stylesheet resource URL.Number
startColumn
Column offset of the stylesheet within the resource (zero based).Number
startLine
Line offset of the stylesheet within the resource (zero based).String
styleSheetId
The stylesheet identifier.String
title
Stylesheet title.
-
Constructor Summary
Constructors Constructor Description CSSStyleSheetHeader(String styleSheetId, String frameId, String sourceURL, String sourceMapURL, String origin, String title, Integer ownerNode, boolean disabled, Boolean hasSourceURL, boolean isInline, boolean isMutable, boolean isConstructed, Number startLine, Number startColumn, Number length, Number endLine, Number endColumn)
ConstructorCSSStyleSheetHeader(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
styleSheetId
public final java.lang.String styleSheetId
The stylesheet identifier.
-
frameId
public final java.lang.String frameId
Owner frame identifier.
-
sourceURL
public final java.lang.String sourceURL
Stylesheet resource URL. Empty if this is a constructed stylesheet created using new CSSStyleSheet() (but non-empty if this is a constructed sylesheet imported as a CSS module script).
-
sourceMapURL
public final java.lang.String sourceMapURL
URL of source map associated with the stylesheet (if any).
OPTIONAL
-
origin
public final java.lang.String origin
Stylesheet origin.
-
title
public final java.lang.String title
Stylesheet title.
-
ownerNode
public final java.lang.Integer ownerNode
The backend id for the owner node of the stylesheet.
OPTIONAL
-
disabled
public final boolean disabled
Denotes whether the stylesheet is disabled.
-
hasSourceURL
public final java.lang.Boolean hasSourceURL
Whether the sourceURL field value comes from the sourceURL comment.
OPTIONAL
-
isInline
public final boolean isInline
Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
-
isMutable
public final boolean isMutable
Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. <link> element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
-
isConstructed
public final boolean isConstructed
True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.
-
startLine
public final java.lang.Number startLine
Line offset of the stylesheet within the resource (zero based).
-
startColumn
public final java.lang.Number startColumn
Column offset of the stylesheet within the resource (zero based).
-
length
public final java.lang.Number length
Size of the content (in characters).
-
endLine
public final java.lang.Number endLine
Line offset of the end of the stylesheet within the resource (zero based).
-
endColumn
public final java.lang.Number endColumn
Column offset of the end of the stylesheet within the resource (zero based).
-
-
Constructor Detail
-
CSSStyleSheetHeader
public CSSStyleSheetHeader(java.lang.String styleSheetId, java.lang.String frameId, java.lang.String sourceURL, java.lang.String sourceMapURL, java.lang.String origin, java.lang.String title, java.lang.Integer ownerNode, boolean disabled, java.lang.Boolean hasSourceURL, boolean isInline, boolean isMutable, boolean isConstructed, java.lang.Number startLine, java.lang.Number startColumn, java.lang.Number length, java.lang.Number endLine, java.lang.Number endColumn)
Constructor- Parameters:
styleSheetId
- The stylesheet identifier.frameId
- Owner frame identifier.sourceURL
- Stylesheet resource URL. Empty if this is a constructed stylesheet created using new CSSStyleSheet() (but non-empty if this is a constructed sylesheet imported as a CSS module script).sourceMapURL
- URL of source map associated with the stylesheet (if any).
OPTIONALorigin
- Stylesheet origin.title
- Stylesheet title.ownerNode
- The backend id for the owner node of the stylesheet.
OPTIONALdisabled
- Denotes whether the stylesheet is disabled.hasSourceURL
- Whether the sourceURL field value comes from the sourceURL comment.
OPTIONALisInline
- Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.isMutable
- Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API. <link> element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.isConstructed
- True if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.startLine
- Line offset of the stylesheet within the resource (zero based).startColumn
- Column offset of the stylesheet within the resource (zero based).length
- Size of the content (in characters).endLine
- Line offset of the end of the stylesheet within the resource (zero based).endColumn
- Column offset of the end of the stylesheet within the resource (zero based).
-
CSSStyleSheetHeader
public CSSStyleSheetHeader(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'CSSStyleSheetHeader'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...- Specified by:
optionals
in classBaseType
- Returns:
- A
boolean[]
array whose length is precisely equal to the number of fields in the Java Object. - Code:
- Exact Method Body:
return new boolean[] { false, false, false, true, false, false, true, false, true, false, false, false, false, false, false, false, false, };
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; CSSStyleSheetHeader o = (CSSStyleSheetHeader) other; return Objects.equals(this.styleSheetId, o.styleSheetId) && Objects.equals(this.frameId, o.frameId) && Objects.equals(this.sourceURL, o.sourceURL) && Objects.equals(this.sourceMapURL, o.sourceMapURL) && Objects.equals(this.origin, o.origin) && Objects.equals(this.title, o.title) && Objects.equals(this.ownerNode, o.ownerNode) && (this.disabled == o.disabled) && Objects.equals(this.hasSourceURL, o.hasSourceURL) && (this.isInline == o.isInline) && (this.isMutable == o.isMutable) && (this.isConstructed == o.isConstructed) && Objects.equals(this.startLine, o.startLine) && Objects.equals(this.startColumn, o.startColumn) && Objects.equals(this.length, o.length) && Objects.equals(this.endLine, o.endLine) && Objects.equals(this.endColumn, o.endColumn);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.styleSheetId) + Objects.hashCode(this.frameId) + Objects.hashCode(this.sourceURL) + Objects.hashCode(this.sourceMapURL) + Objects.hashCode(this.origin) + Objects.hashCode(this.title) + Objects.hashCode(this.ownerNode) + (this.disabled ? 1 : 0) + Objects.hashCode(this.hasSourceURL) + (this.isInline ? 1 : 0) + (this.isMutable ? 1 : 0) + (this.isConstructed ? 1 : 0) + Objects.hashCode(this.startLine) + Objects.hashCode(this.startColumn) + Objects.hashCode(this.length) + Objects.hashCode(this.endLine) + Objects.hashCode(this.endColumn);
-
-