Package com.sun.tools.xjc.util
Class ErrorReceiverFilter
- java.lang.Object
-
- com.sun.tools.xjc.ErrorReceiver
-
- com.sun.tools.xjc.util.ErrorReceiverFilter
-
- All Implemented Interfaces:
ErrorListener,com.sun.xml.bind.api.ErrorListener,ErrorHandler
public class ErrorReceiverFilter extends ErrorReceiver
Filter implementation of the ErrorReceiver. If an error is encountered, this filter sets a flag.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Constructor Summary
Constructors Constructor Description ErrorReceiverFilter()ErrorReceiverFilter(ErrorListener h)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(SAXParseException exception)voidfatalError(SAXParseException exception)booleanhadError()voidinfo(SAXParseException exception)Reports verbose messages to users.voidsetErrorReceiver(ErrorListener handler)voidwarning(SAXParseException exception)-
Methods inherited from class com.sun.tools.xjc.ErrorReceiver
debug, error, error, error, error, getLocationString, pollAbort, warning
-
-
-
-
Constructor Detail
-
ErrorReceiverFilter
public ErrorReceiverFilter()
-
ErrorReceiverFilter
public ErrorReceiverFilter(ErrorListener h)
-
-
Method Detail
-
setErrorReceiver
public void setErrorReceiver(ErrorListener handler)
-
hadError
public final boolean hadError()
-
info
public void info(SAXParseException exception)
Description copied from class:ErrorReceiverReports verbose messages to users. This method can be used to report additional non-essential messages. The implementation usually discards them unless some specific debug option is turned on.- Specified by:
infoin interfaceErrorListener- Specified by:
infoin interfacecom.sun.xml.bind.api.ErrorListener- Specified by:
infoin classErrorReceiver
-
warning
public void warning(SAXParseException exception)
- Specified by:
warningin interfaceErrorHandler- Specified by:
warningin interfaceErrorListener- Specified by:
warningin interfacecom.sun.xml.bind.api.ErrorListener- Specified by:
warningin classErrorReceiver
-
error
public void error(SAXParseException exception)
- Specified by:
errorin interfaceErrorHandler- Specified by:
errorin interfaceErrorListener- Specified by:
errorin interfacecom.sun.xml.bind.api.ErrorListener- Specified by:
errorin classErrorReceiver
-
fatalError
public void fatalError(SAXParseException exception)
- Specified by:
fatalErrorin interfaceErrorHandler- Specified by:
fatalErrorin interfaceErrorListener- Specified by:
fatalErrorin interfacecom.sun.xml.bind.api.ErrorListener- Specified by:
fatalErrorin classErrorReceiver
-
-