@ThreadSafe public class CollectingValidationEventHandler extends AbstractValidationEventHandler implements IHasResourceErrorGroup
ValidationEventHandler
interface. It collects all events that occurred!| Modifier and Type | Field and Description |
|---|---|
protected ReadWriteLock |
m_aRWLock |
| Constructor and Description |
|---|
CollectingValidationEventHandler() |
CollectingValidationEventHandler(ValidationEventHandler aOrigHandler) |
| Modifier and Type | Method and Description |
|---|---|
EChange |
clearResourceErrors()
Clear all currently stored errors.
|
IResourceErrorGroup |
getResourceErrors() |
protected void |
onEvent(IResourceError aEvent) |
String |
toString() |
continueProcessing, getErrorLevel, getLocationResourceID, getWrappedHandler, handleEventprotected final ReadWriteLock m_aRWLock
public CollectingValidationEventHandler()
public CollectingValidationEventHandler(@Nullable ValidationEventHandler aOrigHandler)
protected void onEvent(@Nonnull IResourceError aEvent)
onEvent in class AbstractValidationEventHandler@Nonnull @ReturnsMutableCopy public IResourceErrorGroup getResourceErrors()
getResourceErrors in interface IHasResourceErrorGroupnull resource error groups@Nonnull public EChange clearResourceErrors()
EChange.CHANGED if at least one item was cleared.public String toString()
toString in class AbstractValidationEventHandlerCopyright © 2014–2015 Philip Helger. All rights reserved.