Class CSSLangConditionImpl
java.lang.Object
org.eclipse.e4.ui.css.core.impl.sac.CSSLangConditionImpl
- All Implemented Interfaces:
ExtendedCondition,org.w3c.css.sac.Condition,org.w3c.css.sac.LangCondition
public class CSSLangConditionImpl
extends Object
implements org.w3c.css.sac.LangCondition, ExtendedCondition
This class provides an implementation of the
LangCondition interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe language.protected StringThe language with a hyphen suffixed.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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.voidfillAttributeSet(Set<String> attrSet) Fills the given set with the attribute names found in this selector.shortSAC: ImplementsCondition.getConditionType().getLang()SAC: ImplementsLangCondition.getLang().intReturns the specificity of this condition.booleanTests whether this condition matches the given element.toString()Returns a text representation of this object.
-
Field Details
-
lang
The language. -
langHyphen
The language with a hyphen suffixed.
-
-
Constructor Details
-
CSSLangConditionImpl
Creates a new LangCondition object.
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
getConditionType
public short getConditionType()SAC: ImplementsCondition.getConditionType().- Specified by:
getConditionTypein interfaceorg.w3c.css.sac.Condition
-
getLang
SAC: ImplementsLangCondition.getLang().- Specified by:
getLangin interfaceorg.w3c.css.sac.LangCondition
-
getSpecificity
public int getSpecificity()Returns the specificity of this condition.- Specified by:
getSpecificityin interfaceExtendedCondition
-
match
Tests whether this condition matches the given element.- Specified by:
matchin interfaceExtendedCondition
-
fillAttributeSet
Fills the given set with the attribute names found in this selector.- Specified by:
fillAttributeSetin interfaceExtendedCondition
-
toString
Returns a text representation of this object.
-