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.
About this task
To review a UML model:
Procedure
- Click .
- In the Analysis window, right-click Software
Analyzer; then click New.
- In the Name field, type a name for
the configuration.
- 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.
- On the Rules page, complete the following
steps:
- In the Analysis Domains and Rules list,
select UML Model Review.
- On the Properties tab, click
the Analyze referenced resources checkbox to
also analyze resources references from your scope.
- 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.
- Optional: To change the default value of one
of the parameters, select the rule and change the corresponding value
on the Properties tab.
- Click Apply and click Analyze.
The results are displayed in the Software Analyzer Result view, on the UML Model Review tab.
- 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.