1 12 package org.w3c.css.sac; 13 14 import java.io.IOException ; 15 import java.util.Locale ; 16 17 38 public interface Parser { 39 40 55 public void setLocale(Locale locale) throws CSSException; 56 57 72 public void setDocumentHandler(DocumentHandler handler); 73 74 public void setSelectorFactory(SelectorFactory selectorFactory); 75 public void setConditionFactory(ConditionFactory conditionFactory); 76 77 93 public void setErrorHandler(ErrorHandler handler); 94 95 120 public void parseStyleSheet(InputSource source) 121 throws CSSException, IOException ; 122 123 124 145 public void parseStyleSheet(String uri) throws CSSException, IOException ; 146 147 157 public void parseStyleDeclaration(InputSource source) 158 throws CSSException, IOException ; 159 160 161 170 public void parseRule(InputSource source) throws CSSException, IOException ; 171 172 179 public String getParserVersion(); 180 181 191 public SelectorList parseSelectors(InputSource source) 192 throws CSSException, IOException ; 193 194 195 205 public LexicalUnit parsePropertyValue(InputSource source) 206 throws CSSException, IOException ; 207 208 209 219 public boolean parsePriority(InputSource source) 220 throws CSSException, IOException ; 221 } 222 | Popular Tags |