Visual Paradigm Logo
     Build Quality Applications Faster, Better and Cheaper
Home | Products | Download | Documentation | Support | Resources | Partners | Quick Tour | Shop | Company |  
Products
Visual Paradigm for UML
Smart Development Environment
DB Visual ARCHITECT
Business Process Visual ARCHITECT
Agilian
Visual Paradigm Suite
DB Visual ARCHITECT SQL
Teamwork Server
Home » Highlights »
Printer Friendly Version
 
 

Customizable Data-Types

UML is theoretically a modeling language independent to particular programming language(s). Yet, it is possible to transform between UML models to a software applications or systems. While the pre-defined data-type set works well in the UML world, there is enormous need to ensure the design can be applied to programming source code. Problems comes from the fact that programming languages, by nature, are unlikely to share the same set of data-types suggested by UML. A typical example is about the use of boolean. 'boolean', 'bool' and 'Boolean' are adopted by UML and Java, C# and VB.NET respectively. But they are all referring to the same thing — boolean.

Visual Paradigm lets you choose a programming language that your UML project should be based on. When modeling, you can easily select a data-type that is allowed for the chosen language, without typing it. Besides, new languages and data types can be added, which increase the flexibility of working under different domains.

Configure Programming Language for your project
Programming language can be set when creating a new project. It is also possible to switch to another language in the middle of your design. Let's take a look at how things work:
1. Right-click on the project root node under Diagram Navigator / Model Pane / Class Repository
2. Select Configure Programming Language... from the pop-up menu.
This shows the Programming Language dialog box.
3. Select the language to switch to.
4. The way how data-type will be mapped from the current language to the chosen language is listed in the table, following the data-type definition of that language.
Using data-type
Data-type can be assigned to attributes, operations (as return type) and parameters. This section shows you how to assign data-type through the specification dialog box.
Attribute
1. Select the target class
2. Select the attribute
3. Right-click on it and select Open Specification from the pop-up menu.
4. From the Attribute specification dialog box, select the attribute type from the Type drop-down menu.
Operation
1. Select the target class
2. Select the operation
3. Right-click on it and select Open Specification from the pop-up menu.
4. From the Operation specification dialog box, select the return type from the Return type drop-down menu.
Parameter
1. Follow the first three steps show in the above section to open the Operation specification dialog box
2. Open the Parameters tab
3. Select the parameter.
4. Right-click on it and select Open Specification from the pop-up menu.
5. From the Parameter specification dialog box, select the parameter type from the Type drop-down menu.
Customizing Programming Language and Data-Types
By default, there are six types of (programming) languages for you to choose with. They are:
• Java
• XML Schema
• C++
• Visual Basic
• C#
• UML
Each of them consists of a set of supported data types. Besides working with those default languages and types, you can add your own languages and add data types to it. Here are the steps:
1. Select Tools > Options... from the main menu
This shows the Options dialog box.
2. Open the Data Type page
3. Press on the plus sign to add a language
4. Enter its name, and press OK to confirm.
5. Press Add... to add a data-type to the chosen language.
6. Enter its name, and press OK to confirm.
From now on, once you have set your own language as the language for your project, you can pickup the associated data-types as attribute type, operation return type and parameter type.

Resources

• Know more about Visual Paradigm for UML — A powerful visual UML CASE tool.
http://www.visual-paradigm.com/product/vpuml/
• Look at the features of Visual Paradigm for UML
http://www.visual-paradigm.com/product/vpuml/features/
• Get the Free 30 Days Trial of Visual Paradigm for UML
http://www.visual-paradigm.com/product/vpuml/vpumldownload.jsp
• Learn more on visual modeling feature from Visual Paradigm for UML's online documentation
http://www.visual-paradigm.com/product/vpuml/vpumluserguide.jsp
• View Visual Paradigm for UML's Interactive Tutorials
http://www.visual-paradigm.com/product/vpuml/tutorials/
• Screenshot of Visual Paradigm for UML
http://www.visual-paradigm.com/product/vpuml/vpumlscreenshots.jsp
 
 
 
Home | Products | Shop | Download | Product Support | Resources | Company | Contact Us | Site Map
Patents pending. All rights reserved.
Legal Privacy Statement