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,ErrorListener,org.xml.sax.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(org.xml.sax.SAXParseException exception)voidfatalError(org.xml.sax.SAXParseException exception)booleanhadError()voidinfo(org.xml.sax.SAXParseException exception)Reports verbose messages to users.voidsetErrorReceiver(ErrorListener handler)voidwarning(org.xml.sax.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(org.xml.sax.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 interfaceErrorListener- Specified by:
infoin classErrorReceiver
-
warning
public void warning(org.xml.sax.SAXParseException exception)
- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler- Specified by:
warningin interfaceErrorListener- Specified by:
warningin interfaceErrorListener- Specified by:
warningin classErrorReceiver
-
error
public void error(org.xml.sax.SAXParseException exception)
- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler- Specified by:
errorin interfaceErrorListener- Specified by:
errorin interfaceErrorListener- Specified by:
errorin classErrorReceiver
-
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Specified by:
fatalErrorin interfaceErrorListener- Specified by:
fatalErrorin interfaceErrorListener- Specified by:
fatalErrorin classErrorReceiver
-
-