Package io.sf.carte.doc.style.css.nsac
Interface AttributeCondition
- All Superinterfaces:
Condition
Based on SAC's
AttributeCondition
interface by Philippe Le Hegaret.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Attribute selector flags.Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.nsac.Condition
Condition.ConditionType
-
Method Summary
Modifier and TypeMethodDescriptionReturns the local part of the qualified name of this attribute.Returns the namespace URI of this attribute condition.getValue()
If this attribute is a class attribute, you'll get the class name without the '.'.boolean
Test this selector for the given flag.Methods inherited from interface io.sf.carte.doc.style.css.nsac.Condition
getConditionType
-
Method Details
-
getLocalName
String getLocalName()Returns the local part of the qualified name of this attribute.If this condition represents a pseudo-class, it returns the pseudo-class name.
- Returns:
- the local name of the attribute specified by this condition, or
null
if :-
this attribute condition can match any attribute.
-
this attribute is a class attribute.
-
this attribute is an id attribute.
-
-
getNamespaceURI
String getNamespaceURI()Returns the namespace URI of this attribute condition.NULL
if :- this attribute condition can match any namespace.
- this attribute is an id attribute.
-
getValue
String getValue()If this attribute is a class attribute, you'll get the class name without the '.'.If this condition represents a pseudo-class with an argument (in parentheses), it returns the argument.
- Returns:
- the value of the attribute (or the pseudo-class argument).
-
hasFlag
Test this selector for the given flag.- Parameters:
flag
- the flag to test.- Returns:
true
if the supplied flag was set for this condition.
-