public class XmlValidationHandler extends Object implements ValidationEventHandler
ValidationEventHandler
that handles validation events during XML
processing.Constructor and Description |
---|
XmlValidationHandler() |
public boolean handleEvent(ValidationEvent event)
ValidationEventLocator
embedded in it that
indicates where the error or warning occurred.
If an unchecked runtime exception is thrown from this method, the JAXB provider will treat it as if the method returned false and interrupt the current unmarshal, validate, or marshal operation.
handleEvent
in interface ValidationEventHandler
event
- the encapsulated validation event information. It is a
provider error if this parameter is null.IllegalArgumentException
- if the event object is null.Copyright © 2015 OpenEstate. All rights reserved.