1 3 9 10 package javax.xml.validation; 11 12 import org.w3c.dom.ls.LSResourceResolver ; 13 import org.xml.sax.ContentHandler ; 14 import org.xml.sax.ErrorHandler ; 15 import org.xml.sax.SAXNotRecognizedException ; 16 import org.xml.sax.SAXNotSupportedException ; 17 18 98 public abstract class ValidatorHandler implements ContentHandler { 99 100 111 protected ValidatorHandler() { 112 } 113 114 162 public abstract void setContentHandler(ContentHandler receiver); 163 164 176 public abstract ContentHandler getContentHandler(); 177 178 228 public abstract void setErrorHandler(ErrorHandler errorHandler); 229 230 241 public abstract ErrorHandler getErrorHandler(); 242 243 280 public abstract void setResourceResolver(LSResourceResolver resourceResolver); 281 282 293 public abstract LSResourceResolver getResourceResolver(); 294 295 314 public abstract TypeInfoProvider getTypeInfoProvider(); 315 316 317 340 public boolean getFeature(String name) throws SAXNotRecognizedException , SAXNotSupportedException { 341 if(name==null) 342 throw new NullPointerException (); 343 throw new SAXNotRecognizedException (name); 344 } 345 346 374 public void setFeature(String name, boolean value) throws SAXNotRecognizedException , SAXNotSupportedException { 375 if(name==null) 376 throw new NullPointerException (); 377 throw new SAXNotRecognizedException (name); 378 } 379 380 404 public void setProperty(String name, Object object) throws SAXNotRecognizedException , SAXNotSupportedException { 405 if(name==null) 406 throw new NullPointerException (); 407 throw new SAXNotRecognizedException (name); 408 } 409 410 436 public Object getProperty(String name) throws SAXNotRecognizedException , SAXNotSupportedException { 437 if(name==null) 438 throw new NullPointerException (); 439 throw new SAXNotRecognizedException (name); 440 } 441 } 442 | Popular Tags |