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

java.lang.Object
  extended by org.apache.batik.css.engine.sac.AbstractDescendantSelector
All Implemented Interfaces:
ExtendedSelector
Direct Known Subclasses:
CSSChildSelector, CSSDescendantSelector

public abstract class AbstractDescendantSelector
extends Object
implements ExtendedSelector

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


Field Summary
protected  Selector ancestorSelector
          The ancestor selector.
protected  SimpleSelector simpleSelector
          The simple selector.
 
Constructor Summary
protected AbstractDescendantSelector(Selector ancestor, SimpleSelector simple)
          Creates a new DescendantSelector object.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 Selector getAncestorSelector()
          SAC: Implements org.w3c.css.sac.DescendantSelector#getAncestorSelector().
 SimpleSelector getSimpleSelector()
          SAC: Implements org.w3c.css.sac.DescendantSelector#getSimpleSelector().
 int getSpecificity()
          Returns the specificity of this selector.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.batik.css.engine.sac.ExtendedSelector
fillAttributeSet, match
 

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.

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

getSpecificity

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

Specified by:
getSpecificity in interface ExtendedSelector

getAncestorSelector

public Selector getAncestorSelector()
SAC: Implements org.w3c.css.sac.DescendantSelector#getAncestorSelector().


getSimpleSelector

public SimpleSelector getSimpleSelector()
SAC: Implements org.w3c.css.sac.DescendantSelector#getSimpleSelector().



Copyright ? 2008 Apache Software Foundation. All Rights Reserved.