Alf code may be used to define the behavior associated with various kinds of elements in a UML model. The Alf code associated with an element is known as the Alf body of that element. The Alf editor provides a consistent way to edit the Alf body of any element to which Alf code may be attached.

This section includes, first, a description of how to use the Alf editor in general, followed by additional information on how Alf is used with each kind of model element that may have an Alf body.