Creating a package Creating a package In Rational Rhapsody, every class belongs to a package. Classes drawn explicitly in a package are placed in that package in the model. Classes not drawn explicitly in a package are placed in the default package of the diagram. If you move a class to a package, it is also placed in that package in the model. If you do not connect this diagram to a package with the browser, Rational Rhapsody assigns the diagram to the default package of the model. To draw a package in the diagram: 1. Select the Package icon. 2. Click once in the diagram. Now you must define the package using the Features window. 3. Right-click the package and select Features .
Package features The Features window allows you to define the characteristics of a package, such as its Name or Main Diagram. Љ Name specifies the name of the package. Package names cannot contain spaces or begin with numbers. Љ L specifies the label for the element, if any. For information on creating labels, see Descriptive labels for elements . Љ Stereotype specifies the stereotype of the package, if any. They are enclosed in guillemets, for example «s1» and enable you to tag classes for documentation purposes. For information on creating stereotypes, see Stereotypes . Note that package stereotypes are not constructive (see Constructive dependencies ).
Љ Main Diagram specifies the name of the diagram of which this is a component. The Description tab allows you to write a detailed description of the package. The Relations tab lists all of the relationships of the package. The Tags tab lists the available tags for this package. The Properties tab enables you to define code generation properties for the package. Rational Rhapsody 547