How to name a package with spaces in Rational Rhapsody

Technote (FAQ)


Question

How do you name a package with spaces / slashes or dashes in IBM Rational Rhapsody?

Cause

You have a requirement to include space or dash in the package name of your model in Rational Rhapsody.

Answer

The General::Model::NamesRegExp property specifies the regular expression describing the format of a legal name of an element. You may manipulate this property to allow spaces or slashes in the name of an element.

To do this, you need to add a space after the underscore in the default value, as follows:

^(([a-zA-Z_][a-zA-Z0-9_ ]*)|(operator.+))$

Note: This change applies to all types of named elements. If you are going to generate code for the element, spaces in some element names are not allowed (for example, class names). Therefore, you would most likely use this property for elements that never participate in code generation, such as an analysis (not design) package.

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Rhapsody
General Information

Software version:

7.6.1, 7.6.1.1, 7.6.1.2, 7.6.1.3, 8.0, 8.0.1, 8.0.2

Operating system(s):

Windows

Reference #:

1641772

Modified date:

2013-06-24

Translate my page

Machine Translation

Content navigation