Class CSS.CSSStyleSheetHeader

    • 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)
      Constructor
      CSSStyleSheetHeader​(JsonObject jo)
      JSON Object Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean[] optionals()
      Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • 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
      • ownerNode

        🡅  🡇    
        public final java.lang.Integer ownerNode
        The backend id for the owner node of the stylesheet.

        OPTIONAL
      • 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).
        OPTIONAL
        origin - Stylesheet origin.
        title - Stylesheet title.
        ownerNode - The backend id for the owner node of the stylesheet.
        OPTIONAL
        disabled - Denotes whether the stylesheet is disabled.
        hasSourceURL - Whether the sourceURL field value comes from the sourceURL comment.
        OPTIONAL
        isInline - 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).
    • 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 a JsonObject 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 position TRUE.

        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 class BaseType
        Returns:
        A boolean[] array whose length is precisely equal to the number of fields in the Java Object.