Package com.helger.xml.transform
Class CollectingTransformErrorListener
java.lang.Object
com.helger.xml.transform.AbstractTransformErrorListener
com.helger.xml.transform.CollectingTransformErrorListener
- All Implemented Interfaces:
ITransformErrorListener,ErrorListener
This implementation of
ErrorListener saves all
occurred warnings/errors/fatals in a list for later evaluation.- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.helger.commons.concurrent.SimpleReadWriteLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.helger.commons.state.EChangeClear all currently stored errors.com.helger.commons.error.list.ErrorListprotected voidinternalLog(com.helger.commons.error.IError aResError) Handle the passed resource error.toString()Methods inherited from class com.helger.xml.transform.AbstractTransformErrorListener
error, fatalError, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.xml.transform.ITransformErrorListener
andThen
-
Field Details
-
m_aRWLock
protected final com.helger.commons.concurrent.SimpleReadWriteLock m_aRWLock
-
-
Constructor Details
-
CollectingTransformErrorListener
public CollectingTransformErrorListener()
-
-
Method Details
-
internalLog
Description copied from class:AbstractTransformErrorListenerHandle the passed resource error.- Specified by:
internalLogin classAbstractTransformErrorListener- Parameters:
aResError- The resource error to be handled. Nevernull.
-
getErrorList
-
clearResourceErrors
Clear all currently stored errors.- Returns:
EChange.CHANGEDif at least one item was cleared.
-
toString
- Overrides:
toStringin classAbstractTransformErrorListener
-