Class ConsoleErrorReporter

  • All Implemented Interfaces:
    com.sun.tools.xjc.api.ErrorListener, com.sun.xml.bind.api.ErrorListener, ErrorHandler

    public class ConsoleErrorReporter
    extends ErrorReceiver
    • Constructor Detail

      • ConsoleErrorReporter

        public ConsoleErrorReporter​(PrintStream stream)
      • ConsoleErrorReporter

        public ConsoleErrorReporter​(OutputStream outputStream)
    • Method Detail

      • hasError

        public boolean hasError()
      • error

        public void error​(SAXParseException e)
        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 e)
        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
      • warning

        public void warning​(SAXParseException e)
        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
      • info

        public void info​(SAXParseException e)
        Used to report possibly verbose information that can be safely ignored.
        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
      • enableDebugging

        public void enableDebugging()