@ThreadSafe public class CollectingValidationEventHandler extends AbstractValidationEventHandler
ValidationEventHandler
interface. It collects all events that occurred!| Modifier and Type | Field and Description |
|---|---|
protected com.helger.commons.concurrent.SimpleReadWriteLock |
m_aRWLock |
| Constructor and Description |
|---|
CollectingValidationEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.state.EChange |
clearResourceErrors()
Clear all currently stored errors.
|
void |
forEachResourceError(Consumer<? super com.helger.commons.error.IError> aConsumer)
Call the provided consumer for all contained resource errors.
|
com.helger.commons.error.list.IErrorList |
getErrorList() |
protected void |
onEvent(com.helger.commons.error.IError aEvent)
Callback method invoked when an error occurs.
|
String |
toString() |
continueProcessing, getErrorFieldName, getErrorLevel, getLocationResourceID, handleEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitand, andThenprotected void onEvent(@Nonnull com.helger.commons.error.IError aEvent)
AbstractValidationEventHandleronEvent in class AbstractValidationEventHandleraEvent - The occurred error.@Nonnull @ReturnsMutableCopy public com.helger.commons.error.list.IErrorList getErrorList()
public void forEachResourceError(@Nonnull Consumer<? super com.helger.commons.error.IError> aConsumer)
aConsumer - The consumer to be invoked. May not be null. May only
perform reading actions!@Nonnull public com.helger.commons.state.EChange clearResourceErrors()
EChange.CHANGED if at least one item was cleared.public String toString()
toString in class AbstractValidationEventHandlerCopyright © 2015–2021 Philip Helger. All rights reserved.