org.apache.tools.ant.taskdefs.optional

Class XMLValidateTask.ValidatorErrorHandler

protected class XMLValidateTask.ValidatorErrorHandler extends Object implements ErrorHandler

ValidatorErrorHandler role :
Field Summary
protected FilecurrentFile
protected booleanfailed
protected StringlastErrorMessage
Method Summary
voiderror(SAXParseException exception)
receive notification of a recoverable error
voidfatalError(SAXParseException exception)
record a fatal error
booleangetFailure()
did an error happen during last parsing ?
voidinit(File file)
initialises the class
voidwarning(SAXParseException exception)
receive notification of a warning

Field Detail

currentFile

protected File currentFile

failed

protected boolean failed

lastErrorMessage

protected String lastErrorMessage

Method Detail

error

public void error(SAXParseException exception)
receive notification of a recoverable error

Parameters: exception the error

fatalError

public void fatalError(SAXParseException exception)
record a fatal error

Parameters: exception the fatal error

getFailure

public boolean getFailure()
did an error happen during last parsing ?

Returns: did an error happen during last parsing ?

init

public void init(File file)
initialises the class

Parameters: file file used

warning

public void warning(SAXParseException exception)
receive notification of a warning

Parameters: exception the warning

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.