Package Torello.Browser.BrowserAPI
Class CSS.CSSStyleSheetHeader
- java.lang.Object
-
- Torello.Browser.BaseType<CSS.CSSStyleSheetHeader>
-
- Torello.Browser.BrowserAPI.CSS.CSSStyleSheetHeader
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- CSS
public static class CSS.CSSStyleSheetHeader extends BaseType<CSS.CSSStyleSheetHeader> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in theCSSdomain, which may be found within theBrowserAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.CSS stylesheet metainformation.- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/BrowserAPI/CSS.java
- Open New Browser-Tab: Torello/Browser/BrowserAPI/CSS.java
File Size: 5,774 Bytes Line Count: 145 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: CSS$$CSSStyleSheetHeader$$.java
- Open New Browser-Tab: CSS$$CSSStyleSheetHeader$$.java
File Size: 17,201 Bytes Line Count: 403 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description booleandisabledDenotes whether the stylesheet is disabled.NumberendColumnColumn offset of the end of the stylesheet within the resource (zero based).NumberendLineLine offset of the end of the stylesheet within the resource (zero based).StringframeIdOwner frame identifier.BooleanhasSourceURLWhether the sourceURL field value comes from the sourceURL comment.booleanisConstructedTrue if this stylesheet is created through new CSSStyleSheet() or imported as a CSS module script.booleanisInlineWhether this stylesheet is created for STYLE tag by parser.booleanisMutableWhether this stylesheet is mutable.NumberlengthSize of the content (in characters).BooleanloadingFailedIf the style sheet was loaded from a network resource, this indicates when the resource failed to loadStringoriginStylesheet origin.IntegerownerNodeThe backend id for the owner node of the stylesheet.StringsourceMapURLURL of source map associated with the stylesheet (if any).StringsourceURLStylesheet resource URL.NumberstartColumnColumn offset of the stylesheet within the resource (zero based).NumberstartLineLine offset of the stylesheet within the resource (zero based).StringstyleSheetIdThe stylesheet identifier.StringtitleStylesheet title.
-
Constructor Summary
Constructors Constructor Description CSSStyleSheetHeader(ReadOnlyList<Boolean> isPresent, 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, Boolean loadingFailed)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static CSS.CSSStyleSheetHeaderfromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<CSS.CSSStyleSheetHeader>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- 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 stylesheet 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.This particular field will have its values resricted to the contents of a CDP defined Enumerated String List. That list may be viewed here:
📎CSS.StyleSheetOrigin
Programmatically Accessing the Enum:
// Retrieve the list of enumerated strings for this field ReadOnlyList<String> enumerationStrs = CSS.StyleSheetOrigin.enumStrList("origin"); // Print the list of strings to the terminal for (final String s : enumerationStrs) System.out.println('\"' + s + "\", ");
- See Also:
BaseType.enumStrList(String)
-
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.element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.<link>
-
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).
-
loadingFailed
public final java.lang.Boolean loadingFailed
If the style sheet was loaded from a network resource, this indicates when the resource failed to load
OPTIONALEXPERIMENTAL
-
-
Constructor Detail
-
CSSStyleSheetHeader
public CSSStyleSheetHeader(ReadOnlyList<java.lang.Boolean> isPresent, 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, java.lang.Boolean loadingFailed)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static CSS.CSSStyleSheetHeader fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<CSS.CSSStyleSheetHeader> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-