Namespaces and Naming Constraints

Naming conventions are set using regulations for pictures (name pattern), writing, length and uniqueness of names.

Namespaces and Packages

Elements need to be able to be differentiated between by their names within their namespaces they are directly linked with. A package is used as an example when grouping elements and provides a joint namespace for these elements directly contained in the package.

Namespaces can be nested and contain elements which can be given names; these elements, in turn, represent a namespace for elements they contain. e.g. classes need to have unique names within a package, operations need to have unique names within a class and parameters need to have unique names within an operation.

A package's contents consists of so-called "packageable elements". Classes, events etc. belong to these, as well as packages themselves; this enables the packages to be hierarchically arranged. A package is the owner of these elements. This means that all elements contained are deleted from a model as soon as this package is deleted.

Unique Naming

The elements' stereotypes can be used when setting namespaces in the configuration. This means you can set whether case sensitivity is relevant, whether they should have a certain minimum or maximum length and in what respect the name has to be unique.

The range of name verification means that uniqueness can be controlled step-by-step.

Naming Constraints

Name patterns can be defined for elements in the configuration via their stereotype. Regular expressions are used for this. Stereotypes inherit these name patterns and can then add requirements to these inherited naming constraints.

 

 

© 1986-2014 MID GmbH Nuremberg Germany. DIN EN 9001 certified. All rights reserved.