net.sf.jour.config.impl.runtime
Interface SAXUnmarshallerHandler

All Superinterfaces:
org.xml.sax.ContentHandler, javax.xml.bind.UnmarshallerHandler
All Known Implementing Classes:
InterningUnmarshallerHandler, SAXUnmarshallerHandlerImpl, ValidatingUnmarshaller

public interface SAXUnmarshallerHandler
extends javax.xml.bind.UnmarshallerHandler

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

This interface refines ContentHandler as follows:

  1. element names and attribute names must be String.intern()ed.
  2. namespace prefix and uris must be String.intern()ed.


Method Summary
 void handleEvent(javax.xml.bind.ValidationEvent event, boolean canRecover)
          Reports an error to the user, and asks if s/he wants to recover.
 
Methods inherited from interface javax.xml.bind.UnmarshallerHandler
getResult
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 

Method Detail

handleEvent

public void handleEvent(javax.xml.bind.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


Copyright © 2004 sourceforge. All Rights Reserved.