Tuesday, February 12, 2019

UML Properties dialog box (Operations category)

UML Properties dialog box (Operations category)

Use the Operations category to add, edit, or delete operations.

Operations

Lists the operations you have defined for the class.

To quickly edit the most commonly used settings for an operation, click a field in the Operations list, and then select or type a value.

To access all of the settings for an operation, select the operation in the Operations list, and then click Properties.

  • Operation  Type or edit an identifier string as a name for the operation. Typically, operation names begin with a small letter, for example, display (): Location.

  • Return Type  Choose an implementation type for the value returned by the operation. If the data type you want isn't listed, right-click a data types package in the tree view, point to New, then click DataType, or create a new class.

  • Visibility  Choose the visibility (public, private, or protected) that applies to the operation. Public means the operation is publicly available to any class. Protected means the operation is available inside the class and to its subclasses. Private means that the operation can only be used inside the class.

  • Polymorphic  Select if the implementation of the operation can be overridden by subclasses and methods can be defined by subclasses. Leave unselected if the method realizing the operation is inherited unchanged by all descendants.

  • Scope  Choose instance if the operation is only applicable to objects created using the class. Choose classifier if the operation can be applied to the class itself.

New

Click to add an undefined operation to the list of operations.

To quickly edit the most commonly used settings for an operation, click a field in the Operations list, and then select or type a value.

To access all of the settings for an operation, select the operation in the Operations list, and then click Properties.

Duplicate

Click to add a new operation to the list with the same property values as the selected operation.

Delete

Click to delete the selected operation from the list.

Move Up/Move Down

After you select an operation under Operations, click to change the order in which the operation is stored. You can only reorder within the same classifier.

Properties

After you select an operation under Operations, click to display categories where you can edit the property values associated with the operation: Operations, Details, Parameters, Exceptions, Constraints, and Tagged Values.

Methods

Click to display the UML Methods Properties dialog box, where you can specify method bodies for overridden polymorphic operations and for operations of interfaces implemented by the class.

No comments:

Post a Comment