DLESE Tools
v1.6.0

org.dlese.dpc.xml.schema
Class XMLValidator.MyErrorHandler

java.lang.Object
  extended by org.dlese.dpc.xml.schema.XMLValidator.MyErrorHandler
All Implemented Interfaces:
ErrorHandler
Enclosing class:
XMLValidator

public class XMLValidator.MyErrorHandler
extends Object
implements ErrorHandler

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
 void error(SAXParseException exc)
          DESCRIPTION
 void fatalError(SAXParseException exc)
          DESCRIPTION
 boolean hasErrors()
          Determines whether the parser found any validation errors.
 boolean hasWarnings()
          Determines whether the parser found any validation warnings.
 void warning(SAXParseException exc)
          DESCRIPTION
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

error

public void error(SAXParseException exc)
DESCRIPTION

Specified by:
error in interface ErrorHandler
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

public void fatalError(SAXParseException exc)
DESCRIPTION

Specified by:
fatalError in interface ErrorHandler
Parameters:
exc - DESCRIPTION

warning

public void warning(SAXParseException exc)
DESCRIPTION

Specified by:
warning in interface ErrorHandler
Parameters:
exc - DESCRIPTION

DLESE Tools
v1.6.0