Package com.helger.jaxb.validation
Class WrappedCollectingValidationEventHandler
java.lang.Object
com.helger.jaxb.validation.AbstractValidationEventHandler
com.helger.jaxb.validation.WrappedCollectingValidationEventHandler
- All Implemented Interfaces:
IValidationEventHandler,jakarta.xml.bind.ValidationEventHandler
@NotThreadSafe
public class WrappedCollectingValidationEventHandler
extends AbstractValidationEventHandler
An implementation of the JAXB
ValidationEventHandler
interface. It collects all events that occurred!- Since:
- 8.5.1
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedCollectingValidationEventHandler(com.helger.commons.error.list.ErrorList aErrorList) -
Method Summary
Methods inherited from class com.helger.jaxb.validation.AbstractValidationEventHandler
continueProcessing, getErrorFieldName, getErrorLevel, getLocationResourceID, handleEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.jaxb.validation.IValidationEventHandler
andThen
-
Constructor Details
-
WrappedCollectingValidationEventHandler
public WrappedCollectingValidationEventHandler(@Nonnull com.helger.commons.error.list.ErrorList aErrorList)
-
-
Method Details
-
wrappedErrorList
- Returns:
- The error list object passed in the constructor. Never
null.
-
onEvent
Description copied from class:AbstractValidationEventHandlerCallback method invoked when an error occurs.- Specified by:
onEventin classAbstractValidationEventHandler- Parameters:
aEvent- The occurred error.
-
toString
- Overrides:
toStringin classAbstractValidationEventHandler
-