UML Modeling Techniques > Class modeling > Creating class modeling items > Creating a data type
  
Creating a data type
You can create a Data Type through a Class Diagram or a Modeler pane.
To create a data type through a class diagram:
1. On the Class Diagram toolbar, click the Data Type button, and then click on the diagram in free space or within a Package.
If you click within a Package on the diagram, the Data Type is created as a child item of that Package.
2. Type the name of the Data Type, and then press the Enter key.
To create a data type through a Modeler pane:
1. In a Modeler pane, locate the item that is to own the Data Type, that is, a Package, Class, Interface or the Model.
2. Right-click the owning item.
3. Point to New, and then click Data Type or Point to New, point to UML, point to Structure, and then click Data Type
4. Type the name of the Data Type, and then press the Enter key.