com.sun.tools.internal.ws.wsdl.document.jaxws.CustomName Java Examples
The following examples show how to use
com.sun.tools.internal.ws.wsdl.document.jaxws.CustomName.
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: JAXWSBindingExtensionHandler.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseMethod(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String methodName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); String javaDoc = getJavaDoc(e); CustomName name = new CustomName(methodName, javaDoc); jaxwsBinding.setMethodName(name); }
Example #2
Source File: JAXWSBindingExtensionHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseMethod(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String methodName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); String javaDoc = getJavaDoc(e); CustomName name = new CustomName(methodName, javaDoc); jaxwsBinding.setMethodName(name); }
Example #3
Source File: WSDLModeler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private String getFaultClassName(com.sun.tools.internal.ws.wsdl.document.Fault portTypeFault) { JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(portTypeFault, JAXWSBinding.class); if (jaxwsBinding != null) { CustomName className = jaxwsBinding.getClassName(); if (className != null) { return makePackageQualified(className.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(portTypeFault.getMessage().getLocalPart())); }
Example #4
Source File: WSDLModeler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected String getServiceInterfaceName(QName serviceQName, com.sun.tools.internal.ws.wsdl.document.Service wsdlService) { String serviceName = wsdlService.getName(); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(wsdlService, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(serviceName)); }
Example #5
Source File: WSDLModeler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected String getJavaNameOfSEI(Port port) { QName portTypeName = (QName) port.getProperty( ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME); PortType pt = (PortType) document.find(Kinds.PORT_TYPE, portTypeName); //populate the portType map here. We should get rid of all these properties // lets not do it as it may break NB //TODO: clean all these stuff part of NB RFE port.portTypes.put(portTypeName, pt); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(pt, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } String interfaceName; if (portTypeName != null) { // got portType information from WSDL, use it to name the interface interfaceName = makePackageQualified(BindingHelper.mangleNameToClassName(portTypeName.getLocalPart())); } else { // somehow we only got the port name, so we use that interfaceName = makePackageQualified(BindingHelper.mangleNameToClassName(port.getName().getLocalPart())); } return interfaceName; }
Example #6
Source File: JAXWSBindingExtensionHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param parent * @param e */ private void parsePackage(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) { //System.out.println("In handlePackageExtension: " + e.getNodeName()); String packageName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); JAXWSBinding binding = (JAXWSBinding)parent; binding.setJaxwsPackage(new CustomName(packageName, getJavaDoc(e))); }
Example #7
Source File: JAXWSBindingExtensionHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseMethod(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String methodName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); String javaDoc = getJavaDoc(e); CustomName name = new CustomName(methodName, javaDoc); jaxwsBinding.setMethodName(name); }
Example #8
Source File: WSDLModeler.java From hottub with GNU General Public License v2.0 | 5 votes |
private String getFaultClassName(com.sun.tools.internal.ws.wsdl.document.Fault portTypeFault) { JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(portTypeFault, JAXWSBinding.class); if (jaxwsBinding != null) { CustomName className = jaxwsBinding.getClassName(); if (className != null) { return makePackageQualified(className.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(portTypeFault.getMessage().getLocalPart())); }
Example #9
Source File: WSDLModeler.java From hottub with GNU General Public License v2.0 | 5 votes |
protected String getServiceInterfaceName(QName serviceQName, com.sun.tools.internal.ws.wsdl.document.Service wsdlService) { String serviceName = wsdlService.getName(); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(wsdlService, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(serviceName)); }
Example #10
Source File: WSDLModeler.java From hottub with GNU General Public License v2.0 | 5 votes |
protected String getJavaNameOfSEI(Port port) { QName portTypeName = (QName) port.getProperty( ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME); PortType pt = (PortType) document.find(Kinds.PORT_TYPE, portTypeName); //populate the portType map here. We should get rid of all these properties // lets not do it as it may break NB //TODO: clean all these stuff part of NB RFE port.portTypes.put(portTypeName, pt); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(pt, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } String interfaceName; if (portTypeName != null) { // got portType information from WSDL, use it to name the interface interfaceName = makePackageQualified(BindingHelper.mangleNameToClassName(portTypeName.getLocalPart())); } else { // somehow we only got the port name, so we use that interfaceName = makePackageQualified(BindingHelper.mangleNameToClassName(port.getName().getLocalPart())); } return interfaceName; }
Example #11
Source File: JAXWSBindingExtensionHandler.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param parent * @param e */ private void parsePackage(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) { //System.out.println("In handlePackageExtension: " + e.getNodeName()); String packageName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); JAXWSBinding binding = (JAXWSBinding)parent; binding.setJaxwsPackage(new CustomName(packageName, getJavaDoc(e))); }
Example #12
Source File: WSDLModeler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected String getServiceInterfaceName(QName serviceQName, com.sun.tools.internal.ws.wsdl.document.Service wsdlService) { String serviceName = wsdlService.getName(); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(wsdlService, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(serviceName)); }
Example #13
Source File: WSDLModeler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private String getFaultClassName(com.sun.tools.internal.ws.wsdl.document.Fault portTypeFault) { JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(portTypeFault, JAXWSBinding.class); if (jaxwsBinding != null) { CustomName className = jaxwsBinding.getClassName(); if (className != null) { return makePackageQualified(className.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(portTypeFault.getMessage().getLocalPart())); }
Example #14
Source File: WSDLModeler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected String getServiceInterfaceName(QName serviceQName, com.sun.tools.internal.ws.wsdl.document.Service wsdlService) { String serviceName = wsdlService.getName(); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(wsdlService, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(serviceName)); }
Example #15
Source File: WSDLModeler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected String getJavaNameOfSEI(Port port) { QName portTypeName = (QName) port.getProperty( ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME); PortType pt = (PortType) document.find(Kinds.PORT_TYPE, portTypeName); //populate the portType map here. We should get rid of all these properties // lets not do it as it may break NB //TODO: clean all these stuff part of NB RFE port.portTypes.put(portTypeName, pt); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(pt, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } String interfaceName; if (portTypeName != null) { // got portType information from WSDL, use it to name the interface interfaceName = makePackageQualified(BindingHelper.mangleNameToClassName(portTypeName.getLocalPart())); } else { // somehow we only got the port name, so we use that interfaceName = makePackageQualified(BindingHelper.mangleNameToClassName(port.getName().getLocalPart())); } return interfaceName; }
Example #16
Source File: JAXWSBindingExtensionHandler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param parent * @param e */ private void parsePackage(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) { //System.out.println("In handlePackageExtension: " + e.getNodeName()); String packageName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); JAXWSBinding binding = (JAXWSBinding)parent; binding.setJaxwsPackage(new CustomName(packageName, getJavaDoc(e))); }
Example #17
Source File: JAXWSBindingExtensionHandler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseMethod(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String methodName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); String javaDoc = getJavaDoc(e); CustomName name = new CustomName(methodName, javaDoc); jaxwsBinding.setMethodName(name); }
Example #18
Source File: WSDLModeler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private String getFaultClassName(com.sun.tools.internal.ws.wsdl.document.Fault portTypeFault) { JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(portTypeFault, JAXWSBinding.class); if (jaxwsBinding != null) { CustomName className = jaxwsBinding.getClassName(); if (className != null) { return makePackageQualified(className.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(portTypeFault.getMessage().getLocalPart())); }
Example #19
Source File: WSDLModeler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected String getServiceInterfaceName(QName serviceQName, com.sun.tools.internal.ws.wsdl.document.Service wsdlService) { String serviceName = wsdlService.getName(); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(wsdlService, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(serviceName)); }
Example #20
Source File: WSDLModeler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected String getJavaNameOfSEI(Port port) { QName portTypeName = (QName) port.getProperty( ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME); PortType pt = (PortType) document.find(Kinds.PORT_TYPE, portTypeName); //populate the portType map here. We should get rid of all these properties // lets not do it as it may break NB //TODO: clean all these stuff part of NB RFE port.portTypes.put(portTypeName, pt); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(pt, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } String interfaceName; if (portTypeName != null) { // got portType information from WSDL, use it to name the interface interfaceName = makePackageQualified(BindingHelper.mangleNameToClassName(portTypeName.getLocalPart())); } else { // somehow we only got the port name, so we use that interfaceName = makePackageQualified(BindingHelper.mangleNameToClassName(port.getName().getLocalPart())); } return interfaceName; }
Example #21
Source File: JAXWSBindingExtensionHandler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param parent * @param e */ private void parsePackage(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) { //System.out.println("In handlePackageExtension: " + e.getNodeName()); String packageName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); JAXWSBinding binding = (JAXWSBinding)parent; binding.setJaxwsPackage(new CustomName(packageName, getJavaDoc(e))); }
Example #22
Source File: JAXWSBindingExtensionHandler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseMethod(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String methodName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); String javaDoc = getJavaDoc(e); CustomName name = new CustomName(methodName, javaDoc); jaxwsBinding.setMethodName(name); }
Example #23
Source File: WSDLModeler.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected String getServiceInterfaceName(QName serviceQName, com.sun.tools.internal.ws.wsdl.document.Service wsdlService) { String serviceName = wsdlService.getName(); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(wsdlService, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(serviceName)); }
Example #24
Source File: JAXWSBindingExtensionHandler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseMethod(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String methodName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); String javaDoc = getJavaDoc(e); CustomName name = new CustomName(methodName, javaDoc); jaxwsBinding.setMethodName(name); }
Example #25
Source File: WSDLModeler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private String getFaultClassName(com.sun.tools.internal.ws.wsdl.document.Fault portTypeFault) { JAXWSBinding jaxwsBinding = (JAXWSBinding) getExtensionOfType(portTypeFault, JAXWSBinding.class); if (jaxwsBinding != null) { CustomName className = jaxwsBinding.getClassName(); if (className != null) { return makePackageQualified(className.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(portTypeFault.getMessage().getLocalPart())); }
Example #26
Source File: WSDLModeler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected String getServiceInterfaceName(QName serviceQName, com.sun.tools.internal.ws.wsdl.document.Service wsdlService) { String serviceName = wsdlService.getName(); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(wsdlService, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } return makePackageQualified(BindingHelper.mangleNameToClassName(serviceName)); }
Example #27
Source File: WSDLModeler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected String getJavaNameOfSEI(Port port) { QName portTypeName = (QName) port.getProperty( ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME); PortType pt = (PortType) document.find(Kinds.PORT_TYPE, portTypeName); //populate the portType map here. We should get rid of all these properties // lets not do it as it may break NB //TODO: clean all these stuff part of NB RFE port.portTypes.put(portTypeName, pt); JAXWSBinding jaxwsCust = (JAXWSBinding) getExtensionOfType(pt, JAXWSBinding.class); if (jaxwsCust != null && jaxwsCust.getClassName() != null) { CustomName name = jaxwsCust.getClassName(); if (name != null && !name.getName().equals("")) { return makePackageQualified(name.getName()); } } String interfaceName; if (portTypeName != null) { // got portType information from WSDL, use it to name the interface interfaceName = makePackageQualified(BindingHelper.mangleNameToClassName(portTypeName.getLocalPart())); } else { // somehow we only got the port name, so we use that interfaceName = makePackageQualified(BindingHelper.mangleNameToClassName(port.getName().getLocalPart())); } return interfaceName; }
Example #28
Source File: JAXWSBindingExtensionHandler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param parent * @param e */ private void parsePackage(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) { //System.out.println("In handlePackageExtension: " + e.getNodeName()); String packageName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); JAXWSBinding binding = (JAXWSBinding)parent; binding.setJaxwsPackage(new CustomName(packageName, getJavaDoc(e))); }
Example #29
Source File: JAXWSBindingExtensionHandler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param jaxwsBinding * @param e */ private void parseMethod(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding jaxwsBinding, Element e) { String methodName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); String javaDoc = getJavaDoc(e); CustomName name = new CustomName(methodName, javaDoc); jaxwsBinding.setMethodName(name); }
Example #30
Source File: JAXWSBindingExtensionHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * @param context * @param parent * @param e */ private void parsePackage(com.sun.tools.internal.ws.api.wsdl.TWSDLParserContext context, JAXWSBinding parent, Element e) { //System.out.println("In handlePackageExtension: " + e.getNodeName()); String packageName = XmlUtil.getAttributeOrNull(e, JAXWSBindingsConstants.NAME_ATTR); JAXWSBinding binding = (JAXWSBinding)parent; binding.setJaxwsPackage(new CustomName(packageName, getJavaDoc(e))); }