org.apache.batik.css.engine.sac

Class CSSPseudoClassCondition

public class CSSPseudoClassCondition extends AbstractAttributeCondition

This class provides an implementation of the org.w3c.css.sac.AttributeCondition interface.
Field Summary
protected StringnamespaceURI
The namespaceURI.
Constructor Summary
CSSPseudoClassCondition(String namespaceURI, String value)
Creates a new CSSAttributeCondition 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().
StringgetLocalName()
SAC: Implements org.w3c.css.sac.AttributeCondition#getLocalName().
StringgetNamespaceURI()
SAC: Implements org.w3c.css.sac.AttributeCondition#getNamespaceURI().
booleangetSpecified()
SAC: Implements org.w3c.css.sac.AttributeCondition#getSpecified().
inthashCode()
equal objects should have equal hashCodes.
booleanmatch(Element e, String pseudoE)
Tests whether this selector matches the given element.
StringtoString()
Returns a text representation of this object.

Field Detail

namespaceURI

protected String namespaceURI
The namespaceURI.

Constructor Detail

CSSPseudoClassCondition

public CSSPseudoClassCondition(String namespaceURI, String value)
Creates a new CSSAttributeCondition 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().

getLocalName

public String getLocalName()
SAC: Implements org.w3c.css.sac.AttributeCondition#getLocalName().

getNamespaceURI

public String getNamespaceURI()
SAC: Implements org.w3c.css.sac.AttributeCondition#getNamespaceURI().

getSpecified

public boolean getSpecified()
SAC: Implements org.w3c.css.sac.AttributeCondition#getSpecified().

hashCode

public int hashCode()
equal objects should have equal hashCodes.

Returns: hashCode of this CSSPseudoClassCondition

match

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

toString

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