public class DefaultValidationEventHandler extends java.lang.Object implements ValidationEventHandler
Default implementation of a ValidationEventHandler.
Causes the validation to fail as soon as the first error or
fatal error is encountered.
This instance of ValidationEventHandler is
suitable for use of the unmarshallers or validators default event handler.
| Constructor and Description |
|---|
DefaultValidationEventHandler()
Creates a new instance of
DefaultValidationEventHandler. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleEvent(ValidationEvent event)
The
handleEvent method is invoked by the
JAXB provider, if a problem was found. |
public DefaultValidationEventHandler()
Creates a new instance of DefaultValidationEventHandler.
public boolean handleEvent(ValidationEvent event)
ValidationEventHandlerThe 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.
handleEvent in interface ValidationEventHandlerevent - The event being reported to the JAXB user.