Interface MediaQuery

All Known Implementing Classes:
AbstractMediaQuery

public interface MediaQuery
Obtain information on an individual media query.
  • Method Details

    • getMediaType

      String getMediaType()
      Get the media type, like screen or print.
      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()
      Return true if this query is negated, like in not 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 to not 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.