Package org.iso_relax.verifier
Interface VerifierHandler
-
- All Superinterfaces:
org.xml.sax.ContentHandler
public interface VerifierHandler extends org.xml.sax.ContentHandlerSAX2 ContentHandler implementation that validates a document.An instance of this interface can be obtained through the
Verifier.getVerifierHandler()method.The implementation validates incoming SAX events. The application can check the result by calling the isValid method.
- Since:
- Feb. 23, 2001
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisValid()Checks if the document was valid.
-
-
-
Method Detail
-
isValid
boolean isValid() throws java.lang.IllegalStateExceptionChecks if the document was valid.This method can be only called after this handler receives the
endDocumentevent.If you need to know the error at an earlier moment, you should set an error handler to
Verifier.- Returns:
- true if the document was valid, false if not.
- Throws:
java.lang.IllegalStateException- If this method is called before the endDocument event is dispatched.
-
-