com.sun.tools.ws.wscompile
Class WsimportListener

java.lang.Object
  extended by com.sun.tools.ws.wscompile.WsimportListener
All Implemented Interfaces:
ErrorListener, ErrorHandler
Direct Known Subclasses:
WsgenTool.Listener

public class WsimportListener
extends Object
implements ErrorListener


Constructor Summary
WsimportListener()
           
 
Method Summary
 void debug(SAXParseException exception)
           
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
 void generatedFile(String fileName)
          Called for each file generated by wsimport or wsgen.
 void info(SAXParseException exception)
           
 boolean isCanceled()
          wsimport will periodically invoke this method to see if it should cancel a compilation.
 void message(String msg)
          Other miscellenous messages that do not have structures will be reported through this method.
 void warning(SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsimportListener

public WsimportListener()
Method Detail

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 miscellenous 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 ErrorListener
Specified by:
error in interface ErrorHandler

fatalError

public void fatalError(SAXParseException exception)
Specified by:
fatalError in interface ErrorListener
Specified by:
fatalError in interface ErrorHandler

warning

public void warning(SAXParseException exception)
Specified by:
warning in interface ErrorListener
Specified by:
warning in interface ErrorHandler

info

public void info(SAXParseException exception)
Specified by:
info in interface 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