Package org.apache.batik.css.engine.sac
Class CSSLangCondition
java.lang.Object
org.apache.batik.css.engine.sac.CSSLangCondition
- All Implemented Interfaces:
ExtendedCondition
,org.w3c.css.sac.Condition
,org.w3c.css.sac.LangCondition
public class CSSLangCondition
extends Object
implements org.w3c.css.sac.LangCondition, ExtendedCondition
This class provides an implementation of the
LangCondition
interface.- Version:
- $Id: CSSLangCondition.java 1851346 2019-01-15 13:41:00Z ssteiner $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The language.protected String
The 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 TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.void
fillAttributeSet
(Set attrSet) Fills the given set with the attribute names found in this selector.short
SAC: ImplementsCondition.getConditionType()
.getLang()
SAC: ImplementsLangCondition.getLang()
.int
Returns the specificity of this condition.boolean
Tests 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
-
CSSLangCondition
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:
getConditionType
in interfaceorg.w3c.css.sac.Condition
-
getLang
SAC: ImplementsLangCondition.getLang()
.- Specified by:
getLang
in interfaceorg.w3c.css.sac.LangCondition
-
getSpecificity
public int getSpecificity()Returns the specificity of this condition.- Specified by:
getSpecificity
in interfaceExtendedCondition
-
match
Tests whether this condition matches the given element.- Specified by:
match
in interfaceExtendedCondition
-
fillAttributeSet
Fills the given set with the attribute names found in this selector.- Specified by:
fillAttributeSet
in interfaceExtendedCondition
-
toString
Returns a text representation of this object.
-