@Override public void visit(ServiceEndpoint artifact) { super.visit(artifact); try { if (artifact.getEndpointDefinedBy() != null) { setRelationship("endpointDefinedBy", RelationshipType.MODELED, artifact.getEndpointDefinedBy()); } } catch (Exception e) { throw new RuntimeException(e); } }
/** * Create an instance of {@link ServiceEndpoint } * */ public ServiceEndpoint createServiceEndpoint() { return new ServiceEndpoint(); }
@Override public void visit(ServiceEndpoint artifact) { super.visit(artifact); try { artifact.setEndpointDefinedBy(getRelationship( "endpointDefinedBy", artificerArtifact, DerivedArtifactTarget.class)); artifact.setUrl(getProperty("url")); // These have to currently be added on the subclass visitors, as they're not currently // on ServiceImplementationModelType itself. artifact.setEnd(getProperty("end")); } catch (Exception e) { throw new RuntimeException(e); } }
/** * @see HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.ServiceEndpoint) */ @Override public void visit(ServiceEndpoint artifact) { visitRelationship("endpointDefinedBy", artifact.getEndpointDefinedBy(), false); super.visit(artifact); }
/** * @see org.overlord.sramp.common.visitors.HierarchicalArtifactVisitorAdapter#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.ServiceEndpoint) */ @Override public void visit(ServiceEndpoint artifact) { visitRelationship("endpointDefinedBy", artifact.getEndpointDefinedBy()); //$NON-NLS-1$ super.visit(artifact); }