Adding boilerplate text and attributes

About this task

IBM® Rational® Rhapsody® ReporterPLUS adds some boilerplate text and attributes to the template automatically. In this section, you add additional text and attributes.

To add additional text and attributes, follow these steps:

Procedure

  1. Click the class iteration subnode in the template view (…iterate over association "classes").
  2. 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.
  3. Type Description: followed by a space.
  4. 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.
  5. In the attribute view, click‑and‑drag descriptionHTML to the body of the Text tab to the right of the "Description:" item.
  6. Press Enter to add a [CR] code and move to the next line.
  7. Type Display Name: followed by a space.
  8. 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.

Feedback