/** * @see org.overlord.sramp.common.visitors.HierarchicalArtifactVisitorAdapter#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.Part) */ @Override public void visit(Part artifact) { super.visit(artifact); try { artifact.setElement(getRelationship("element", ElementTarget.class)); //$NON-NLS-1$ artifact.setType(getRelationship("type", XsdTypeTarget.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.Part) */ @Override public void visit(Part artifact) { super.visit(artifact); try { artifact.setElement(getRelationship( "element", artificerArtifact, ElementDeclarationTarget.class)); artifact.setType(getRelationship( "type", artificerArtifact, XsdTypeTarget.class)); } catch (Exception e) { throw new RuntimeException(e); } }
typeTarget.getOtherAttributes().put(UNRESOLVED_REF, qname.toString()); part.setType(typeTarget);
type.setValue(artifactRef.getUuid()); } else { artifact.setType(null);
ArtifactTypeEnum.SimpleTypeDeclaration.getType(), ArtifactTypeEnum.ComplexTypeDeclaration.getType())); part.setType(typeTarget);