1 18 package org.apache.batik.css.parser; 19 20 import org.w3c.css.sac.Condition; 21 import org.w3c.css.sac.ConditionalSelector; 22 import org.w3c.css.sac.SimpleSelector; 23 24 31 public class DefaultConditionalSelector implements ConditionalSelector { 32 33 36 protected SimpleSelector simpleSelector; 37 38 41 protected Condition condition; 42 43 46 public DefaultConditionalSelector(SimpleSelector s, Condition c) { 47 simpleSelector = s; 48 condition = c; 49 } 50 51 55 public short getSelectorType() { 56 return SAC_CONDITIONAL_SELECTOR; 57 } 58 59 63 public SimpleSelector getSimpleSelector() { 64 return simpleSelector; 65 } 66 67 71 public Condition getCondition() { 72 return condition; 73 } 74 75 78 public String toString() { 79 return "" + simpleSelector + condition; 80 } 81 } 82 | Popular Tags |