Java Code Examples for com.sun.tools.internal.ws.wsdl.document.Service#getDocumentation()
The following examples show how to use
com.sun.tools.internal.ws.wsdl.document.Service#getDocumentation() .
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: WSDLParser.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private Service parseService( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Service service = new Service(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); service.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(e.getLocalName())); } gotDocumentation = true; if (service.getDocumentation() == null) { service.setDocumentation(getDocumentationFor(e2)); } } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PORT)) { Port port = parsePort(context, definitions, e2); service.add(port); } else { // possible extensibility element -- must live outside the WSDL namespace checkNotWsdlElement(e2); if (!handleExtension(context, service, e2)) { checkNotWsdlRequired(e2); } } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_SERVICE, service); return service; }
Example 2
Source File: WSDLParser.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private Service parseService( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Service service = new Service(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); service.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(e.getLocalName())); } gotDocumentation = true; if (service.getDocumentation() == null) { service.setDocumentation(getDocumentationFor(e2)); } } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PORT)) { Port port = parsePort(context, definitions, e2); service.add(port); } else { // possible extensibility element -- must live outside the WSDL namespace checkNotWsdlElement(e2); if (!handleExtension(context, service, e2)) { checkNotWsdlRequired(e2); } } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_SERVICE, service); return service; }
Example 3
Source File: WSDLParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private Service parseService( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Service service = new Service(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); service.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(e.getLocalName())); } gotDocumentation = true; if (service.getDocumentation() == null) { service.setDocumentation(getDocumentationFor(e2)); } } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PORT)) { Port port = parsePort(context, definitions, e2); service.add(port); } else { // possible extensibility element -- must live outside the WSDL namespace checkNotWsdlElement(e2); if (!handleExtension(context, service, e2)) { checkNotWsdlRequired(e2); } } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_SERVICE, service); return service; }
Example 4
Source File: WSDLParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Service parseService( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Service service = new Service(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); service.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(e.getLocalName())); } gotDocumentation = true; if (service.getDocumentation() == null) { service.setDocumentation(getDocumentationFor(e2)); } } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PORT)) { Port port = parsePort(context, definitions, e2); service.add(port); } else { // possible extensibility element -- must live outside the WSDL namespace checkNotWsdlElement(e2); if (!handleExtension(context, service, e2)) { checkNotWsdlRequired(e2); } } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_SERVICE, service); return service; }
Example 5
Source File: WSDLParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private Service parseService( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Service service = new Service(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); service.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(e.getLocalName())); } gotDocumentation = true; if (service.getDocumentation() == null) { service.setDocumentation(getDocumentationFor(e2)); } } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PORT)) { Port port = parsePort(context, definitions, e2); service.add(port); } else { // possible extensibility element -- must live outside the WSDL namespace checkNotWsdlElement(e2); if (!handleExtension(context, service, e2)) { checkNotWsdlRequired(e2); } } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_SERVICE, service); return service; }
Example 6
Source File: WSDLParser.java From hottub with GNU General Public License v2.0 | 4 votes |
private Service parseService( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Service service = new Service(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); service.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(e.getLocalName())); } gotDocumentation = true; if (service.getDocumentation() == null) { service.setDocumentation(getDocumentationFor(e2)); } } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PORT)) { Port port = parsePort(context, definitions, e2); service.add(port); } else { // possible extensibility element -- must live outside the WSDL namespace checkNotWsdlElement(e2); if (!handleExtension(context, service, e2)) { checkNotWsdlRequired(e2); } } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_SERVICE, service); return service; }
Example 7
Source File: WSDLParser.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private Service parseService( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Service service = new Service(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); service.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(e.getLocalName())); } gotDocumentation = true; if (service.getDocumentation() == null) { service.setDocumentation(getDocumentationFor(e2)); } } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PORT)) { Port port = parsePort(context, definitions, e2); service.add(port); } else { // possible extensibility element -- must live outside the WSDL namespace checkNotWsdlElement(e2); if (!handleExtension(context, service, e2)) { checkNotWsdlRequired(e2); } } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_SERVICE, service); return service; }
Example 8
Source File: WSDLParser.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private Service parseService( TWSDLParserContextImpl context, Definitions definitions, Element e) { context.push(); context.registerNamespaces(e); Service service = new Service(definitions, forest.locatorTable.getStartLocation(e), errReceiver); String name = Util.getRequiredAttribute(e, Constants.ATTR_NAME); service.setName(name); boolean gotDocumentation = false; for (Iterator iter = XmlUtil.getAllChildren(e); iter.hasNext();) { Element e2 = Util.nextElement(iter); if (e2 == null) break; if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_DOCUMENTATION)) { if (gotDocumentation) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ONLY_ONE_DOCUMENTATION_ALLOWED(e.getLocalName())); } gotDocumentation = true; if (service.getDocumentation() == null) { service.setDocumentation(getDocumentationFor(e2)); } } else if (XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_PORT)) { Port port = parsePort(context, definitions, e2); service.add(port); } else { // possible extensibility element -- must live outside the WSDL namespace checkNotWsdlElement(e2); if (!handleExtension(context, service, e2)) { checkNotWsdlRequired(e2); } } } context.pop(); context.fireDoneParsingEntity(WSDLConstants.QNAME_SERVICE, service); return service; }