Implementing the profile

 

Creating a J profile implementation

The next step in this quick tour is to create the J profile implementation that implements the profile containing the UML extensions defined in the previous steps. To do this, simply carry out the operations shown in Figure 12.

 

Figure 12. Creating the “JavaProfileImplementation” J profile implementation

 

Steps:

1.      In the explorer, select the “Behavior profiles” folder.

2.      Click on the  icon in the explorer palette. The “J profile implementation” window then appears.

3.      In this window, enter a name for the J profile implementation (“JavaProfileImplementation”).

4.      Confirm by clicking on the “OK” button.

 

The newly defined “JavaProfileImplementation” J profile implementation is then created and contains a link to the reference metamodel and to the "ObjecteeringTypes" package.

 

We are now going to continue by linking the “JavaProfileImplementation” J profile implementation to the “Java” profile created earlier.

 

Figure 13. Linking the new “JavaProfileImplementation” J profile implementation to the previously defined “Java” profile

 

Steps:

1.      Select the “JavaProfileImplementation J profile implementation in the explorer.

2.      Click on the  icon in the explorer. The “Profile realization” window then appears.

3.      In this window, select the “Java” profile.

4.      Confirm creation of this new J profile implementation link by clicking on “OK”. You can double-click directly on the “Java” profile without having to click on the “OK” button.

 

For more information on creating J profile implementations, please see “Defining a J profile implementation”.