public class XMLValidationErrorHandler extends Object implements ErrorHandler
| Constructor and Description |
|---|
XMLValidationErrorHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException exception)
Receive notification of a recoverable error.
|
void |
fatalError(IOException exception)
This is a extension method to the #fatalError(SAXParseException) method
to allow the handling of IOExceptions.
|
void |
fatalError(SAXParseException exception)
Receive notification of a non-recoverable error.
|
List<String> |
getErrorsAsList()
Returns the errors as a list.
|
String |
getErrorsFormattedAsHTML()
Returns the errors formatted as HTML.
|
String |
getErrorsFormattedAsPlainText()
Returns the errors formatted as plain text.
|
boolean |
noErrors()
Returns true of there were no errors.
|
void |
warning(SAXParseException exception)
Receive notification of a warning.
|
public boolean noErrors()
public String getErrorsFormattedAsPlainText()
public String getErrorsFormattedAsHTML()
public List<String> getErrorsAsList()
public void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlerexception - The error information encapsulated in a SAX parse
exception.SAXException - Any SAX exception, possibly wrapping
another exception.SAXParseExceptionpublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerexception - The error information encapsulated in a SAX parse
exception.SAXException - Any SAX exception, possibly wrapping
another exception.SAXParseExceptionpublic void fatalError(IOException exception)
exception - the IOExceptionpublic void warning(SAXParseException exception) throws SAXException
warning in interface ErrorHandlerexception - The warning information encapsulated in a SAX parse
exception.SAXException - Any SAX exception, possibly wrapping
another exception.SAXParseExceptionCopyright © 2016. All rights reserved.