- All Known Implementing Classes:
AbstractMediaQuery
public interface MediaQuery
Obtain information on an individual media query.
-
Method Summary
Modifier and TypeMethodDescriptionThe media feature conditions, if any.getMedia()
Get the serialized form of this media query.Get the media type, likescreen
orprint
.Get a minified serialized form of this media query.boolean
Is this an all-media query?boolean
Returntrue
if this query is negated, like innot screen
.boolean
Determine if this query evaluates tonot all
.
-
Method Details
-
getMediaType
String getMediaType()Get the media type, likescreen
orprint
.- Returns:
- the media type,
null
means all media.
-
getCondition
BooleanCondition getCondition()The media feature conditions, if any.In this implementation, condition predicates implement
MediaQueryPredicate
and sub-interfaces.- Returns:
- the media feature conditions,
null
otherwise.
-
isNegated
boolean isNegated()Returntrue
if this query is negated, like innot screen
.- Returns:
true
if this query is negated.
-
isAllMedia
boolean isAllMedia()Is this an all-media query?- Returns:
true
if this query matches all media,false
otherwise.
-
isNotAllMedia
boolean isNotAllMedia()Determine if this query evaluates tonot all
.- Returns:
true
if this query matches no media,false
otherwise.
-
getMedia
String getMedia()Get the serialized form of this media query.- Returns:
- the serialized form of this media query.
-
getMinifiedMedia
String getMinifiedMedia()Get a minified serialized form of this media query.- Returns:
- the minified serialized form of this media query.
-