Package eu.europa.esig.dss.jaxb
Class DSSErrorHandler
java.lang.Object
eu.europa.esig.dss.jaxb.DSSErrorHandler
- All Implemented Interfaces:
ErrorHandler
public class DSSErrorHandler extends Object implements ErrorHandler
The default
ErrorHandler used to collect the occurred during
the validation errors-
Constructor Summary
Constructors Constructor Description DSSErrorHandler() -
Method Summary
Modifier and Type Method Description voiderror(SAXParseException arg0)voidfatalError(SAXParseException arg0)List<SAXException>getErrors()Returns a list of errors occurred during the validation process.List<SAXException>getFatalErrors()Returns a list of fatal errors occurred during the validation process.List<SAXException>getWarnings()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()
-
-
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
-