@NotThreadSafe public abstract class AbstractValidationEventHandler extends Object implements ValidationEventHandler
ValidationEventHandler
interface.| Constructor and Description |
|---|
AbstractValidationEventHandler()
Constructor not encapsulating any existing handler.
|
AbstractValidationEventHandler(ValidationEventHandler aWrappedHandler)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
continueProcessing(EErrorLevel eErrorLevel)
Should the processing be continued?
|
protected EErrorLevel |
getErrorLevel(int nSeverity)
Get the error level matching the passed JAXB severity.
|
protected String |
getLocationResourceID(ValidationEventLocator aLocator) |
ValidationEventHandler |
getWrappedHandler() |
boolean |
handleEvent(ValidationEvent aEvent) |
protected abstract void |
onEvent(IResourceError aEvent) |
String |
toString() |
public AbstractValidationEventHandler()
public AbstractValidationEventHandler(@Nullable ValidationEventHandler aWrappedHandler)
aWrappedHandler - Optional validation event handler to be invoked after this handler.
May be null.@Nullable public final ValidationEventHandler getWrappedHandler()
@Nonnull @OverrideOnDemand protected EErrorLevel getErrorLevel(int nSeverity)
nSeverity - The JAXB severity.EErrorLevel. Never null.@Nullable @OverrideOnDemand protected String getLocationResourceID(@Nullable ValidationEventLocator aLocator)
protected abstract void onEvent(@Nonnull IResourceError aEvent)
@OverrideOnDemand protected boolean continueProcessing(@Nonnull EErrorLevel eErrorLevel)
eErrorLevel - 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 © 2006–2015 phloc systems. All rights reserved.