Creating UML data sources

A Unified Modeling Language (UML) data source consists of one or more instance models or metamodels, or a combination of them. To create a data source, you configure connections to these instance models and metamodels.

Before you begin

Data sources are associated with report designs, which are files that have RPTDESIGN as a file name extension. You must have a report design before you start this task. To create a new report design, see the related task named "Creating report designs for model information reports."

The UML data source allows report designs to access data from UML models. Unlike an EMF data source, a UML data source allows access to data from UML extensibility features such as profiles and stereotypes.

About this task

To create a UML data source:

Procedure

  1. Open the Data Explorer view: Click Window > Show View > Other > Report Design > Data Explorer.
  2. In the Report Explorer or Project Explorer view, right-click a report design; then click Open.
  3. In the Data Explorer view, right-click Data Sources; then click New Data Source.
  4. Select UML Data Source as the data source type, type a name for the data source, and click Next.
  5. Specify at least one source to use. The UML metamodel and notation metamodel are listed by default, but you can also specify one or more model instances, one or more metamodels, or a combination of both. To specify sources, complete the following steps:
    1. To include a UML instance model as the source for report data, click the first Add button, and load the URI for the instance model.
    2. To specify a metamodel as the schema for your data, click the second Add button, and load the metamodel.
  6. To verify that you entered the source information correctly and that the sources are accessible, click Test Connection and, after the test succeeds, click OK.
  7. Click Finish.

What to do next

You can now use this data source as the basis for a UML data set.

Feedback