Package org.dlese.dpc.xml.schema
Class XMLValidator.MyErrorHandler
java.lang.Object
org.dlese.dpc.xml.schema.XMLValidator.MyErrorHandler
- All Implemented Interfaces:
ErrorHandler
- Enclosing class:
XMLValidator
Error Handler to store validation messages, and compile them into a string
buffer as a report.
- Version:
- $Id: XMLValidator.java,v 1.4 2009/03/20 23:34:01 jweather Exp $
- Author:
- Jonathan Ostwald
-
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException exc) DESCRIPTIONvoidDESCRIPTIONbooleanDetermines whether the parser found any validation errors.booleanDetermines whether the parser found any validation warnings.voidwarning(SAXParseException exc) DESCRIPTION
-
Method Details
-
error
DESCRIPTION- Specified by:
errorin interfaceErrorHandler- Parameters:
exc- DESCRIPTION
-
hasErrors
public boolean hasErrors()Determines whether the parser found any validation errors.- Returns:
- True if errors were found, else false.
-
hasWarnings
public boolean hasWarnings()Determines whether the parser found any validation warnings.- Returns:
- True if warnings were found, else false.
-
fatalError
DESCRIPTION- Specified by:
fatalErrorin interfaceErrorHandler- Parameters:
exc- DESCRIPTION
-
warning
DESCRIPTION- Specified by:
warningin interfaceErrorHandler- Parameters:
exc- DESCRIPTION
-