- 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, likescreenorprint.Get a minified serialized form of this media query.booleanIs this an all-media query?booleanReturntrueif this query is negated, like innot screen.booleanDetermine if this query evaluates tonot all.
-
Method Details
-
getMediaType
String getMediaType()Get the media type, likescreenorprint.- Returns:
- the media type,
nullmeans all media.
-
getCondition
BooleanCondition getCondition()The media feature conditions, if any.In this implementation, condition predicates implement
MediaQueryPredicateand sub-interfaces.- Returns:
- the media feature conditions,
nullotherwise.
-
isNegated
boolean isNegated()Returntrueif this query is negated, like innot screen.- Returns:
trueif this query is negated.
-
isAllMedia
boolean isAllMedia()Is this an all-media query?- Returns:
trueif this query matches all media,falseotherwise.
-
isNotAllMedia
boolean isNotAllMedia()Determine if this query evaluates tonot all.- Returns:
trueif this query matches no media,falseotherwise.
-
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.
-