public String write() { String result = "if "; if (condition == null) result += "()"; else result += "(" + condition.write() + ")"; result += " then "; if (action == null) result += "{}"; else result += "{" + action.write() + "}"; return result; }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public ActionDescription getAction() { if (action != null && action.eIsProxy()) { InternalEObject oldAction = (InternalEObject) action; action = (ActionDescription) eResolveProxy(oldAction); if (action != oldAction) { if (eNotificationRequired()) eNotify( new ENotificationImpl( this, Notification.RESOLVE, OMPackage.CONDITIONAL__ACTION, oldAction, action)); } } return action; }