Class AbstractCollectingPSErrorHandler
java.lang.Object
com.helger.schematron.pure.errorhandler.AbstractPSErrorHandler
com.helger.schematron.pure.errorhandler.AbstractCollectingPSErrorHandler
- All Implemented Interfaces:
com.helger.schematron.ISchematronErrorHandler,IPSErrorHandler
- Direct Known Subclasses:
CollectingPSErrorHandler,WrappedCollectingPSErrorHandler
Abstract collecting
IPSErrorHandler that collects all error messages
in an error list.- Since:
- 4.2.1
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractCollectingPSErrorHandler(com.helger.commons.error.list.ErrorList aErrorList, IPSErrorHandler aNestedErrorHandler) -
Method Summary
Modifier and TypeMethodDescriptioncom.helger.commons.state.EChangeClear all currently stored errors.com.helger.commons.error.list.IErrorListcom.helger.commons.error.list.IErrorListcom.helger.commons.error.list.IErrorListprotected voidhandleInternally(com.helger.commons.error.IError aError) The internal method to handle warnings and errors.booleanisEmpty()toString()Methods inherited from class com.helger.schematron.pure.errorhandler.AbstractPSErrorHandler
getNestedErrorHandler, handleErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.schematron.pure.errorhandler.IPSErrorHandler
error
-
Constructor Details
-
AbstractCollectingPSErrorHandler
public AbstractCollectingPSErrorHandler(@Nonnull com.helger.commons.error.list.ErrorList aErrorList, @Nullable IPSErrorHandler aNestedErrorHandler)
-
-
Method Details
-
handleInternally
Description copied from class:AbstractPSErrorHandlerThe internal method to handle warnings and errors.- Specified by:
handleInternallyin classAbstractPSErrorHandler- Parameters:
aError- The structured error. May not benull.
-
getErrorList
-
getAllFailures
-
getAllErrors
-
clearResourceErrors
Clear all currently stored errors. This might be helpful, if the same error handler is used several times.- Returns:
EChange.CHANGEDif at least one item was cleared.
-
isEmpty
public boolean isEmpty()- Returns:
trueif no error is contained,falseif at least one error is contained.
-
toString
- Overrides:
toStringin classAbstractPSErrorHandler
-