/** * @see org.overlord.sramp.common.visitors.HierarchicalArtifactVisitorAdapter#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.Binding) */ @Override public void visit(Binding artifact) { super.visit(artifact); try { artifact.getBindingOperation().addAll(getRelationships("bindingOperation", BindingOperationTarget.class)); //$NON-NLS-1$ artifact.setPortType(getRelationship("portType", PortTypeTarget.class)); //$NON-NLS-1$ } catch (Exception e) { throw new RuntimeException(e); } }
/** * @see org.artificer.common.visitors.HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.Binding) */ @Override public void visit(Binding artifact) { super.visit(artifact); try { artifact.getBindingOperation().addAll(getRelationships( "bindingOperation", artificerArtifact, BindingOperationTarget.class)); artifact.setPortType(getRelationship( "portType", artificerArtifact, PortTypeTarget.class)); } catch (Exception e) { throw new RuntimeException(e); } }
/** * @see org.overlord.sramp.common.visitors.ArtifactVisitorAdapter#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.Binding) */ @Override public void visit(Binding artifact) { super.visit(artifact); PortTypeTarget portType = artifact.getPortType(); if (portType != null && portType.getOtherAttributes().containsKey(WsdlDeriver.UNRESOLVED_REF)) { String encodedRef = portType.getOtherAttributes().remove(WsdlDeriver.UNRESOLVED_REF); QName ref = QName.valueOf(encodedRef); BaseArtifactType artifactRef = findArtifact(ArtifactTypeEnum.PortType, ref); if (artifactRef != null) { portType.setValue(artifactRef.getUuid()); } else { artifact.setPortType(null); } } }
target.getOtherAttributes().put(UNRESOLVED_REF, portTypeQName.toString()); binding.setPortType(target);
ArtifactTypeEnum.PortType.getModel(), ArtifactTypeEnum.PortType.getType())); binding.setPortType(target);