org.apache.batik.css.engine.sac

Class CSSIdCondition

public class CSSIdCondition extends AbstractAttributeCondition

This class provides an implementation of the {@link org.w3c.css.sac.AttributeCondition} interface.
Field Summary
protected StringlocalName
The id attribute local name.
protected StringnamespaceURI
The id attribute namespace URI.
Constructor Summary
CSSIdCondition(String ns, String ln, String value)
Creates a new CSSAttributeCondition object.
Method Summary
voidfillAttributeSet(Set attrSet)
Fills the given set with the attribute names found in this selector.
shortgetConditionType()
SAC: Implements {@link org.w3c.css.sac.Condition#getConditionType()}.
StringgetLocalName()
SAC: Implements {@link org.w3c.css.sac.AttributeCondition#getLocalName()}.
StringgetNamespaceURI()
SAC: Implements {@link org.w3c.css.sac.AttributeCondition#getNamespaceURI()}.
intgetSpecificity()
Returns the specificity of this condition.
booleangetSpecified()
SAC: Implements {@link org.w3c.css.sac.AttributeCondition#getSpecified()}.
booleanmatch(Element e, String pseudoE)
Tests whether this condition matches the given element.
StringtoString()
Returns a text representation of this object.

Field Detail

localName

protected String localName
The id attribute local name.

namespaceURI

protected String namespaceURI
The id attribute namespace URI.

Constructor Detail

CSSIdCondition

public CSSIdCondition(String ns, String ln, String value)
Creates a new CSSAttributeCondition object.

Method Detail

fillAttributeSet

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

getConditionType

public short getConditionType()
SAC: Implements {@link org.w3c.css.sac.Condition#getConditionType()}.

getLocalName

public String getLocalName()
SAC: Implements {@link org.w3c.css.sac.AttributeCondition#getLocalName()}.

getNamespaceURI

public String getNamespaceURI()
SAC: Implements {@link org.w3c.css.sac.AttributeCondition#getNamespaceURI()}.

getSpecificity

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

getSpecified

public boolean getSpecified()
SAC: Implements {@link org.w3c.css.sac.AttributeCondition#getSpecified()}.

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) 2007 Apache Software Foundation. All Rights Reserved.