com.sun.tools.ws.wscompile
Class WsimportTool.Listener

java.lang.Object
  extended by com.sun.tools.ws.wscompile.WsimportListener
      extended by com.sun.tools.ws.wscompile.WsimportTool.Listener
All Implemented Interfaces:
com.sun.xml.bind.api.ErrorListener, ErrorHandler
Enclosing class:
WsimportTool

protected class WsimportTool.Listener
extends WsimportListener


Field Summary
(package private)  ConsoleErrorReporter cer
           
 
Constructor Summary
protected WsimportTool.Listener()
           
 
Method Summary
 void debug(SAXParseException exception)
           
 void enableDebugging()
           
 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)
           
 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 com.sun.tools.ws.wscompile.WsimportListener
isCanceled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cer

ConsoleErrorReporter cer
Constructor Detail

WsimportTool.Listener

protected WsimportTool.Listener()
Method Detail

generatedFile

public void generatedFile(String fileName)
Description copied from class: WsimportListener
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.

Overrides:
generatedFile in class WsimportListener
Parameters:
fileName - file names like "org/acme/foo/Foo.java"

message

public void message(String msg)
Description copied from class: WsimportListener
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'.

Overrides:
message in class WsimportListener

error

public void error(SAXParseException exception)
Specified by:
error in interface com.sun.xml.bind.api.ErrorListener
Specified by:
error in interface ErrorHandler
Overrides:
error in class WsimportListener

fatalError

public void fatalError(SAXParseException exception)
Specified by:
fatalError in interface com.sun.xml.bind.api.ErrorListener
Specified by:
fatalError in interface ErrorHandler
Overrides:
fatalError in class WsimportListener

warning

public void warning(SAXParseException exception)
Specified by:
warning in interface com.sun.xml.bind.api.ErrorListener
Specified by:
warning in interface ErrorHandler
Overrides:
warning in class WsimportListener

debug

public void debug(SAXParseException exception)
Overrides:
debug in class WsimportListener

info

public void info(SAXParseException exception)
Specified by:
info in interface com.sun.xml.bind.api.ErrorListener
Overrides:
info in class WsimportListener

enableDebugging

public void enableDebugging()


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.