org.apache.batik.css.engine.sac

Class AbstractCombinatorCondition

public abstract class AbstractCombinatorCondition extends Object implements CombinatorCondition, ExtendedCondition

This class provides an abstract implementation of the org.w3c.css.sac.CombinatorCondition interface.
Field Summary
protected ConditionfirstCondition
The first condition.
protected ConditionsecondCondition
The second condition.
Constructor Summary
protected AbstractCombinatorCondition(Condition c1, Condition c2)
Creates a new CombinatorCondition object.
Method Summary
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ConditiongetFirstCondition()
SAC: Implements org.w3c.css.sac.CombinatorCondition#getFirstCondition().
ConditiongetSecondCondition()
SAC: Implements org.w3c.css.sac.CombinatorCondition#getSecondCondition().
intgetSpecificity()
Returns the specificity of this condition.

Field Detail

firstCondition

protected Condition firstCondition
The first condition.

secondCondition

protected Condition secondCondition
The second condition.

Constructor Detail

AbstractCombinatorCondition

protected AbstractCombinatorCondition(Condition c1, Condition c2)
Creates a new CombinatorCondition 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.

getFirstCondition

public Condition getFirstCondition()
SAC: Implements org.w3c.css.sac.CombinatorCondition#getFirstCondition().

getSecondCondition

public Condition getSecondCondition()
SAC: Implements org.w3c.css.sac.CombinatorCondition#getSecondCondition().

getSpecificity

public int getSpecificity()
Returns the specificity of this condition.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.