Setting attributes, parameters, and operation types in capsule-based UML models

This content applies to version 7.5.4 or later. You can edit and view native types in capsule-based UML models.

About this task

The native language types can be specified directly on the General tab in the UML type field. The Type field is now editable and supports direct entry of a non UML type, such as int *. This is available for attribute type and parameter types.

To set the type of capsule-based UML model elements:

Procedure

  1. Select the attribute, the operation, or the parameter that you want to modify.
  2. In the Properties view, on the General page, type a string value.

    Headers

    If the current language of the model does not support complex types, then the Type text box is disabled
  3. To select the UML type, click Select type.
    Note: The UML type of the element is set to the type that is specified in the dialog box. For example, if the existing native type is “bool *”, and the UML type is changed to “int”, the native type helper updates the native type to “int”.
  4. Click OK.

Feedback