org.apache.batik.css.engine.sac

Class CSSAttributeCondition

public class CSSAttributeCondition extends AbstractAttributeCondition

This class provides an implementation of the {@link org.w3c.css.sac.AttributeCondition} interface.
Field Summary
protected StringlocalName
The attribute's local name.
protected StringnamespaceURI
The attribute's namespace URI.
protected booleanspecified
Whether this condition applies to specified attributes.
Constructor Summary
CSSAttributeCondition(String localName, String namespaceURI, boolean specified, 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 {@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()}.
booleangetSpecified()
SAC: Implements {@link org.w3c.css.sac.AttributeCondition#getSpecified()}.
inthashCode()
equal objects should have equal hashCodes.
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 attribute's local name.

namespaceURI

protected String namespaceURI
The attribute's namespace URI.

specified

protected boolean specified
Whether this condition applies to specified attributes.

Constructor Detail

CSSAttributeCondition

public CSSAttributeCondition(String localName, String namespaceURI, boolean specified, 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 {@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()}.

getSpecified

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

hashCode

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

Returns: hashCode of this CSSAttributeCondition

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.