Package com.sun.tools.ws.wscompile
Class ErrorReceiverFilter
java.lang.Object
com.sun.tools.ws.wscompile.ErrorReceiver
com.sun.tools.ws.wscompile.ErrorReceiverFilter
- All Implemented Interfaces:
com.sun.tools.xjc.api.ErrorListener,org.glassfish.jaxb.core.api.ErrorListener,ErrorHandler
- Direct Known Subclasses:
WsimportTool.Receiver
Filter implementation of the ErrorReceiver.
If an error is encountered, this filter sets a flag.
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com), Vivek Pandey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddebug(SAXParseException exception) voiderror(SAXParseException exception) voidfatalError(SAXParseException exception) final booleanhadError()voidinfo(SAXParseException exception) Reports verbose messages to users.voidreset()Resets the error state its currently in.voidsetErrorReceiver(com.sun.tools.xjc.api.ErrorListener handler) voidwarning(SAXParseException exception) Methods inherited from class com.sun.tools.ws.wscompile.ErrorReceiver
debug, error, error, error, error, getLocationString, pollAbort, warning
-
Constructor Details
-
ErrorReceiverFilter
public ErrorReceiverFilter() -
ErrorReceiverFilter
public ErrorReceiverFilter(com.sun.tools.xjc.api.ErrorListener h)
-
-
Method Details
-
setErrorReceiver
public void setErrorReceiver(com.sun.tools.xjc.api.ErrorListener handler) -
hadError
public final boolean hadError() -
reset
public void reset()Resets the error state its currently in. It allows to ignore the error reported by any sub-system. -
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 interfacecom.sun.tools.xjc.api.ErrorListener- Specified by:
infoin interfaceorg.glassfish.jaxb.core.api.ErrorListener- Specified by:
infoin classErrorReceiver
-
debug
- Specified by:
debugin classErrorReceiver
-
warning
- Specified by:
warningin interfaceErrorHandler- Specified by:
warningin interfacecom.sun.tools.xjc.api.ErrorListener- Specified by:
warningin interfaceorg.glassfish.jaxb.core.api.ErrorListener- Specified by:
warningin classErrorReceiver
-
error
- Specified by:
errorin interfaceErrorHandler- Specified by:
errorin interfacecom.sun.tools.xjc.api.ErrorListener- Specified by:
errorin interfaceorg.glassfish.jaxb.core.api.ErrorListener- Specified by:
errorin classErrorReceiver
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Specified by:
fatalErrorin interfacecom.sun.tools.xjc.api.ErrorListener- Specified by:
fatalErrorin interfaceorg.glassfish.jaxb.core.api.ErrorListener- Specified by:
fatalErrorin classErrorReceiver
-