1 30 31 package com.steadystate.css.parser.selectors; 32 33 import java.io.Serializable ; 34 import org.w3c.css.sac.*; 35 36 public class ConditionalSelectorImpl implements ConditionalSelector, Serializable { 37 38 private SimpleSelector _simpleSelector; 39 private Condition _condition; 40 41 public ConditionalSelectorImpl( 42 SimpleSelector simpleSelector, 43 Condition condition) { 44 _simpleSelector = simpleSelector; 45 _condition = condition; 46 } 47 48 public short getSelectorType() { 49 return Selector.SAC_CONDITIONAL_SELECTOR; 50 } 51 52 public SimpleSelector getSimpleSelector() { 53 return _simpleSelector; 54 } 55 56 public Condition getCondition() { 57 return _condition; 58 } 59 60 public String toString() { 61 return _simpleSelector.toString() + _condition.toString(); 62 } 63 } 64 | Popular Tags |