Class ErrorReceiverFilter

  • All Implemented Interfaces:
    com.sun.tools.xjc.api.ErrorListener, com.sun.xml.bind.api.ErrorListener, ErrorHandler
    Direct Known Subclasses:
    WsimportTool.Receiver

    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), Vivek Pandey
    • Constructor Detail

      • ErrorReceiverFilter

        public ErrorReceiverFilter()
      • ErrorReceiverFilter

        public ErrorReceiverFilter​(com.sun.tools.xjc.api.ErrorListener h)
    • Method Detail

      • 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

        public void info​(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 com.sun.tools.xjc.api.ErrorListener
        Specified by:
        info in interface com.sun.xml.bind.api.ErrorListener
        Specified by:
        info in class ErrorReceiver
      • warning

        public void warning​(SAXParseException exception)
        Specified by:
        warning in interface ErrorHandler
        Specified by:
        warning in interface com.sun.tools.xjc.api.ErrorListener
        Specified by:
        warning in interface com.sun.xml.bind.api.ErrorListener
        Specified by:
        warning in class ErrorReceiver
      • error

        public void error​(SAXParseException exception)
        Specified by:
        error in interface ErrorHandler
        Specified by:
        error in interface com.sun.tools.xjc.api.ErrorListener
        Specified by:
        error in interface com.sun.xml.bind.api.ErrorListener
        Specified by:
        error in class ErrorReceiver
      • fatalError

        public void fatalError​(SAXParseException exception)
        Specified by:
        fatalError in interface ErrorHandler
        Specified by:
        fatalError in interface com.sun.tools.xjc.api.ErrorListener
        Specified by:
        fatalError in interface com.sun.xml.bind.api.ErrorListener
        Specified by:
        fatalError in class ErrorReceiver