|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An instance of ValidationEventHandler
allows
to customize the reply to instances of
ValidationEvent
. By default, there is
a standard ValidationEventHandler
, converting
errors and fatal errors in Exceptions.
The JAXB user creates instances of ValidationEventHandler
and registers them with the Marshaller
, Unmarshaller
,
or Validator
. The JAXB provider is required not to throw
exceptions directly, but to convert all detected problems into events,
which are fired on the ValidationEventHandler
.
Marshaller
,
Unmarshaller
,
ValidationEvent
Method Summary | |
boolean |
handleEvent(ValidationEvent pEvent)
The handleEvent method is invoked by the
JAXB provider, if a problem was found. |
Method Detail |
public boolean handleEvent(ValidationEvent pEvent)
The handleEvent
method is invoked by the
JAXB provider, if a problem was found. The events
ValidationEventLocator
may be
used to locate the source of the problem.
pEvent
- The event being reported to the JAXB user.
java.lang.IllegalArgumentException
- The parameter is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |