org.apache.batik.css.engine.sac
Class AbstractAttributeCondition

java.lang.Object
  extended by org.apache.batik.css.engine.sac.AbstractAttributeCondition
All Implemented Interfaces:
ExtendedCondition
Direct Known Subclasses:
CSSAttributeCondition, CSSIdCondition, CSSPseudoClassCondition

public abstract class AbstractAttributeCondition
extends java.lang.Object
implements ExtendedCondition

This class provides an abstract implementation of the org.w3c.css.sac.AttributeCondition interface.


Field Summary
protected  java.lang.String value
          The attribute value.
 
Constructor Summary
protected AbstractAttributeCondition(java.lang.String value)
          Creates a new AbstractAttributeCondition object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 int getSpecificity()
          Returns the specificity of this condition.
 java.lang.String getValue()
          SAC: Implements org.w3c.css.sac.AttributeCondition#getValue().
 int hashCode()
          equal objects should have equal hashCodes.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.batik.css.engine.sac.ExtendedCondition
fillAttributeSet, match
 

Field Detail

value

protected java.lang.String value
The attribute value.

Constructor Detail

AbstractAttributeCondition

protected AbstractAttributeCondition(java.lang.String value)
Creates a new AbstractAttributeCondition object.

Method Detail

equals

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

Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.

hashCode

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

Overrides:
hashCode in class java.lang.Object
Returns:
hashCode of this AbstractAttributeCondition

getSpecificity

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

Specified by:
getSpecificity in interface ExtendedCondition

getValue

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



Copyright ? 2008 Apache Software Foundation. All Rights Reserved.