Class MediaQuery
java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.parser.media.MediaQuery
- All Implemented Interfaces:
Serializable, Locatable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final booleanprivate final booleanprivate String -
Constructor Summary
ConstructorsConstructorDescriptionMediaQuery(String media) Ctor.MediaQuery(String media, boolean isOnly, boolean isNot) Ctor. -
Method Summary
Methods inherited from class AbstractLocatable
getLocator, setLocator
-
Field Details
-
media_
-
properties_
-
implicitAll_
private boolean implicitAll_ -
isOnly_
private final boolean isOnly_ -
isNot_
private final boolean isNot_
-
-
Constructor Details
-
MediaQuery
-
MediaQuery
Ctor.- Parameters:
media- the media stringisOnly- is only flagisNot- is not flag
-
-
Method Details
-
getMedia
- Returns:
- the media
-
getProperties
-
addMediaProperty
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
-