protected boolean isProvider(com.sun.tools.ws.wsdl.document.Port wsdlPort){ JAXWSBinding portCustomization = (JAXWSBinding)getExtensionOfType(wsdlPort, JAXWSBinding.class); Boolean isProvider = (portCustomization != null)?portCustomization.isProvider():null; if(isProvider != null){ return isProvider; } JAXWSBinding jaxwsGlobalCustomization = (JAXWSBinding)getExtensionOfType(document.getDefinitions(), JAXWSBinding.class); isProvider = (jaxwsGlobalCustomization != null)?jaxwsGlobalCustomization.isProvider():null; if (isProvider != null) { return isProvider; } return false; }
protected boolean isProvider(com.sun.tools.ws.wsdl.document.Port wsdlPort){ JAXWSBinding portCustomization = (JAXWSBinding)getExtensionOfType(wsdlPort, JAXWSBinding.class); Boolean isProvider = (portCustomization != null)?portCustomization.isProvider():null; if(isProvider != null){ return isProvider; } JAXWSBinding jaxwsGlobalCustomization = (JAXWSBinding)getExtensionOfType(document.getDefinitions(), JAXWSBinding.class); isProvider = (jaxwsGlobalCustomization != null)?jaxwsGlobalCustomization.isProvider():null; if (isProvider != null) { return isProvider; } return false; }
protected boolean isProvider(com.sun.tools.ws.wsdl.document.Port wsdlPort){ JAXWSBinding portCustomization = (JAXWSBinding)getExtensionOfType(wsdlPort, JAXWSBinding.class); Boolean isProvider = (portCustomization != null)?portCustomization.isProvider():null; if(isProvider != null){ return isProvider; } JAXWSBinding jaxwsGlobalCustomization = (JAXWSBinding)getExtensionOfType(document.getDefinitions(), JAXWSBinding.class); isProvider = (jaxwsGlobalCustomization != null)?jaxwsGlobalCustomization.isProvider():null; if (isProvider != null) { return isProvider; } return false; }
protected boolean isProvider(com.sun.tools.ws.wsdl.document.Port wsdlPort){ JAXWSBinding portCustomization = (JAXWSBinding)getExtensionOfType(wsdlPort, JAXWSBinding.class); Boolean isProvider = (portCustomization != null)?portCustomization.isProvider():null; if(isProvider != null){ return isProvider; } JAXWSBinding jaxwsGlobalCustomization = (JAXWSBinding)getExtensionOfType(document.getDefinitions(), JAXWSBinding.class); isProvider = (jaxwsGlobalCustomization != null)?jaxwsGlobalCustomization.isProvider():null; if (isProvider != null) { return isProvider; } return false; }
protected TWSDLExtension getAnyExtensionOfType( TWSDLExtensible extensible, Class type) { if (extensible == null) { return null; } for (TWSDLExtension extension:extensible.extensions()) { if(extension.getClass().equals(type)) { return extension; }else if (extension.getClass().equals(MIMEMultipartRelated.class) && (type.equals(SOAPBody.class) || type.equals(MIMEContent.class) || type.equals(MIMEPart.class))) { for (MIMEPart part : ((MIMEMultipartRelated)extension).getParts()) { //bug fix: 5024001 TWSDLExtension extn = getExtensionOfType(part, type); if (extn != null) { return extn; } } } } return null; }
protected TWSDLExtension getAnyExtensionOfType( TWSDLExtensible extensible, Class type) { if (extensible == null) { return null; } for (TWSDLExtension extension:extensible.extensions()) { if(extension.getClass().equals(type)) { return extension; }else if (extension.getClass().equals(MIMEMultipartRelated.class) && (type.equals(SOAPBody.class) || type.equals(MIMEContent.class) || type.equals(MIMEPart.class))) { for (MIMEPart part : ((MIMEMultipartRelated)extension).getParts()) { //bug fix: 5024001 TWSDLExtension extn = getExtensionOfType(part, type); if (extn != null) { return extn; } } } } return null; }
protected TWSDLExtension getAnyExtensionOfType( TWSDLExtensible extensible, Class type) { if (extensible == null) { return null; } for (TWSDLExtension extension:extensible.extensions()) { if(extension.getClass().equals(type)) { return extension; }else if (extension.getClass().equals(MIMEMultipartRelated.class) && (type.equals(SOAPBody.class) || type.equals(MIMEContent.class) || type.equals(MIMEPart.class))) { for (MIMEPart part : ((MIMEMultipartRelated)extension).getParts()) { //bug fix: 5024001 TWSDLExtension extn = getExtensionOfType(part, type); if (extn != null) { return extn; } } } } return null; }
protected TWSDLExtension getAnyExtensionOfType( TWSDLExtensible extensible, Class type) { if (extensible == null) { return null; } for (TWSDLExtension extension:extensible.extensions()) { if(extension.getClass().equals(type)) { return extension; }else if (extension.getClass().equals(MIMEMultipartRelated.class) && (type.equals(SOAPBody.class) || type.equals(MIMEContent.class) || type.equals(MIMEPart.class))) { for (MIMEPart part : ((MIMEMultipartRelated)extension).getParts()) { //bug fix: 5024001 TWSDLExtension extn = getExtensionOfType(part, type); if (extn != null) { return extn; } } } } return null; }
/** * @param operation * @return true if operation has valid style and part */ private boolean validateStyleAndPart(BindingOperation operation, List<MessagePart> parts) { SOAPOperation soapOperation = (SOAPOperation) getExtensionOfType(operation, SOAPOperation.class); for (MessagePart part : parts) { if (part.getBindingExtensibilityElementKind() == MessagePart.SOAP_BODY_BINDING) { if (!isStyleAndPartMatch(soapOperation, part)) { return false; } } } return true; }
/** * @param operation * @return true if operation has valid style and part */ private boolean validateStyleAndPart(BindingOperation operation, List<MessagePart> parts) { SOAPOperation soapOperation = (SOAPOperation) getExtensionOfType(operation, SOAPOperation.class); for (MessagePart part : parts) { if (part.getBindingExtensibilityElementKind() == MessagePart.SOAP_BODY_BINDING) { if (!isStyleAndPartMatch(soapOperation, part)) { return false; } } } return true; }
/** * @param operation * @return true if operation has valid style and part */ private boolean validateStyleAndPart(BindingOperation operation, List<MessagePart> parts) { SOAPOperation soapOperation = (SOAPOperation) getExtensionOfType(operation, SOAPOperation.class); for (MessagePart part : parts) { if (part.getBindingExtensibilityElementKind() == MessagePart.SOAP_BODY_BINDING) { if (!isStyleAndPartMatch(soapOperation, part)) { return false; } } } return true; }
/** * @param operation * @return true if operation has valid style and part */ private boolean validateStyleAndPart(BindingOperation operation, List<MessagePart> parts) { SOAPOperation soapOperation = (SOAPOperation) getExtensionOfType(operation, SOAPOperation.class); for (MessagePart part : parts) { if (part.getBindingExtensibilityElementKind() == MessagePart.SOAP_BODY_BINDING) { if (!isStyleAndPartMatch(soapOperation, part)) { return false; } } } return true; }
private String getCustomizedOperationName(Operation operation) { JAXWSBinding jaxwsCustomization = (JAXWSBinding)getExtensionOfType(operation, JAXWSBinding.class); String operationName = (jaxwsCustomization != null)?((jaxwsCustomization.getMethodName() != null)?jaxwsCustomization.getMethodName().getName():null):null; if(operationName != null){ if(Names.isJavaReservedWord(operationName)){ return null; } return operationName; } return operation.getName(); }
private String getCustomizedOperationName(Operation operation) { JAXWSBinding jaxwsCustomization = (JAXWSBinding)getExtensionOfType(operation, JAXWSBinding.class); String operationName = (jaxwsCustomization != null)?((jaxwsCustomization.getMethodName() != null)?jaxwsCustomization.getMethodName().getName():null):null; if(operationName != null){ if(Names.isJavaReservedWord(operationName)){ return null; } return operationName; } return operation.getName(); }
private String getCustomizedOperationName(Operation operation) { JAXWSBinding jaxwsCustomization = (JAXWSBinding)getExtensionOfType(operation, JAXWSBinding.class); String operationName = (jaxwsCustomization != null)?((jaxwsCustomization.getMethodName() != null)?jaxwsCustomization.getMethodName().getName():null):null; if(operationName != null){ if(Names.isJavaReservedWord(operationName)){ return null; } return operationName; } return operation.getName(); }
private String getCustomizedOperationName(Operation operation) { JAXWSBinding jaxwsCustomization = (JAXWSBinding)getExtensionOfType(operation, JAXWSBinding.class); String operationName = (jaxwsCustomization != null)?((jaxwsCustomization.getMethodName() != null)?jaxwsCustomization.getMethodName().getName():null):null; if(operationName != null){ if(Names.isJavaReservedWord(operationName)){ return null; } return operationName; } return operation.getName(); }
/** * * @param port * @param wsdlPort */ protected void applyPortMethodCustomization(Port port, com.sun.tools.ws.wsdl.document.Port wsdlPort) { if (isProvider(wsdlPort)) { return; } JAXWSBinding jaxwsBinding = (JAXWSBinding)getExtensionOfType(wsdlPort, JAXWSBinding.class); String portMethodName = (jaxwsBinding != null)?((jaxwsBinding.getMethodName() != null)?jaxwsBinding.getMethodName().getName():null):null; if(portMethodName != null){ port.setPortGetter(portMethodName); }else{ portMethodName = Names.getPortName(port); portMethodName = BindingHelper.mangleNameToClassName(portMethodName); port.setPortGetter("get"+portMethodName); } }
/** * * @param port * @param wsdlPort */ protected void applyPortMethodCustomization(Port port, com.sun.tools.ws.wsdl.document.Port wsdlPort) { if (isProvider(wsdlPort)) { return; } JAXWSBinding jaxwsBinding = (JAXWSBinding)getExtensionOfType(wsdlPort, JAXWSBinding.class); String portMethodName = (jaxwsBinding != null)?((jaxwsBinding.getMethodName() != null)?jaxwsBinding.getMethodName().getName():null):null; if(portMethodName != null){ port.setPortGetter(portMethodName); }else{ portMethodName = Names.getPortName(port); portMethodName = BindingHelper.mangleNameToClassName(portMethodName); port.setPortGetter("get"+portMethodName); } }
/** * * @param port * @param wsdlPort */ protected void applyPortMethodCustomization(Port port, com.sun.tools.ws.wsdl.document.Port wsdlPort) { if (isProvider(wsdlPort)) { return; } JAXWSBinding jaxwsBinding = (JAXWSBinding)getExtensionOfType(wsdlPort, JAXWSBinding.class); String portMethodName = (jaxwsBinding != null)?((jaxwsBinding.getMethodName() != null)?jaxwsBinding.getMethodName().getName():null):null; if(portMethodName != null){ port.setPortGetter(portMethodName); }else{ portMethodName = Names.getPortName(port); portMethodName = BindingHelper.mangleNameToClassName(portMethodName); port.setPortGetter("get"+portMethodName); } }
/** * * @param port * @param wsdlPort */ protected void applyPortMethodCustomization(Port port, com.sun.tools.ws.wsdl.document.Port wsdlPort) { if (isProvider(wsdlPort)) { return; } JAXWSBinding jaxwsBinding = (JAXWSBinding)getExtensionOfType(wsdlPort, JAXWSBinding.class); String portMethodName = (jaxwsBinding != null)?((jaxwsBinding.getMethodName() != null)?jaxwsBinding.getMethodName().getName():null):null; if(portMethodName != null){ port.setPortGetter(portMethodName); }else{ portMethodName = Names.getPortName(port); portMethodName = BindingHelper.mangleNameToClassName(portMethodName); port.setPortGetter("get"+portMethodName); } }