Object model diagrams Attributes, operations, variables, functions, and types In object model diagrams, attributes and operations are contained in classes. Therefore, they are not included as separate items in the Diagram Tools . Similarly, variables, functions, and types are not included in the Diagram Tools . There might, however, be situations where you will want to show a higher level of detail and include attributes, operations, variables, functions, or types as individual diagram elements.
Rational Rhapsody provides a solution for these situations by allowing you to drag these elements from the browser to an OMD diagram Adding details to the object model diagram To add an attribute, operation, variable, function, or type to the diagram: 1. Select the relevant item in the browser. 2. Drag the item to the diagram window. Note Rational Rhapsody allows these types of elements to be dragged from the browser to any of the static diagrams, not just object model diagrams.
When an item of this type is added to a diagram, the graphic element will display by default, the element name, the stereotype applied (if there is one) or the metatype of the element, and the associated image (if one has been defined). Like all diagram elements, the Features window for these elements can be opened by double- clicking on the element in the diagram. The connectors provided in the Diagram Tools can be used to connect individual elements of these types if the connection is semantically logical.
Once an element has been added to a diagram, the element can be added to a container element by dragging the element into the container element, for example, an attribute on the diagram can be dragged into a class. Note Graphic representations for these types of items can only be created by dragging them from the browser to the diagram. There is no API equivalent for this action. 596 User Guide