Package com.sun.tools.ws.wscompile
Class WsimportListener
java.lang.Object
com.sun.tools.ws.wscompile.WsimportListener
- All Implemented Interfaces:
ErrorListener
,ErrorListener
,ErrorHandler
- Direct Known Subclasses:
WsimportTool.Listener
- Author:
- Vivek Pandey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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) Used to report possibly verbose information that can be safely ignored.boolean
wsimport will periodically invoke this method to see if it should cancel a compilation.void
Other miscellaneous messages that do not have structures will be reported through this method.void
warning
(SAXParseException exception)
-
Constructor Details
-
WsimportListener
public WsimportListener()Default constructor.
-
-
Method Details
-
generatedFile
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
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
- Specified by:
error
in interfaceErrorHandler
- Specified by:
error
in interfaceErrorListener
- Specified by:
error
in interfaceErrorListener
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Specified by:
fatalError
in interfaceErrorListener
- Specified by:
fatalError
in interfaceErrorListener
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Specified by:
warning
in interfaceErrorListener
- Specified by:
warning
in interfaceErrorListener
-
info
Description copied from interface:ErrorListener
Used to report possibly verbose information that can be safely ignored.- Specified by:
info
in interfaceErrorListener
- Specified by:
info
in interfaceErrorListener
-
debug
-
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
-