@Override public boolean run(Model model, WsimportOptions wo, ErrorReceiver er) throws SAXException { JCodeModel cm = wo.getCodeModel(); // we want this to work without requiring JSR-250 jar. annotation = cm.ref("javax.annotation.Generated"); for (Iterator<JPackage> i = cm.packages(); i.hasNext();) { for (Iterator<JDefinedClass> j = i.next().classes(); j.hasNext();) { annotate(j.next()); } } return true; }
private void annotate(JAnnotatable m) { m.annotate(annotation) .param("value", WsimportTool.class.getName()) .param("date", getISO8601Date()) .param("comments", ToolVersion.VERSION.BUILD_VERSION); }
private void annotate(JAnnotatable m) { m.annotate(annotation) .param("value", WsimportTool.class.getName()) .param("date", getISO8601Date()) .param("comments", ToolVersion.VERSION.BUILD_VERSION); }
@Override public boolean run(Model model, WsimportOptions wo, ErrorReceiver er) throws SAXException { JCodeModel cm = wo.getCodeModel(); // we want this to work without requiring JSR-250 jar. annotation = cm.ref("javax.annotation.Generated"); for (Iterator<JPackage> i = cm.packages(); i.hasNext();) { for (Iterator<JDefinedClass> j = i.next().classes(); j.hasNext();) { annotate(j.next()); } } return true; }
private void annotate(JAnnotatable m) { m.annotate(annotation) .param("value", WsimportTool.class.getName()) .param("date", getISO8601Date()) .param("comments", ToolVersion.VERSION.BUILD_VERSION); }
@Override public boolean run(Model model, WsimportOptions wo, ErrorReceiver er) throws SAXException { JCodeModel cm = wo.getCodeModel(); // we want this to work without requiring JSR-250 jar. annotation = cm.ref("javax.annotation.Generated"); for (Iterator<JPackage> i = cm.packages(); i.hasNext();) { for (Iterator<JDefinedClass> j = i.next().classes(); j.hasNext();) { annotate(j.next()); } } return true; }
private void annotate(JAnnotatable m) { m.annotate(annotation) .param("value", WsimportTool.class.getName()) .param("date", getISO8601Date()) .param("comments", ToolVersion.VERSION.BUILD_VERSION); }
@Override public boolean run(Model model, WsimportOptions wo, ErrorReceiver er) throws SAXException { JCodeModel cm = wo.getCodeModel(); // we want this to work without requiring JSR-250 jar. annotation = cm.ref("javax.annotation.Generated"); for (Iterator<JPackage> i = cm.packages(); i.hasNext();) { for (Iterator<JDefinedClass> j = i.next().classes(); j.hasNext();) { annotate(j.next()); } } return true; }