Sorting and filtering specific attributes and operations

In UML diagrams, you can sort and filter the display of attributes and operations in classifiers to reduce the complexity or increase the abstraction level of your diagrams.

You must have a diagram open in the diagram editor, and the classifiers attributes and operations list compartments must be visible. Ensure that you have not set preferences to filter or hide attributes and operations.

You can sort and filter attributes and operations to determine what users see in your diagram. You can sort the contents of individual compartments by visibility, name, and type. You can also filter the contents of compartments, individually or collectively, by visibility. For example, you might choose to display only public attributes and operations in a model that describes an application programming interface (API), so that users see only the public interface of the API.

To sort and filter attributes and operations:

  1. In the diagram editor, right-click a classifier that contains attributes or operations; then click Filters > Sort/Filter Compartment Items.
  2. In the Sort/Filter Compartment Items window, expand All Compartments and click Attribute or Operation.
  3. On the Attribute or Operation page, complete one of the following steps:
    • To filter attributes or operations, in the Filter criteria list, click the visibility property that you want to hide, and click the left arrow to add it to the Filter Items Containing list.
    • To sort and filter attributes or operations, in the first column of the sorting table, select the attributes or operations that you want to sort, and click the column titles to sort by visibility, name, attribute type, or return type.
Tip: To change the order of the classifier’s attributes or operations without reference to visibility, name, or type, in the Sort/Filter Compartment Items window, click the up arrow and down arrow.

Parent topic: Managing attributes and operations in classifiers

Related concepts
Attributes
Operations

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.