Package io.sf.carte.doc.style.css.parser
Interface DeclarationCondition
- All Superinterfaces:
BooleanCondition
A condition that declares a property name and a value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.BooleanCondition
BooleanCondition.Type
-
Method Summary
Methods inherited from interface io.sf.carte.doc.style.css.BooleanCondition
addCondition, appendMinifiedText, appendText, getNestedCondition, getParentCondition, getSubConditions, getType, replaceLast, setParentCondition
-
Method Details
-
getName
String getName()The property name.- Returns:
- the property name.
-
getValue
CSSValue getValue() -
isParsable
boolean isParsable() -
setValue
Set the condition feature value.- Parameters:
value
- the value.- Throws:
DOMException
- if the value is incompatible with the feature being tested with the condition.
-
setValue
Set a serialized value for the property, setting theparsable
flag tofalse
.This should be done only when a proper value could not be parsed.
A condition which has a serialized value but not a real value is never going to match, although the serialized value shall be used for serializations.
- Parameters:
cssText
- the serialized value.
-