Class XMLValidateTask.ValidatorErrorHandler
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.optional.XMLValidateTask.ValidatorErrorHandler
 
- 
- All Implemented Interfaces:
- org.xml.sax.ErrorHandler
 - Enclosing class:
- XMLValidateTask
 
 protected class XMLValidateTask.ValidatorErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandlerValidatorErrorHandler role :- log SAX parse exceptions,
- remember if an error occurred
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.io.FilecurrentFileprotected booleanfailedprotected java.lang.StringlastErrorMessage
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedValidatorErrorHandler()
 - 
Method SummaryModifier and Type Method Description voiderror(org.xml.sax.SAXParseException exception)receive notification of a recoverable errorvoidfatalError(org.xml.sax.SAXParseException exception)record a fatal errorbooleangetFailure()did an error happen during last parsing ?voidinit(java.io.File file)initialises the classvoidwarning(org.xml.sax.SAXParseException exception)receive notification of a warning
 
- 
- 
- 
Method Detail- 
initpublic void init(java.io.File file) initialises the class- Parameters:
- file- file used
 
 - 
getFailurepublic boolean getFailure() did an error happen during last parsing ?- Returns:
- did an error happen during last parsing ?
 
 - 
fatalErrorpublic void fatalError(org.xml.sax.SAXParseException exception) record a fatal error- Specified by:
- fatalErrorin interface- org.xml.sax.ErrorHandler
- Parameters:
- exception- the fatal error
 
 - 
errorpublic void error(org.xml.sax.SAXParseException exception) receive notification of a recoverable error- Specified by:
- errorin interface- org.xml.sax.ErrorHandler
- Parameters:
- exception- the error
 
 - 
warningpublic void warning(org.xml.sax.SAXParseException exception) receive notification of a warning- Specified by:
- warningin interface- org.xml.sax.ErrorHandler
- Parameters:
- exception- the warning
 
 
- 
 
-