IBM® Rational® Rhapsody® ReporterPLUS adds
some boilerplate text and attributes to the template automatically.
About this task
To add additional text and attributes,
follow these steps:
Procedure
- Click the class iteration subnode in the
template view (…iterate over association "classes").
- Click to place the cursor in the body section
of the Text tab, before the [CR] (carriage return)
code.
Note: If you have difficulty placing
the cursor exactly where you want it, click anywhere in the body of
the Text tab, then use the arrow keys to move the cursor into position.
- Type Description: followed
by a space.
- In the model view, click classes under
the containedPackages node.
The
attribute view displays the attributes for the selected generic element.
These are the items that you can extract from the model and include
in your document for that particular element. The attributes available
depend on the element selected in the model view.
- In the attribute view, click‑and‑drag descriptionHTML to
the body of the Text tab to the right of the "Description:" item.
- Press Enter to add a [CR] code
and move to the next line.
- Type Display Name: followed
by a space.
- In the attribute view, click‑and‑drag displayName to
the body of the Text tab to the right of the "Display Name:" item.
Documents generated from this template include
the name, description, and display name for each class in the Package.
The class name is a heading in the generated document; the description
and display name is body text under that heading.
Note: You can also add attributes from the pop-up menu on
the Text tab. Right-click in the Text tab, then select Add
Attribute. See the Rational Rhapsody ReporterPLUS online
help for instructions on all the methods for adding attributes to
templates.