com.sun.tools.internal.ws.wscompile.ErrorReceiver Java Examples
The following examples show how to use
com.sun.tools.internal.ws.wscompile.ErrorReceiver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DOMForest.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public DOMForest(InternalizationLogic logic, @NotNull EntityResolver entityResolver, WsimportOptions options, ErrorReceiver errReceiver) { this.options = options; this.entityResolver = entityResolver; this.errorReceiver = errReceiver; this.logic = logic; // secure xml processing can be switched off if input requires it boolean disableXmlSecurity = options == null ? false : options.disableXmlSecurity; DocumentBuilderFactory dbf = XmlUtil.newDocumentBuilderFactory(disableXmlSecurity); this.parserFactory = XmlUtil.newSAXParserFactory(disableXmlSecurity); try { this.documentBuilder = dbf.newDocumentBuilder(); } catch (ParserConfigurationException e) { throw new AssertionError(e); } }
Example #2
Source File: SeiGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) { init(model, options, receiver); extensionHandlers = new ArrayList<TJavaGeneratorExtension>(); // register handlers for default extensions // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl if (options.target.isLaterThan(Options.Target.V2_2)) { register(new W3CAddressingJavaGeneratorExtension()); } for (TJavaGeneratorExtension j : extensions) { register(j); } this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()])); }
Example #3
Source File: PluginImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@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; }
Example #4
Source File: GeneratorBase.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void init(Model model, WsimportOptions options, ErrorReceiver receiver){ this.model = model; this.options = options; this.destDir = options.destDir; this.receiver = receiver; this.wsdlLocation = options.wsdlLocation; this.targetVersion = options.target.getVersion(); this.cm = options.getCodeModel(); }
Example #5
Source File: JwsImplGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example #6
Source File: JwsImplGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example #7
Source File: GeneratorBase.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void init(Model model, WsimportOptions options, ErrorReceiver receiver){ this.model = model; this.options = options; this.destDir = options.destDir; this.receiver = receiver; this.wsdlLocation = options.wsdlLocation; this.targetVersion = options.target.getVersion(); this.cm = options.getCodeModel(); }
Example #8
Source File: JwsImplGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example #9
Source File: TWSDLParserContextImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public TWSDLParserContextImpl(DOMForest forest, AbstractDocument doc, ArrayList<ParserListener> listeners, ErrorReceiver errReceiver) { this._document = doc; this._listeners = listeners; this._nsSupport = new NamespaceSupport(); this._wsdlLocation = new WSDLLocation(); this.forest = forest; this.errorReceiver = errReceiver; }
Example #10
Source File: AbstractDocument.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #11
Source File: AbstractDocument.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #12
Source File: AbstractDocument.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #13
Source File: JAXBModelBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public JAXBModelBuilder(WsimportOptions options, ClassNameCollector classNameCollector, MetadataFinder finder, ErrorReceiver errReceiver) { this._classNameAllocator = new ClassNameAllocatorImpl(classNameCollector); this.errReceiver = errReceiver; this.options = options; this.forest = finder; internalBuildJAXBModel(); }
Example #14
Source File: TWSDLParserContextImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public TWSDLParserContextImpl(DOMForest forest, AbstractDocument doc, ArrayList<ParserListener> listeners, ErrorReceiver errReceiver) { this._document = doc; this._listeners = listeners; this._nsSupport = new NamespaceSupport(); this._wsdlLocation = new WSDLLocation(); this.forest = forest; this.errorReceiver = errReceiver; }
Example #15
Source File: JAXBModelBuilder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public JAXBModelBuilder(WsimportOptions options, ClassNameCollector classNameCollector, MetadataFinder finder, ErrorReceiver errReceiver) { this._classNameAllocator = new ClassNameAllocatorImpl(classNameCollector); this.errReceiver = errReceiver; this.options = options; this.forest = finder; internalBuildJAXBModel(); }
Example #16
Source File: AbstractDocument.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected AbstractDocument(MetadataFinder forest, ErrorReceiver errReceiver) { this.forest = forest; this.errReceiver = errReceiver; kinds = new HashMap(); importedEntities = new ArrayList(); importedDocuments = new HashSet(); includedEntities = new ArrayList(); includedDocuments = new HashSet(); }
Example #17
Source File: PluginImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@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; }
Example #18
Source File: GeneratorBase.java From hottub with GNU General Public License v2.0 | 5 votes |
public void init(Model model, WsimportOptions options, ErrorReceiver receiver){ this.model = model; this.options = options; this.destDir = options.destDir; this.receiver = receiver; this.wsdlLocation = options.wsdlLocation; this.targetVersion = options.target.getVersion(); this.cm = options.getCodeModel(); }
Example #19
Source File: CustomExceptionGenerator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver){ CustomExceptionGenerator exceptionGen = new CustomExceptionGenerator(); exceptionGen.init(model, options, receiver); exceptionGen.doGeneration(); }
Example #20
Source File: JwsImplGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
public static List<String> generate(Model model, WsimportOptions options, ErrorReceiver receiver) { // options check // Generate it according the implDestDir option if (options.implDestDir == null) return null; JwsImplGenerator jwsImplGenerator = new JwsImplGenerator(); jwsImplGenerator.init(model, options, receiver); jwsImplGenerator.doGeneration(); // print a warning message while implFiles.size() is zero if (jwsImplGenerator.implFiles.isEmpty()) { StringBuilder msg = new StringBuilder(); if (options.implServiceName != null) msg.append("serviceName=[").append(options.implServiceName).append("] "); if (options.implPortName != null) msg.append("portName=[").append(options.implPortName).append("] "); if (msg.length() > 0) msg.append(", Not found in wsdl file.\n"); msg.append("No impl files generated!"); receiver.warning(null, msg.toString()); } return jwsImplGenerator.implFiles; }
Example #21
Source File: GeneratorBase.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void init(Model model, WsimportOptions options, ErrorReceiver receiver){ this.model = model; this.options = options; this.destDir = options.destDir; this.receiver = receiver; this.wsdlLocation = options.wsdlLocation; this.targetVersion = options.target.getVersion(); this.cm = options.getCodeModel(); }
Example #22
Source File: PluginImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@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; }
Example #23
Source File: ModelObject.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public void setErrorReceiver(ErrorReceiver errorReceiver) { this.errorReceiver = errorReceiver; }
Example #24
Source File: Internalizer.java From hottub with GNU General Public License v2.0 | 4 votes |
public Internalizer(DOMForest forest, WsimportOptions options, ErrorReceiver errorReceiver) { this.forest = forest; this.errorReceiver = errorReceiver; }
Example #25
Source File: CustomExceptionGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public GeneratorBase getGenerator(Model model, WsimportOptions options, ErrorReceiver receiver) { GeneratorBase g = new CustomExceptionGenerator(); g.init(model, options, receiver); return g; }
Example #26
Source File: Request.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public Request(com.sun.tools.internal.ws.wsdl.document.Message entity, ErrorReceiver receiver) { super(entity, receiver); }
Example #27
Source File: Input.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public Input(Locator locator, ErrorReceiver errReceiver) { super(locator); this.errorReceiver = errReceiver; _helper = new ExtensibilityHelper(); }
Example #28
Source File: Binding.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public Binding(Defining defining, Locator locator, ErrorReceiver receiver) { super(defining, locator, receiver); _operations = new ArrayList(); _helper = new ExtensibilityHelper(); }
Example #29
Source File: ModelObject.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public void setErrorReceiver(ErrorReceiver errorReceiver) { this.errorReceiver = errorReceiver; }
Example #30
Source File: W3CAddressingExtensionHandler.java From hottub with GNU General Public License v2.0 | 4 votes |
public W3CAddressingExtensionHandler(Map<String, AbstractExtensionHandler> extensionHandlerMap, ErrorReceiver errReceiver) { super(extensionHandlerMap); }