Class XjcLogAdapter
java.lang.Object
com.sun.tools.xjc.XJCListener
org.codehaus.mojo.jaxb2.javageneration.XjcLogAdapter
- All Implemented Interfaces:
com.sun.tools.xjc.api.ErrorListener, com.sun.xml.bind.api.ErrorListener, ErrorHandler
public class XjcLogAdapter
extends com.sun.tools.xjc.XJCListener
Adapter implementation emitting XJC events to a Maven Log.
- Since:
- 2.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXjcLogAdapter(org.apache.maven.plugin.logging.Log log) Creates an XjcLogAdapter which emits all XJC events onto the supplied Maven Log. -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException exception) voidfatalError(SAXParseException exception) voidgeneratedFile(String fileName, int current, int total) private Stringvoidinfo(SAXParseException exception) voidwarning(SAXParseException exception) Methods inherited from class com.sun.tools.xjc.XJCListener
compiled, generatedFile, isCanceled, message
-
Field Details
-
log
private org.apache.maven.plugin.logging.Log log
-
-
Constructor Details
-
XjcLogAdapter
public XjcLogAdapter(org.apache.maven.plugin.logging.Log log) Creates an XjcLogAdapter which emits all XJC events onto the supplied Maven Log.- Parameters:
log- A non-null Log logging all inbound XJC events.
-
-
Method Details
-
generatedFile
- Overrides:
generatedFilein classcom.sun.tools.xjc.XJCListener
-
error
-
fatalError
-
warning
-
info
-
getLocation
-