prev | table of contents | next |
The interface javax.xml.bind.ValidationEventHandler
is
quite simple. Implementing classes must provide a single method to
catch a ValidationEvent
as we've seen it in the previous
section.
boolean handleEvent( ValidationEvent event )To register, the
Unmarshaller
method setEventHandler
is called. If the calling object is implementing the event handler interface,
we might write:
Unmarshaller u = jc.createUnmarshaller(); u.setEventHandler( this );
prev | table of contents | next |