org.apache.tools.ant.taskdefs.optional
Class XMLValidateTask.ValidatorErrorHandler
java.lang.Object
org.apache.tools.ant.taskdefs.optional.XMLValidateTask.ValidatorErrorHandler
- XMLValidateTask
- ErrorHandler
protected class XMLValidateTask.ValidatorErrorHandler
extends java.lang.Object
implements ErrorHandler
ValidatorErrorHandler role :
- log SAX parse exceptions,
- remember if an error occurred
void | error(SAXParseException exception) - receive notification of a recoverable error
|
void | fatalError(SAXParseException exception) - record a fatal error
|
boolean | getFailure() - did an error happen during last parsing ?
|
void | init(File file) - initialises the class
|
void | warning(SAXParseException exception) - receive notification of a warning
|
currentFile
protected File currentFile
failed
protected boolean failed
lastErrorMessage
protected String lastErrorMessage
error
public void error(SAXParseException exception)
receive notification of a recoverable error
fatalError
public void fatalError(SAXParseException exception)
record a fatal error
exception
- the fatal error
getFailure
public boolean getFailure()
did an error happen during last parsing ?
- did an error happen during last parsing ?
init
public void init(File file)
initialises the class
warning
public void warning(SAXParseException exception)
receive notification of a warning
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.