Class XjcLogAdapter

  • All Implemented Interfaces:
    com.sun.tools.xjc.api.ErrorListener, com.sun.xml.bind.api.ErrorListener, org.xml.sax.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 
      Modifier and Type Field Description
      private org.apache.maven.plugin.logging.Log log  
    • Constructor Summary

      Constructors 
      Constructor Description
      XjcLogAdapter​(org.apache.maven.plugin.logging.Log log)
      Creates an XjcLogAdapter which emits all XJC events onto the supplied Maven Log.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(org.xml.sax.SAXParseException exception)
      void fatalError​(org.xml.sax.SAXParseException exception)
      void generatedFile​(java.lang.String fileName, int current, int total)
      private java.lang.String getLocation​(org.xml.sax.SAXParseException e)  
      void info​(org.xml.sax.SAXParseException exception)
      void warning​(org.xml.sax.SAXParseException exception)
      • Methods inherited from class com.sun.tools.xjc.XJCListener

        compiled, generatedFile, isCanceled, message
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        private org.apache.maven.plugin.logging.Log log
    • Constructor Detail

      • 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 Detail

      • generatedFile

        public void generatedFile​(java.lang.String fileName,
                                  int current,
                                  int total)
        Overrides:
        generatedFile in class com.sun.tools.xjc.XJCListener
      • error

        public void error​(org.xml.sax.SAXParseException exception)
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException exception)
      • warning

        public void warning​(org.xml.sax.SAXParseException exception)
      • info

        public void info​(org.xml.sax.SAXParseException exception)
      • getLocation

        private java.lang.String getLocation​(org.xml.sax.SAXParseException e)