/** * Get the QNames of the port components to be declared * in the namespaces * * @return collection of QNames */ public Collection<QName> getPortComponentQNames() { //TODO:Check if there is just one QName that drives all portcomponents //or each port component can have a distinct QName (namespace/prefix) //Maintain uniqueness of the QName Map<String, QName> map = new HashMap<String, QName>(); for (PortComponentMetaData pcm : portComponents) { QName qname = pcm.getWsdlPort(); map.put(qname.getPrefix(), qname); } return map.values(); }
/** * Get the QNames of the port components to be declared * in the namespaces * * @return */ public Collection<QName> getPortComponentQNames() { //TODO:Check if there is just one QName that drives all portcomponents //or each port component can have a distinct QName (namespace/prefix) //Maintain uniqueness of the QName Map<String, QName> map = new HashMap<String, QName>(); for (PortComponentMetaData pcm : portComponents) { QName qname = pcm.getWsdlPort(); map.put(qname.getPrefix(), qname); } return map.values(); }
/** * Lookup a PortComponentMetaData by wsdl-port local part * * @param name - the wsdl-port local part * @return PortComponentMetaData if found, null otherwise */ public PortComponentMetaData getPortComponentByWsdlPort(String name) { ArrayList<String> pcNames = new ArrayList<String>(); for (PortComponentMetaData pc : portComponents) { String wsdlPortName = pc.getWsdlPort().getLocalPart(); if (wsdlPortName.equals(name)) return pc; pcNames.add(wsdlPortName); } log.error("Cannot get port component name '" + name + "', we have: " + pcNames); return null; }
/** * Lookup a PortComponentMetaData by wsdl-port local part * * @param name - the wsdl-port local part * @return PortComponentMetaData if found, null otherwise */ public PortComponentMetaData getPortComponentByWsdlPort(String name) { ArrayList<String> pcNames = new ArrayList<String>(); for (PortComponentMetaData pc : portComponents) { String wsdlPortName = pc.getWsdlPort().getLocalPart(); if (wsdlPortName.equals(name)) return pc; pcNames.add(wsdlPortName); } Loggers.METADATA_LOGGER.cannotGetPortComponentName(name, pcNames); return null; }
if (portComp.getWsdlPort() != null) { METADATA_LOGGER.overridePortName(id, endpoint.getPortName(), portComp.getWsdlPort()); endpoint.setPortName(portComp.getWsdlPort());
QName portName = pcMetaData.getWsdlPort();