Presenting UML Class Diagram in Different Programming Languages Written Date : February 16, 2016

Similar documents
From Data Modeling to Data Dictionary Written Date : January 20, 2014

ecw Weekly Users Tip: My Settings: Template-Friendly Settings & My Favorites: Templates

Tutorial Overview Quick Tips on Using the ONRR Statistical Information Website

Setting Up Outlook on Workstation to Capture s

Google Sites. How to create a site using Google Sites

quick start guide A Quick Start Guide inflow Support GET STARTED WITH INFLOW

Microsoft Office PowerPoint Creating a new presentation from a design template. Creating a new presentation from a design template

PUBLIC. How to Use in SAP Business One. Solutions from SAP. SAP Business One 2005 A SP01

Microsoft Excel 2013: Using a Data Entry Form

Drawing BPMN 2.0 Business Process Diagram Written Date : March 9, 2016

Searching Medical Device Alerts on the Health Devices Alerts Database. An online tutorial October 2014

Creating Database Tables in Microsoft SQL Server

Excel 2013 What s New. Introduction. Modified Backstage View. Viewing the Backstage. Process Summary Introduction. Modified Backstage View

Welcome to the topic on Master Data and Documents.

ios 9 Accessibility Switch Control - The Missing User Guide Updated 09/15/15

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Microsoft Project 2013

Umbrello UML Modeller Handbook

BT Quantum Unified Communicator Client Outlook Upgrade Installation Guide

How to set up your Secure in Outlook 2010*

Creating a New Project

Document Revision Date: August 14, Create a New Data Protection Policy in the Symantec.cloud Management Portal

Excel Tutorial. Bio 150B Excel Tutorial 1

IP Phone Services Configuration

Aladin. There are currently two recommended links for Aladin. Suitable for most users, the default Aladin link is:

Google Sites: Site Creation and Home Page Design

KFUPM. Web Content Management System powered by SharePoint

Making an online form in Serif WebPlus

Pop up blocker test XP Service Pack 2 - Pop Up Blocker

Mail Merge (Microsoft Office 2010)

Creating tables of contents and figures in Word 2013

Introduction to Microsoft Access 2003

Access Tutorial 1 Creating a Database

Desktop Configurations For General Ledger and Financial Reports. User Guide

Data Warehouse. Business Objects

Process Document Approve Payable Time

Using Microsoft Word. Working With Objects

Intellect Platform - Tables and Templates Basic Document Management System - A101

LAB 6: Code Generation with Visual Paradigm for UML and JDBC Integration

UC Express Quick Start Guide

Working with SQL Server Integration Services

Pivot table example. Pivot tables are a useful tool for organizing data in excel. To make a pivot table:

Lab 7.1.9b Introduction to Fluke Protocol Inspector

This is a training module for Maximo Asset Management V7.1. In this module, you learn to use the E-Signature user authentication feature.

MONAHRQ Installation Permissions Guide. Version 2.0.4

First Settings Check for your Internet Explorer 7.0. Please make sure that you follow the settings process on all pages attached

1. Click the Site Actions dropdown arrow and select Show Page Editing Toolbar. 2. Click Edit Page to begin changing the page layout

KEYBOARD SHORTCUTS. Note: Keyboard shortcuts may be different for the same icon depending upon the SAP screen you are in.

Migrating MS Access Database to MySQL database: A Process Documentation

Introduction to Microsoft Word 2003

Kepware Technologies OPC Quick Client Connectivity Guide

Using Word 2007 For Mail Merge

Livezilla How to Install on Shared Hosting By: Jon Manning

Access Tutorial 6: Form Fundamentals

Microsoft Office 2010

Getting Started Guide

To export data formatted for Avery labels -

Integrating CaliberRM with Software Configuration Management Tools

Publishing, Consuming, Deploying and Testing Web Services

How to Download Census Data from American Factfinder and Display it in ArcMap

Excel Pivot Tables. Blue Pecan Computer Training Ltd - Onsite Training Provider :: :: info@bluepecan.co.

Setting Up a New Project

Toad for Data Analysts, Tips n Tricks

Scan Physical Inventory

Software Licensing Management North Carolina State University software.ncsu.edu

HOW TO CREATE AN HTML5 JEOPARDY- STYLE GAME IN CAPTIVATE

Word 2010: Mail Merge to with Attachments

Working with sections in Word

HP MyRoom Customize View Quick Reference Guide

To Begin Customize Office

Access Tutorial 1 Creating a Database. Microsoft Office 2013 Enhanced

Document Versions in ProjectWise

Visio Tutorial 1BB50 Data and Object Modeling (DOM) How to make a UML Class Diagram 2004/2005

Registration Instructions. Visual Basic 2010 Express Software

Bitrix Site Manager 4.1. User Guide

GUIDE FOR SORTING RX HISTORY REPORTS IN MICROSOFT EXCEL

DbSchema Tutorial with Introduction in SQL Databases

Knowledgebase Article

How to Concatenate Cells in Microsoft Access

Excel 2003: Ringtones Task

Microsoft Project 2007 Level 2: Working with Resources and Managing a Project

Accounts Receivable: Importing Remittance Data

Microsoft Office Access 2007 Basics

Microsoft Excel 2013: Macro to apply Custom Margins, Titles, Gridlines, Autofit Width & Add Macro to Quick Access Toolbar & How to Delete a Macro.

GEOREFERENCING HISTORIC MAPS USING ARCGIS DESKTOP 10

Printing Solutions for Word Printing Solutions for Word Printing Solutions for Word Printing Solutions for Word 2003

How to Configure and Use MRP

IP phone services setup

ESPN XDS Satellite Receiver Configuration Information

Java. How to install the Java Runtime Environment (JRE)

CATIA Basic Concepts TABLE OF CONTENTS

INTEGRATION WITH OPTIMALJ. user s guide

Automate tasks with Visual Basic macros

Fault Analysis I PowerWorld Corporation

Data Flow Diagram (DFD) Tutorial Written Date : January 27, 2012

Microsoft Access Rollup Procedure for Microsoft Office Click on Blank Database and name it something appropriate.

Tutorial Build a simple IBM Rational Publishing Engine (RPE) template for IBM Rational DOORS

How to Make the Most of Excel Spreadsheets

EXCEL Using Excel for Data Query & Management. Information Technology. MS Office Excel 2007 Users Guide. IT Training & Development

Vodafone PC SMS (Software version 4.7.1) User Manual

Transcription:

Presenting UML Class Diagram in Different Programming Languages Written Date : February 16, 2016 Unified Modeling Language (UML) is a generic modeling language that is independent of any particular programming language. Generally speaking, developers should be able to read and understand the diagrams without problem, regardless of the programming language he use. But to make things easier to understand, you can optionally present your UML class model in specific language. To be specific, data types to use an attributes and operations can be presented in language specific names like 'boolean' in Java and 'bool' in C#. In this tutorial, we will show you how to present a class model in different programming languages. Creating a project in specific language In this section we will show you how to create a new project in specific programming language. By doing so you can easily select the language-specific types in constructing a class model. Do not worry if you have not been doing this in your production projects. You can switch between languages any time you want. We will show you how to do this in the next section. 1. Select Project > New from the application toolbar. 2. In the New Project window, enter as Name. http://www.visual-paradigm.com/tutorials/uml-class-diagram-in-diff-programming-languages.jsp Page 1 of 6

3. By default, UML is selected to be the Data type set, meaning that you can use the primitive UML data types when constructing your model. Let's say we are going to draw a class diagram for a Java project. Select Java to be the Data type set. 4. Click Create Blank Project. Creating a simple UML class diagram In this section you will create a class diagram with one class, and several attributes in it. You will be creating the attributes with primitive Java data types. http://www.visual-paradigm.com/tutorials/uml-class-diagram-in-diff-programming-languages.jsp Page 2 of 6

1. Create a UML class diagram first. You can create a class diagram by selecting Diagram > New from the application toolbar. Select Class Diagram in the New Diagram window and then click Next. Click OK again to create the diagram. 2. Click a class User. 3. Let's add an attribute name into the class. Right click on the class and select Add > Attribute from the popup menu. http://www.visual-paradigm.com/tutorials/uml-class-diagram-in-diff-programming-languages.jsp Page 3 of 6

4. name is a (Java) String attribute. You can type name : String to create such an attribute but let's try something different this time. Type name and then click on the diagram background to create a typeless attribute. 5. Right click on the attribute and select Open Specification... from the popup menu. 6. Click on the drop down menu next to the Type field. You can see a list of primitive Java data types available for selection. Now, select String and click OK to confirm. 7. Now, create two more attributes age : int and active : boolean. To save time, you can type the name and data type inline without going through the specification window. Presenting class model in another programming language Now you have a class diagram with Java data types used as attribute types. Your Java developers are happy. Let's entertain the C# developers by presenting the data types in C#. 1. Select Window > Configuration > Configure Programming Language from the application toolbar. http://www.visual-paradigm.com/tutorials/uml-class-diagram-in-diff-programming-languages.jsp Page 4 of 6

2. The Programming Language window shows the currently selected language, its supported data types and their corresponding display names. We will describe in more detail in a minute. Now, change Language from Java to C#. The list of data types is updated, and is now longer than before. If you scroll you can see some C# types like uint and ulong, which are not available in Java. So how to read the two columns? Let's check the row for String type. The first and second columns are showing String and string respectively. This means that the original String type (available under Java) will be displayed as string by changing the language to C#. http://www.visual-paradigm.com/tutorials/uml-class-diagram-in-diff-programming-languages.jsp Page 5 of 6

3. Click OK to confirm the change of programming language. You can now see the attributes name is now showing as a C# string, while active is now a C# bool instead of a Java boolean. Related Links 1. User's Guide - Data type options Visual Paradigm home page (http://www.visual-paradigm.com/) Visual Paradigm tutorials (http://www.visual-paradigm.com/tutorials/) http://www.visual-paradigm.com/tutorials/uml-class-diagram-in-diff-programming-languages.jsp Page 6 of 6