org.apache.batik.css.engine.sac

Class CSSLangCondition

public class CSSLangCondition extends Object implements LangCondition, ExtendedCondition

This class provides an implementation of the org.w3c.css.sac.LangCondition interface.
Field Summary
protected Stringlang
The language.
protected StringlangHyphen
The language with a hyphen suffixed.
Constructor Summary
CSSLangCondition(String lang)
Creates a new LangCondition object.
Method Summary
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
voidfillAttributeSet(Set attrSet)
Fills the given set with the attribute names found in this selector.
shortgetConditionType()
SAC: Implements org.w3c.css.sac.Condition#getConditionType().
StringgetLang()
SAC: Implements org.w3c.css.sac.LangCondition#getLang().
intgetSpecificity()
Returns the specificity of this condition.
booleanmatch(Element e, String pseudoE)
Tests whether this condition matches the given element.
StringtoString()
Returns a text representation of this object.

Field Detail

lang

protected String lang
The language.

langHyphen

protected String langHyphen
The language with a hyphen suffixed.

Constructor Detail

CSSLangCondition

public CSSLangCondition(String lang)
Creates a new LangCondition object.

Method Detail

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Parameters: obj the reference object with which to compare.

fillAttributeSet

public void fillAttributeSet(Set attrSet)
Fills the given set with the attribute names found in this selector.

getConditionType

public short getConditionType()
SAC: Implements org.w3c.css.sac.Condition#getConditionType().

getLang

public String getLang()
SAC: Implements org.w3c.css.sac.LangCondition#getLang().

getSpecificity

public int getSpecificity()
Returns the specificity of this condition.

match

public boolean match(Element e, String pseudoE)
Tests whether this condition matches the given element.

toString

public String toString()
Returns a text representation of this object.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.