public class ClassConditionImpl extends LocatableImpl implements AttributeCondition, CSSFormatable, Serializable
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| Constructor and Description |
|---|
ClassConditionImpl(String value) |
| Modifier and Type | Method and Description |
|---|---|
short |
getConditionType()
An integer indicating the type of
Condition. |
String |
getCssText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
String |
getLocalName()
Returns the
local part
of the
qualified
name of this attribute.
|
String |
getNamespaceURI()
Returns the
namespace
URI of this attribute condition.
|
boolean |
getSpecified()
Returns
true if the attribute must have an explicit value
in the original document, false otherwise. |
String |
getValue()
Returns the value of the attribute.
|
void |
setValue(String value) |
String |
toString() |
getLocator, setLocatorpublic ClassConditionImpl(String value)
public void setValue(String value)
public short getConditionType()
ConditionCondition.getConditionType in interface Conditionpublic String getNamespaceURI()
AttributeConditionNULL if :
getNamespaceURI in interface AttributeConditionpublic String getLocalName()
AttributeConditionNULL if :
this attribute condition can match any attribute.
this attribute is a class attribute.
this attribute is an id attribute.
this attribute is a pseudo-class attribute.
getLocalName in interface AttributeConditionpublic boolean getSpecified()
AttributeConditiontrue if the attribute must have an explicit value
in the original document, false otherwise.getSpecified in interface AttributeConditionpublic String getValue()
AttributeConditiongetValue in interface AttributeConditionpublic String getCssText(CSSFormat format)
getCssText in interface CSSFormatableformat - the formatting rulesCopyright © 2026. All rights reserved.