Valid names 

A valid UML object name begins with either a lowercase letter from a to z, an uppercase from A to Z, or an underscore (_). The subsequent characters of a valid name can be a lowercase letter from a to z, an uppercase letter from A to Z, or a number form 0 to 9. You can also use a colon (:) in an operation name to enter proper names for friend functions.

The transformation prefixes any name that begins with a number as well as replaces all invalid characters with an underscore (_).

The transformation checks the uniqueness of names in a relevant namespace. Namespaces can be implied (for example, a class for the attributes in the class) or explicit (defined by the cpp_namespace stereotype).

If the transformation detects a name collision, the duplicate name receives the suffix "_<number>".

The following warning appears if the transformation finds an invalid name:

Element "..." was renamed into "..."

While the transformation generates correct code for such elements, you should change in the UML model any invalid names that the transformation detects to improve the readability of the code and to reduce the differences between the UML model and generated code.

Top

Terms of use | Feedback
(C) Copyright IBM Corporation 2004. All Rights Reserved.