Package com.sun.tools.ws.wscompile
Class WsimportListener
java.lang.Object
com.sun.tools.ws.wscompile.WsimportListener
- All Implemented Interfaces:
ErrorListener,org.glassfish.jaxb.core.api.ErrorListener,ErrorHandler
- Direct Known Subclasses:
WsimportTool.Listener
- Author:
- Vivek Pandey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddebug(SAXParseException exception) voiderror(SAXParseException exception) voidfatalError(SAXParseException exception) voidgeneratedFile(String fileName) Called for each file generated by wsimport or wsgen.voidinfo(SAXParseException exception) Used to report possibly verbose information that can be safely ignored.booleanwsimport will periodically invoke this method to see if it should cancel a compilation.voidOther miscellenous messages that do not have structures will be reported through this method.voidwarning(SAXParseException exception)
-
Constructor Details
-
WsimportListener
public WsimportListener()
-
-
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 miscellenous messages that do not have structures will be reported through this method. This method is used likePrintStream.println(String). The callee is expected to add '\n'. -
error
- Specified by:
errorin interfaceErrorHandler- Specified by:
errorin interfaceErrorListener- Specified by:
errorin interfaceorg.glassfish.jaxb.core.api.ErrorListener
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Specified by:
fatalErrorin interfaceErrorListener- Specified by:
fatalErrorin interfaceorg.glassfish.jaxb.core.api.ErrorListener
-
warning
- Specified by:
warningin interfaceErrorHandler- Specified by:
warningin interfaceErrorListener- Specified by:
warningin interfaceorg.glassfish.jaxb.core.api.ErrorListener
-
info
Description copied from interface:ErrorListenerUsed to report possibly verbose information that can be safely ignored.- Specified by:
infoin interfaceErrorListener- Specified by:
infoin interfaceorg.glassfish.jaxb.core.api.ErrorListener
-
debug
-
isCanceled
public boolean isCanceled()wsimport will periodically invoke this method to see if it should cancel a compilation.- Returns:
- true if the
WsimportListenerwants to abort the processing. - Since:
- 2.1
-