public String getRelValue(final ReferenceLink referenceLink) { LinkRelation _linkRelation = referenceLink.getLinkRelation(); String _name = null; if (_linkRelation!=null) { _name=_linkRelation.getName(); } return _name; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public LinkRelation getLinkRelation() { if (linkRelation != null && linkRelation.eIsProxy()) { InternalEObject oldLinkRelation = (InternalEObject)linkRelation; linkRelation = (LinkRelation)eResolveProxy(oldLinkRelation); if (linkRelation != oldLinkRelation) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, RapidmlPackage.REFERENCE_LINK__LINK_RELATION, oldLinkRelation, linkRelation)); } } return linkRelation; }
public LinkRelation getLinkRelation(String linkRelationName) { if (linkRelationRegistry.containsKey(linkRelationName)) { return linkRelationRegistry.get(linkRelationName); } LinkRelation linkRelation = RapidmlFactory.eINSTANCE.createLinkRelation(); linkRelation.setName(linkRelationName); linkRelationRegistry.put(linkRelationName, linkRelation); return linkRelation; } }
String _name_3 = null; if (_linkRelation!=null) { _name_3=_linkRelation.getName();
_builder.append(" "); _builder.append("\"linkRelation\": \"rel: "); String _name = link.getLinkRelation().getName(); _builder.append(_name, " "); _builder.append("\",");