Consequences of applying the pattern
Model after use of the pattern
The result below is obtained through the creation of the "Name" class of events on the "name" attribute, with the "NameChanged" and "EmptyName" events on the "data" association of the "Data" event class, with the "DataChanged" event.

Figure 141. Transformed model
Summary of transformations
The execution of the pattern results in the creation or the update of an "events" package in the package of the class which owns the attribute or the association, from which the pattern was launched.
In this package, the following elements are created or updated:
· an event class
· an interface which is complemented by classes used to listen to the type of events above
· an adapter class to be redefined, which would be an alternative to the interface above, to listen to the type of events above
Furthermore, the class that contains the attribute or association on which the pattern was launched is enriched with methods and associations.