@Override public void visitAssociation(IAssociationBean ab) { Association a = newInstance(Association.class); a.setId(ab.getId()); setDocumentationAndExtensions(a, ab); a.setAssociationDirection(retrieveAssociationDirection(ab.getDirection())); if(ab.getSource()!=null){ a.setSourceRef(new QName(ab.getSource().getId())); } if(ab.getTarget()!=null){ a.setTargetRef(new QName(ab.getTarget().getId())); } currentArtifactContainer.peek().addArtifact(a); }
if(artifact instanceof Association){ Association a = (Association) artifact; AssociationBean ab = new AssociationBean(a.getId()); setDocumentationAndExtensions(ab, a); ab.setDirection(retrieveAssociationDirection(a.getAssociationDirection())); if(a.getSourceRef()!=null){ ab.setSource(elements.get(a.getSourceRef().getLocalPart())); if(a.getTargetRef()!=null){ ab.setTarget(elements.get(a.getTargetRef().getLocalPart()));