org.apache.batik.css.engine.sac

Class AbstractDescendantSelector

public abstract class AbstractDescendantSelector extends Object implements DescendantSelector, ExtendedSelector

This class provides an abstract implementation of the {@link org.w3c.css.sac.DescendantSelector} interface.
Field Summary
protected SelectorancestorSelector
The ancestor selector.
protected SimpleSelectorsimpleSelector
The simple selector.
Constructor Summary
protected AbstractDescendantSelector(Selector ancestor, SimpleSelector simple)
Creates a new DescendantSelector object.
Method Summary
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
SelectorgetAncestorSelector()
SAC: Implements {@link org.w3c.css.sac.DescendantSelector#getAncestorSelector()}.
SimpleSelectorgetSimpleSelector()
SAC: Implements {@link org.w3c.css.sac.DescendantSelector#getSimpleSelector()}.
intgetSpecificity()
Returns the specificity of this selector.

Field Detail

ancestorSelector

protected Selector ancestorSelector
The ancestor selector.

simpleSelector

protected SimpleSelector simpleSelector
The simple selector.

Constructor Detail

AbstractDescendantSelector

protected AbstractDescendantSelector(Selector ancestor, SimpleSelector simple)
Creates a new DescendantSelector 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.

getAncestorSelector

public Selector getAncestorSelector()
SAC: Implements {@link org.w3c.css.sac.DescendantSelector#getAncestorSelector()}.

getSimpleSelector

public SimpleSelector getSimpleSelector()
SAC: Implements {@link org.w3c.css.sac.DescendantSelector#getSimpleSelector()}.

getSpecificity

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