com.admc.jamama.dtd.impl.runtime
Interface SAXUnmarshallerHandler

All Known Implementing Classes:
SAXUnmarshallerHandlerImpl, ValidatingUnmarshaller

public interface SAXUnmarshallerHandler

Unified event handler that processes both the SAX events and error events.


Method Summary
 void handleEvent(ValidationEvent event, boolean canRecover)
          Reports an error to the user, and asks if s/he wants to recover.
 

Method Detail

handleEvent

public void handleEvent(ValidationEvent event,
                        boolean canRecover)
                 throws org.xml.sax.SAXException
Reports an error to the user, and asks if s/he wants to recover. If the canRecover flag is false, regardless of the client instruction, an exception will be thrown. Only if the flag is true and the user wants to recover from an error, the method returns normally. The thrown exception will be catched by the unmarshaller.

Throws:
org.xml.sax.SAXException