Rational Rhapsody attributes

To create a custom template to include information about the IBM® Rational® Rhapsody® class attributes and types, as well as the child attributes and types of each class attribute.

About this task

Rational Rhapsody data source schema structure:
With this schema, you can generate an IBM Rational Publishing Engine document that displays:
  • The attributes of the class
  • For each class attribute, its type, and then the attributes of that type
  • For those attributes, their types

Rational Publishing Engine allows drilling into the class, the class attributes, and the types of those attributes. Then the Rational Publishing Engine schema starts referring to nested elements and nested elements do not have types that can be drilled into.

The schema defines the Attribute > Type relation, which represents a Classifier. Classifier is the base type for all of the possible types an attribute can have.

In Rational Publishing Engine, the CAST can be applied only to the last segment of the query. Query examples:
  • Correct: Packages/Packages/NestedElements/ModelElement(Class)
  • Incorrect: Packages/Packages/NestedElements/ModelElement(Class)/Attributes

To make the second query example valid, you must split it in two queries:

Procedure

  1. From the Palette view, drag a Container icon Container element into the template content editor.
  2. From the Data Source Schema view, drag the ownedMember class into the container element.
  3. Optional: Name the container Class Container for easier reference.
  4. Click the Cast to type icon Cast to Type icon to add the Class type cast for the ownedMember.
  5. Add a Paragraph icon Paragraph element below the container element.
  6. From the Data Source Schema view, drag the Name(string) attribute into the Class Container to add the name of the package.

Feedback