Reviewing UML models

You can run a UML Model Review analysis configuration on a UML model to detect several different types of problems in the model. For example, you can check your model for orphaned elements, interfaces with private operations, or cross-model dependencies. UML review rules are grouped into six categories: completeness, correctness, coupling, Java™ naming, style, and traceability.

Procedure

  1. Click Run > Analysis.
  2. In the Analysis window, right-click Software Analyzer; then click New.
  3. In the Name field, type a name for the configuration.
  4. On the Scope page, select one of the following options:
    • To analyze all the resources in your workspace, click Analyze entire workspace.
    • To analyze resources in a working set that you previously defined, click Analyze a resource working set and select the resource working sets to include in the analysis.
    • To analyze specific projects, click Analyze selected projects and select the projects to include in the analysis.
  5. On the Rules page, complete the following steps:
    1. In the Analysis Domains and Rules list, select UML Model Review.
    2. On the Properties tab, click the Analyze referenced resources checkbox to also analyze resources references from your scope.
    3. In the Analysis Domains and Rules list, expand UML Model Review and expand any of the five rules categories. Select the check boxes for all the rules that you want to check.
  6. Optional: To change the default value of one of the parameters, select the rule and change the corresponding value on the Properties tab.
  7. Click Apply and click Analyze. The results are displayed in the Software Analyzer Result view, on the UML Model Review tab.
  8. Optional: To work with the results of the analysis, in the Analysis Result view, click the Model Review for UML tab and complete any of the following steps:
    • To filter the results to display only problems, click Filter. Click Filter again to display all results.
    • To export model review analysis results to an XML file, click Export. Select the export format and file name and click OK.
    • To generate an HTML or PDF report of the analysis results, click Generate a report, select the report format, and click OK.
    • To navigate from a result in the Analysis Result view to a problematic element in the Project Explorer view, either right-click the result; then click View result or double-click the result.
    • To apply a quick fix, select and right-click a result; then select the suggested fix.

Feedback