Class XMLValidator.MyErrorHandler

java.lang.Object
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 Details

    • 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