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,org.glassfish.jaxb.core.api.ErrorListener,ErrorHandler
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 -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException exception) voidfatalError(SAXParseException exception) final 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 Details
-
ErrorReceiverFilter
public ErrorReceiverFilter() -
ErrorReceiverFilter
-
-
Method Details
-
setErrorReceiver
-
hadError
public final boolean hadError() -
info
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 interfaceorg.glassfish.jaxb.core.api.ErrorListener- Specified by:
infoin classErrorReceiver
-
warning
- Specified by:
warningin interfaceErrorHandler- Specified by:
warningin interfaceErrorListener- Specified by:
warningin interfaceorg.glassfish.jaxb.core.api.ErrorListener- Specified by:
warningin classErrorReceiver
-
error
- Specified by:
errorin interfaceErrorHandler- Specified by:
errorin interfaceErrorListener- Specified by:
errorin interfaceorg.glassfish.jaxb.core.api.ErrorListener- Specified by:
errorin classErrorReceiver
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Specified by:
fatalErrorin interfaceErrorListener- Specified by:
fatalErrorin interfaceorg.glassfish.jaxb.core.api.ErrorListener- Specified by:
fatalErrorin classErrorReceiver
-