org.apache.tools.ant.taskdefs.optional

Class XMLValidateTask.ValidatorErrorHandler

Enclosing Class:
XMLValidateTask
Implemented Interfaces:
ErrorHandler

protected class XMLValidateTask.ValidatorErrorHandler
extends java.lang.Object
implements ErrorHandler

ValidatorErrorHandler role :

Field Summary

protected File
currentFile
protected boolean
failed
protected String
lastErrorMessage

Method Summary

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

Field Details

currentFile

protected File currentFile

failed

protected boolean failed

lastErrorMessage

protected String lastErrorMessage

Method Details

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.