Package eu.europa.esig.dss.xml.common
Class DSSErrorHandler
java.lang.Object
eu.europa.esig.dss.xml.common.DSSErrorHandler
- All Implemented Interfaces:
ErrorHandler
The default
ErrorHandler used to collect the occurred during
the validation errors-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException arg0) voidfatalError(SAXParseException arg0) Returns a list of errors occurred during the validation process.Returns a list of fatal errors occurred during the validation process.Returns a list of warnings occurred during the validation process.booleanisValid()Checks if the validation succeeded (no errors or warning received)voidwarning(SAXParseException arg0)
-
Constructor Details
-
DSSErrorHandler
public DSSErrorHandler()Default constructor initializing empty lists of messages
-
-
Method Details
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
getErrors
Returns a list of errors occurred during the validation process. An empty list of the validation succeeded.- Returns:
- a list of
SAXParseExceptionexceptions
-
getFatalErrors
Returns a list of fatal errors occurred during the validation process. An empty list of the validation succeeded.- Returns:
- a list of
SAXParseExceptionexceptions
-
getWarnings
Returns a list of warnings occurred during the validation process. An empty list of the validation succeeded.- Returns:
- a list of
SAXParseExceptionexceptions
-
isValid
public boolean isValid()Checks if the validation succeeded (no errors or warning received)- Returns:
- TRUE if validation succeed, FALSE otherwise
-