1 19 20 package org.netbeans.modules.websvc.design.schema2java; 21 22 import com.sun.tools.xjc.XJCListener; 23 import org.xml.sax.SAXParseException ; 24 25 29 public class XJCClassGenerationListener extends XJCListener { 30 JavaGenerator javaGenerator; 31 32 public XJCClassGenerationListener(JavaGenerator javaGenerator) { 33 this.javaGenerator=javaGenerator; 34 } 35 36 public void generatedFile(String fileName, int count, int total) { 37 System.out.println("Generated File: "+fileName); 38 javaGenerator.addGeneratedFile(fileName); 39 } 40 public void message(String msg) { 41 System.out.println("XJC Message: "+msg); 42 } 43 44 public void error(SAXParseException exception) { 45 } 46 47 public void fatalError(SAXParseException exception) { 48 } 49 50 public void warning(SAXParseException exception) { 51 } 52 53 public void info(SAXParseException exception) { 54 } 55 56 } 57 | Popular Tags |