protected class XMLValidateTask.ValidatorErrorHandler extends Object implements org.xml.sax.ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
protected File |
currentFile |
protected boolean |
failed |
protected String |
lastErrorMessage |
| Modifier | Constructor and Description |
|---|---|
protected |
ValidatorErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(org.xml.sax.SAXParseException exception)
receive notification of a recoverable error
|
void |
fatalError(org.xml.sax.SAXParseException exception)
record a fatal error
|
boolean |
getFailure()
did an error happen during last parsing ?
|
void |
init(File file)
initialises the class
|
void |
warning(org.xml.sax.SAXParseException exception)
receive notification of a warning
|
protected File currentFile
protected boolean failed
protected String lastErrorMessage
public void error(org.xml.sax.SAXParseException exception)
error in interface org.xml.sax.ErrorHandlerexception - the errorpublic void fatalError(org.xml.sax.SAXParseException exception)
fatalError in interface org.xml.sax.ErrorHandlerexception - the fatal errorpublic boolean getFailure()
public void init(File file)
file - file usedpublic void warning(org.xml.sax.SAXParseException exception)
warning in interface org.xml.sax.ErrorHandlerexception - the warning