org.apache.batik.css.engine.sac

Class AbstractSiblingSelector

public abstract class AbstractSiblingSelector extends Object implements SiblingSelector, ExtendedSelector

This class provides an abstract implementation of the org.w3c.css.sac.SiblingSelector interface.
Field Summary
protected shortnodeType
The node type.
protected Selectorselector
The selector.
protected SimpleSelectorsimpleSelector
The simple selector.
Constructor Summary
protected AbstractSiblingSelector(short type, Selector sel, SimpleSelector simple)
Creates a new SiblingSelector object.
Method Summary
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
shortgetNodeType()
Returns the node type.
SelectorgetSelector()
SAC: Implements org.w3c.css.sac.SiblingSelector#getSelector().
SimpleSelectorgetSiblingSelector()
SAC: Implements org.w3c.css.sac.SiblingSelector#getSiblingSelector().
intgetSpecificity()
Returns the specificity of this selector.

Field Detail

nodeType

protected short nodeType
The node type.

selector

protected Selector selector
The selector.

simpleSelector

protected SimpleSelector simpleSelector
The simple selector.

Constructor Detail

AbstractSiblingSelector

protected AbstractSiblingSelector(short type, Selector sel, SimpleSelector simple)
Creates a new SiblingSelector 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.

getNodeType

public short getNodeType()
Returns the node type.

getSelector

public Selector getSelector()
SAC: Implements org.w3c.css.sac.SiblingSelector#getSelector().

getSiblingSelector

public SimpleSelector getSiblingSelector()
SAC: Implements org.w3c.css.sac.SiblingSelector#getSiblingSelector().

getSpecificity

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