@NotThreadSafe public abstract class AbstractValidationEventHandler extends Object implements IValidationEventHandler
ValidationEventHandler
interface.| Constructor and Description |
|---|
AbstractValidationEventHandler()
Constructor not encapsulating any existing handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
continueProcessing(com.helger.commons.error.level.IErrorLevel aErrorLevel)
Should the processing be continued?
|
protected String |
getErrorFieldName(ValidationEventLocator aLocator) |
protected com.helger.commons.error.level.IErrorLevel |
getErrorLevel(int nSeverity)
Get the error level matching the passed JAXB severity.
|
protected String |
getLocationResourceID(ValidationEventLocator aLocator) |
boolean |
handleEvent(ValidationEvent aEvent) |
protected abstract void |
onEvent(com.helger.commons.error.IError aError)
Callback method invoked when an error occurs.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitand, andThenpublic AbstractValidationEventHandler()
@Nonnull @OverrideOnDemand protected com.helger.commons.error.level.IErrorLevel getErrorLevel(int nSeverity)
nSeverity - The JAXB severity.IErrorLevel. Never null.@Nullable @OverrideOnDemand protected String getLocationResourceID(@Nullable ValidationEventLocator aLocator)
@Nullable @OverrideOnDemand protected String getErrorFieldName(@Nullable ValidationEventLocator aLocator)
@OverrideOnDemand protected abstract void onEvent(@Nonnull com.helger.commons.error.IError aError)
aError - The occurred error.@OverrideOnDemand protected boolean continueProcessing(@Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel)
aErrorLevel - The error level to be checked.true if processing should be continued,
false if processing should stop.public final boolean handleEvent(@Nonnull ValidationEvent aEvent)
handleEvent in interface ValidationEventHandlerCopyright © 2015–2021 Philip Helger. All rights reserved.