Class MediaQuery
java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.parser.media.MediaQuery
- All Implemented Interfaces:
Serializable
,Locatable
MediaQuery class.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
ConstructorDescriptionMediaQuery
(String media) Ctor.MediaQuery
(String media, boolean isOnly, boolean isNot) Ctor. -
Method Summary
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
Constructor Details
-
MediaQuery
Ctor.- Parameters:
media
- the media string
-
MediaQuery
Ctor.- Parameters:
media
- the media stringisOnly
- is only flagisNot
- is not flag
-
-
Method Details
-
getMedia
getMedia.
- Returns:
- the media
-
getProperties
getProperties.
- Returns:
- the list of properties
-
addMediaProperty
Adds a property to the list.- Parameters:
mp
- the property to add
-
isOnly
public boolean isOnly()isOnly.
- Returns:
- the is only flag
-
isNot
public boolean isNot()isNot.
- Returns:
- the is not flag
-
toString
-