Package org.apache.batik.css.engine.sac
Class AbstractAttributeCondition
- java.lang.Object
-
- org.apache.batik.css.engine.sac.AbstractAttributeCondition
-
- All Implemented Interfaces:
ExtendedCondition,org.w3c.css.sac.AttributeCondition,org.w3c.css.sac.Condition
- Direct Known Subclasses:
CSSAttributeCondition,CSSIdCondition,CSSPseudoClassCondition
public abstract class AbstractAttributeCondition extends java.lang.Object implements org.w3c.css.sac.AttributeCondition, ExtendedCondition
This class provides an abstract implementation of theAttributeConditioninterface.- Version:
- $Id: AbstractAttributeCondition.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringvalueThe attribute value.-
Fields inherited from interface org.w3c.css.sac.Condition
SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAttributeCondition(java.lang.String value)Creates a new AbstractAttributeCondition object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Indicates whether some other object is "equal to" this one.intgetSpecificity()Returns the specificity of this condition.java.lang.StringgetValue()SAC: ImplementsAttributeCondition.getValue().inthashCode()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.w3c.css.sac.AttributeCondition
getLocalName, getNamespaceURI, getSpecified
-
Methods inherited from interface org.apache.batik.css.engine.sac.ExtendedCondition
fillAttributeSet, match
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the reference object with which to compare.
-
hashCode
public int hashCode()
equal objects should have equal hashCodes.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode of this AbstractAttributeCondition
-
getSpecificity
public int getSpecificity()
Returns the specificity of this condition.- Specified by:
getSpecificityin interfaceExtendedCondition
-
getValue
public java.lang.String getValue()
SAC: ImplementsAttributeCondition.getValue().- Specified by:
getValuein interfaceorg.w3c.css.sac.AttributeCondition
-
-