| 1 | package com.thaiopensource.validation; |
| 2 | |
| 3 | import org.xml.sax.DTDHandler; |
| 4 | |
| 5 | import javax.xml.validation.ValidatorHandler; |
| 6 | |
| 7 | /** |
| 8 | * Extension to ValidatorHandler. This implements DTDHandler because some schema language |
| 9 | * datatypes need to know whether a name is the name of a notation or an unparsed entity. |
| 10 | * It also provides a reset() method. |
| 11 | */ |
| 12 | public abstract class ValidatorHandler2 extends ValidatorHandler implements DTDHandler { |
| 13 | abstract public void reset(); |
| 14 | |
| 15 | /** |
| 16 | * Sets the DTD handler that receives the validation result. |
| 17 | * @param dtdHandler the DTD handler |
| 18 | */ |
| 19 | abstract public void setDTDHandler(DTDHandler dtdHandler); |
| 20 | |
| 21 | /** |
| 22 | * Gets the DTD handler that receives the validation result. |
| 23 | * @return the DTDHandler |
| 24 | */ |
| 25 | abstract public DTDHandler getDTDHandler(); |
| 26 | } |