org.apache.batik.css.parser

Class DefaultConditionalSelector

public class DefaultConditionalSelector extends Object implements ConditionalSelector

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
DefaultConditionalSelector(SimpleSelector s, Condition c)
Creates a new ConditionalSelector object.
Method Summary
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().
StringtoString()
Returns a representation of the selector.

Field Detail

condition

protected Condition condition
The condition.

simpleSelector

protected SimpleSelector simpleSelector
The simple selector.

Constructor Detail

DefaultConditionalSelector

public DefaultConditionalSelector(SimpleSelector s, Condition c)
Creates a new ConditionalSelector object.

Method Detail

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().

toString

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