@ThreadSafe public class CollectingSAXErrorHandler extends AbstractSAXErrorHandler
| Modifier and Type | Field and Description |
|---|---|
protected com.helger.commons.error.list.ErrorList |
m_aErrors |
protected com.helger.commons.concurrent.SimpleReadWriteLock |
m_aRWLock |
| Modifier | Constructor and Description |
|---|---|
|
CollectingSAXErrorHandler() |
protected |
CollectingSAXErrorHandler(Supplier<com.helger.commons.error.list.ErrorList> aErrorListProvider)
Protected constructor to use a different
ErrorList - e.g. for
existing error lists. |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.state.EChange |
clearResourceErrors()
Clear all currently stored errors.
|
boolean |
containsAtLeastOneError() |
com.helger.commons.error.list.IErrorList |
getErrorList() |
protected void |
internalLog(com.helger.commons.error.level.IErrorLevel aErrorLevel,
SAXParseException aException) |
String |
toString() |
error, fatalError, getSaxParseError, warningclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitandThenprotected final com.helger.commons.concurrent.SimpleReadWriteLock m_aRWLock
protected final com.helger.commons.error.list.ErrorList m_aErrors
public CollectingSAXErrorHandler()
protected CollectingSAXErrorHandler(@Nonnull Supplier<com.helger.commons.error.list.ErrorList> aErrorListProvider)
ErrorList - e.g. for
existing error lists.aErrorListProvider - The error list provider. May not be null.protected void internalLog(@Nonnull com.helger.commons.error.level.IErrorLevel aErrorLevel, SAXParseException aException)
internalLog in class AbstractSAXErrorHandler@Nonnull @ReturnsMutableCopy public com.helger.commons.error.list.IErrorList getErrorList()
public boolean containsAtLeastOneError()
@Nonnull public com.helger.commons.state.EChange clearResourceErrors()
EChange.CHANGED if at least one item was cleared.public String toString()
toString in class AbstractSAXErrorHandlerCopyright © 2014–2020 Philip Helger. All rights reserved.