-
public final class CSSMediaCSS media rule descriptor.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtextprivate final Stringsourceprivate final StringsourceURLprivate final SourceRangerangeprivate final StringstyleSheetIdprivate final List<MediaQuery>mediaList
-
Constructor Summary
Constructors Constructor Description CSSMedia(String text, String source, String sourceURL, SourceRange range, String styleSheetId, List<MediaQuery> mediaList)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Stringcomponent2()final Stringcomponent3()final SourceRangecomponent4()final Stringcomponent5()final List<MediaQuery>component6()final CSSMediacopy(String text, String source, String sourceURL, SourceRange range, String styleSheetId, List<MediaQuery> mediaList)final StringgetText()Media query text. final StringgetSource()Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag. final StringgetSourceURL()URL of the document containing the media query description. final SourceRangegetRange()The associated rule (@media or @import) header range in the enclosing stylesheet (if available). final StringgetStyleSheetId()Identifier of the stylesheet containing this object (if exists). final List<MediaQuery>getMediaList()Array of media queries. -
-
Constructor Detail
-
CSSMedia
CSSMedia(String text, String source, String sourceURL, SourceRange range, String styleSheetId, List<MediaQuery> mediaList)
-
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final String component3()
-
component4
final SourceRange component4()
-
component5
final String component5()
-
component6
final List<MediaQuery> component6()
-
copy
final CSSMedia copy(String text, String source, String sourceURL, SourceRange range, String styleSheetId, List<MediaQuery> mediaList)
-
getSource
final String getSource()
Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline stylesheet's STYLE tag.
-
getSourceURL
final String getSourceURL()
URL of the document containing the media query description.
-
getRange
final SourceRange getRange()
The associated rule (@media or @import) header range in the enclosing stylesheet (if available).
-
getStyleSheetId
final String getStyleSheetId()
Identifier of the stylesheet containing this object (if exists).
-
getMediaList
final List<MediaQuery> getMediaList()
Array of media queries.
-
-
-
-