Class MediaQuery

java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.parser.media.MediaQuery
All Implemented Interfaces:
Serializable, Locatable

public class MediaQuery extends AbstractLocatable implements Serializable
See Also:
  • Field Details

    • media_

      private String media_
    • properties_

      private final List<Property> properties_
    • implicitAll_

      private boolean implicitAll_
    • isOnly_

      private final boolean isOnly_
    • isNot_

      private final boolean isNot_
  • Constructor Details

    • MediaQuery

      public MediaQuery(String media)
      Ctor.
      Parameters:
      media - the media string
    • MediaQuery

      public MediaQuery(String media, boolean isOnly, boolean isNot)
      Ctor.
      Parameters:
      media - the media string
      isOnly - is only flag
      isNot - is not flag
  • Method Details

    • getMedia

      public String getMedia()
      Returns:
      the media
    • getProperties

      public List<Property> getProperties()
      Returns:
      the list of properties
    • addMediaProperty

      public void addMediaProperty(Property mp)
      Adds a property to the list.
      Parameters:
      mp - the property to add
    • isOnly

      public boolean isOnly()
      Returns:
      the is only flag
    • isNot

      public boolean isNot()
      Returns:
      the is not flag
    • toString

      public String toString()
      Overrides:
      toString in class Object