Specifying operations as queries

In UML diagrams, operations that function as queries provide ways to observe the state of a system. You can specify that an operation is a query if it returns a value, but does not change the state of a system.

To specify an operation as a query:
  1. In the diagram editor, click an operation.
  2. In the Properties view, click the General tab.
  3. On the General page, in the Qualifiers field, select the Query check box.
Related concepts
Operations
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.