Package com.helger.xml.transform
Class CollectingTransformErrorListener
- java.lang.Object
-
- com.helger.xml.transform.AbstractTransformErrorListener
-
- com.helger.xml.transform.CollectingTransformErrorListener
-
- All Implemented Interfaces:
ITransformErrorListener,Serializable,ErrorListener
@ThreadSafe public class CollectingTransformErrorListener extends AbstractTransformErrorListener
This implementation ofErrorListenersaves all occurred warnings/errors/fatals in a list for later evaluation.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected com.helger.commons.concurrent.SimpleReadWriteLockm_aRWLock
-
Constructor Summary
Constructors Constructor Description CollectingTransformErrorListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.helger.commons.state.EChangeclearResourceErrors()Clear all currently stored errors.com.helger.commons.error.list.ErrorListgetErrorList()protected voidinternalLog(com.helger.commons.error.IError aResError)Handle the passed resource error.StringtoString()-
Methods inherited from class com.helger.xml.transform.AbstractTransformErrorListener
error, fatalError, warning
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.xml.transform.ITransformErrorListener
andThen
-
-
-
-
Method Detail
-
internalLog
protected void internalLog(@Nonnull com.helger.commons.error.IError aResError)
Description copied from class:AbstractTransformErrorListenerHandle the passed resource error.- Specified by:
internalLogin classAbstractTransformErrorListener- Parameters:
aResError- The resource error to be handled. Nevernull.
-
getErrorList
@Nonnull @ReturnsMutableCopy public com.helger.commons.error.list.ErrorList getErrorList()
-
clearResourceErrors
@Nonnull public com.helger.commons.state.EChange clearResourceErrors()
Clear all currently stored errors.- Returns:
EChange.CHANGEDif at least one item was cleared.
-
toString
public String toString()
- Overrides:
toStringin classAbstractTransformErrorListener
-
-