org.eclipse.xsd.util
Class DefaultErrorHandler

java.lang.Object
  extended byorg.eclipse.xsd.util.DefaultErrorHandler
All Implemented Interfaces:
ErrorHandler

public class DefaultErrorHandler
extends Object
implements ErrorHandler

This helper class provides a default implementation for SAX ErrorHandler.


Field Summary
protected  List xsdDiagnostics
           
protected  XSDFactory xsdFactory
           
 
Constructor Summary
DefaultErrorHandler()
           
 
Method Summary
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
 Collection getDiagnostics()
           
 void warning(SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xsdDiagnostics

protected List xsdDiagnostics

xsdFactory

protected XSDFactory xsdFactory
Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Method Detail

fatalError

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

error

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

warning

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

getDiagnostics

public Collection getDiagnostics()

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.