7.1. Object and Attribute Actions

Definition: An action is an individual operation that performs a single task on an element of a model.

When we write object actions, we write the action for an arbitrary object. The target of the action is specified at run time, and is generally held in an object reference variable.

Definition: An object reference is a value that refers to an object.

An object reference is not the object itself.

Figure 7.1 lists syntax for several object and attribute actions, and several examples are shown in Figure 7.2.

Figure 7.1. Syntax for Several Object and Attribute Actions

Figure 7.2. Examples of Object and Attribute Actions ...

Get Executable UML: A Foundation for Model-Driven Architecture now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.