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.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)
|
Method Summary |
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
boolean |
hadError()
|
void |
info(org.xml.sax.SAXParseException exception)
Reports verbose messages to users. |
void |
setErrorReceiver(ErrorListener handler)
|
void |
warning(org.xml.sax.SAXParseException exception)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorReceiverFilter
public ErrorReceiverFilter()
ErrorReceiverFilter
public ErrorReceiverFilter(ErrorListener h)
setErrorReceiver
public void setErrorReceiver(ErrorListener handler)
hadError
public final boolean hadError()
info
public void info(org.xml.sax.SAXParseException exception)
- Description copied from class:
ErrorReceiver
- Reports 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:
info in interface ErrorListener- Specified by:
info in class ErrorReceiver
warning
public void warning(org.xml.sax.SAXParseException exception)
- Specified by:
warning in interface ErrorListener- Specified by:
warning in interface org.xml.sax.ErrorHandler- Specified by:
warning in class ErrorReceiver
error
public void error(org.xml.sax.SAXParseException exception)
- Specified by:
error in interface ErrorListener- Specified by:
error in interface org.xml.sax.ErrorHandler- Specified by:
error in class ErrorReceiver
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
- Specified by:
fatalError in interface ErrorListener- Specified by:
fatalError in interface org.xml.sax.ErrorHandler- Specified by:
fatalError in class ErrorReceiver
Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.