org.apache.batik.css.engine.sac

Class CSSConditionalSelector

public class CSSConditionalSelector extends Object implements ConditionalSelector, ExtendedSelector

This class provides an implementation of the org.w3c.css.sac.ConditionalSelector interface.
Field Summary
protected Conditioncondition
The condition.
protected SimpleSelectorsimpleSelector
The simple selector.
Constructor Summary
CSSConditionalSelector(SimpleSelector s, Condition c)
Creates a new ConditionalSelector object.
Method Summary
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
voidfillAttributeSet(Set attrSet)
Fills the given set with the attribute names found in this selector.
ConditiongetCondition()
SAC: Implements org.w3c.css.sac.ConditionalSelector#getCondition().
shortgetSelectorType()
SAC: Implements org.w3c.css.sac.Selector#getSelectorType().
SimpleSelectorgetSimpleSelector()
SAC: Implements org.w3c.css.sac.ConditionalSelector#getSimpleSelector().
intgetSpecificity()
Returns the specificity of this selector.
booleanmatch(Element e, String pseudoE)
Tests whether this selector matches the given element.
StringtoString()
Returns a representation of the selector.

Field Detail

condition

protected Condition condition
The condition.

simpleSelector

protected SimpleSelector simpleSelector
The simple selector.

Constructor Detail

CSSConditionalSelector

public CSSConditionalSelector(SimpleSelector s, Condition c)
Creates a new ConditionalSelector 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.

fillAttributeSet

public void fillAttributeSet(Set attrSet)
Fills the given set with the attribute names found in this selector.

getCondition

public Condition getCondition()
SAC: Implements org.w3c.css.sac.ConditionalSelector#getCondition().

getSelectorType

public short getSelectorType()
SAC: Implements org.w3c.css.sac.Selector#getSelectorType().

getSimpleSelector

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

getSpecificity

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

match

public boolean match(Element e, String pseudoE)
Tests whether this selector matches the given element.

toString

public String toString()
Returns a representation of the selector.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.