protected class XMLValidateTask.ValidatorErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler
| Modifier and Type | Field and Description | 
|---|---|
| protected java.io.File | currentFile | 
| protected boolean | failed | 
| protected java.lang.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(java.io.File file)initialises the class | 
| void | warning(org.xml.sax.SAXParseException exception)receive notification of a warning | 
protected java.io.File currentFile
protected java.lang.String lastErrorMessage
protected boolean failed
public void init(java.io.File file)
file - file usedpublic boolean getFailure()
public void fatalError(org.xml.sax.SAXParseException exception)
fatalError in interface org.xml.sax.ErrorHandlerexception - the fatal errorpublic void error(org.xml.sax.SAXParseException exception)
error in interface org.xml.sax.ErrorHandlerexception - the errorpublic void warning(org.xml.sax.SAXParseException exception)
warning in interface org.xml.sax.ErrorHandlerexception - the warning