org.apache.batik.css.engine.sac

Class AbstractAttributeCondition

public abstract class AbstractAttributeCondition extends Object implements AttributeCondition, ExtendedCondition

This class provides an abstract implementation of the org.w3c.css.sac.AttributeCondition interface.
Field Summary
protected Stringvalue
The attribute value.
Constructor Summary
protected AbstractAttributeCondition(String value)
Creates a new AbstractAttributeCondition object.
Method Summary
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
intgetSpecificity()
Returns the specificity of this condition.
StringgetValue()
SAC: Implements org.w3c.css.sac.AttributeCondition#getValue().
inthashCode()
equal objects should have equal hashCodes.

Field Detail

value

protected String value
The attribute value.

Constructor Detail

AbstractAttributeCondition

protected AbstractAttributeCondition(String value)
Creates a new AbstractAttributeCondition 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.

getSpecificity

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

getValue

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

hashCode

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

Returns: hashCode of this AbstractAttributeCondition

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.