- All Superinterfaces:
AttributeCondition
,Condition
Refines SAC's
AttributeCondition
interface.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Attribute selector flags. -
Field Summary
Fields inherited from interface org.w3c.css.sac.Condition
SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
-
Method Summary
Modifier and TypeMethodDescriptionReturns the local part of the qualified name of this attribute.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 org.w3c.css.sac.AttributeCondition
getNamespaceURI, getSpecified
Methods inherited from interface org.w3c.css.sac.Condition
getConditionType
-
Method Details
-
getLocalName
String getLocalName()Returns the local part of the qualified name of this attribute.- Specified by:
getLocalName
in interfaceAttributeCondition
- 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.
-
-
getValue
String getValue()If this attribute is a class attribute, you'll get the class name without the '.'.- Specified by:
getValue
in interfaceAttributeCondition
- Returns:
- the value of the attribute.
-
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.
-