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 void
error(SAXParseException arg0)
void
fatalError(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.boolean
isValid()
Checks if the validation succeeded (no errors or warning received)void
warning(SAXParseException arg0)
-
Constructor Details
-
DSSErrorHandler
public DSSErrorHandler()
-
-
Method Details
-
error
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-
warning
- Specified by:
warning
in 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
SAXParseException
exceptions
-
getFatalErrors
Returns a list of fatal errors occurred during the validation process. An empty list of the validation succeeded.- Returns:
- a list of
SAXParseException
exceptions
-
getWarnings
Returns a list of warnings occurred during the validation process. An empty list of the validation succeeded.- Returns:
- a list of
SAXParseException
exceptions
-
isValid
public boolean isValid()Checks if the validation succeeded (no errors or warning received)- Returns:
- TRUE if validation succeed, FALSE otherwise
-