Specifying a Classifier as a Data Type or Return Type

You can specify a class or an interface in the current model or in another model (including a JDK library) as an attribute or parameter data type or as an operation return type. If the classifier belongs to the current model or package, it is displayed together with the other classifiers. If it belongs to another model or package, a shortcut of the classifier is created in the current package.

Note: For information about generating classifiers linked in this way, see Managing Persistence for Complex Data Types.
  1. Open the appropriate object property sheet:
    • To specify a classifier as an attribute data type, open the attribute property sheet (see Attribute Properties).

    • To specify a classifier as an operation return type, open the operation property sheet (see Operation Properties).

    • To specify a classifier as an operation parameter data type, open the operation property sheet (see Parameters (OOM)).

  2. On the General tab, click the Select Classifier tool to the right of the Data type field, and select a classifier from the list, which lists all available classifiers in all models open in the workspace.


    Note: Select the Use fully qualified name option to include the package hierarchy leading to the classifier.
  3. Click OK to specify the classifier as the Data type.
    Note: You can alternatively enter the code of the classifier directly in the Data type field. To enter a qualified name use a dot separator. For example Manufacturing.Core.Person.