com.sun.msv.verifier.util
Class ErrorHandlerImpl

java.lang.Object
  |
  +--com.sun.msv.verifier.util.ErrorHandlerImpl
All Implemented Interfaces:
ErrorHandler

public class ErrorHandlerImpl
extends Object
implements ErrorHandler

default implementation of ErrorHandler. If an error is found, throw it to stop further validation. warnings are ignored.

Author:
Kohsuke KAWAGUCHI

Field Summary
static ErrorHandler theInstance
          the singleton instance of this object.
 
Constructor Summary
ErrorHandlerImpl()
           
 
Method Summary
 void error(SAXParseException error)
           
 void fatalError(SAXParseException error)
           
 void warning(SAXParseException warning)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theInstance

public static final ErrorHandler theInstance
the singleton instance of this object. This class doesn't have any internal state so
Constructor Detail

ErrorHandlerImpl

public ErrorHandlerImpl()
Method Detail

fatalError

public void fatalError(SAXParseException error)
                throws SAXParseException
Specified by:
fatalError in interface ErrorHandler

error

public void error(SAXParseException error)
           throws SAXParseException
Specified by:
error in interface ErrorHandler

warning

public void warning(SAXParseException warning)
Specified by:
warning in interface ErrorHandler