Follow
these guidelines
for the names of
the model elements:
- Class names begin with
an uppercase letter, such
as System.
- Operations and
attributes begin with lowercase
letters, such as restartSystem.
- Uppercase
letters separate concatenated words,
such as checkStatus.
- Do not
use the same name for different elements
in the model because it will cause code generation problems. For example,
do not have a class, an interface, and a package with the same name
of Dishwasher.
- About special
characters:
- Do not include special characters
in the name for
an element if the element is used for code generation.
- You can use special characters in the labels for
model elements.
- The following elements are
the only ones for which
you can include special characters: Dependencies, Stereotypes, Flows,
Links, Configurations, Table layouts, Table views, Matrix layouts,
Matrix views, Requirements, Actors, Use Cases, and all diagrams.
- You can use the General::Model::NamesRegExp property
to control what special characters are allowed. For detailed information
about a property, see the definition displayed in the Properties tab
of the Features window.
- While you can use spaces
(but not
special characters) in the names for actors, it is not typical because
the spaces might cause problems during code generation.