Class WsimportListener

java.lang.Object
com.sun.tools.ws.wscompile.WsimportListener
All Implemented Interfaces:
com.sun.tools.xjc.api.ErrorListener, org.glassfish.jaxb.core.api.ErrorListener, ErrorHandler
Direct Known Subclasses:
WsimportTool.Listener

public class WsimportListener extends Object implements com.sun.tools.xjc.api.ErrorListener
Author:
Vivek Pandey
  • Constructor Details

    • WsimportListener

      public WsimportListener()
      Default constructor.
  • Method Details

    • generatedFile

      public void generatedFile(String fileName)
      Called for each file generated by wsimport or wsgen.

      The file name includes the path portions that correspond with the package name.

      When generating files into a directory, file names will be relative to the output directory.

      Parameters:
      fileName - file names like "org/acme/foo/Foo.java"
    • message

      public void message(String msg)
      Other miscellaneous messages that do not have structures will be reported through this method.

      This method is used like PrintStream.println(String). The callee is expected to add '\n'.

    • 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 org.glassfish.jaxb.core.api.ErrorListener
    • 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 org.glassfish.jaxb.core.api.ErrorListener
    • 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 org.glassfish.jaxb.core.api.ErrorListener
    • info

      public void info(SAXParseException exception)
      Specified by:
      info in interface com.sun.tools.xjc.api.ErrorListener
      Specified by:
      info in interface org.glassfish.jaxb.core.api.ErrorListener
    • debug

      public void debug(SAXParseException exception)
    • isCanceled

      public boolean isCanceled()
      wsimport will periodically invoke this method to see if it should cancel a compilation.
      Returns:
      true if the WsimportListener wants to abort the processing.
      Since:
      2.1