You
could still assign stereotype to packages. The only exception is that
there is no user interface provided to modify the properties of a dependency
relationship (DR) between packages since such relationship does not affect how
the code is generated.
However, you could change the stereotype using a script. For
example, create a model with few packages directly under the Logical View and
add some dependency relationships among those packages. Then run the
following script to see that you can indeed assign a stereotype to
DRs.
'--- SCRIPT START
Sub Main
Dim theCats As CategoryCollection Set theCats =
RoseApp.CurrentModel.RootCategory.Categories
Dim theDR As
CategoryDependency
Dim theDRs As CategoryDependencyCollection For i = 1 To
theCats.Count
Set theDRs = theCats.GetAt(i).GetCategoryDependencies() For j = 1 To theDRs.Count theStereotype$ = "STEREOTYPE-" & i & "-" & j theDRs.GetAt(j).Stereotype = theStereotype$ Next j Next i End Sub '--- SCRIPT END Note
that, the way these DRs stored in the model are different, i.e. the DR between
packages is a different element than the DR between classes. For more
information, please see the online help. Specifically, the DR between
packages is called CategoryDependency and the DR between classes is called
ClassDependency.
|
- (ROSE) Dependency Nikolay Alexiev
- (ROSE) Dependency Alexiev, Nikolay
- (ROSE) Dependency Anurag Shah-Edventure Systems
- RE: (ROSE) Dependency Nallamilli, Surya
- RE: (ROSE) Dependency Angay, Huseyin
- (ROSE) Dependency Alexiev Nikolay
- RE: (ROSE) Dependency Viswanathan, Annamalai
- RE: (ROSE) Dependency Alexiev Nikolay
- (ROSE) how to clone the activity di... Bruce Ling
- (ROSE) Dependency Alexiev, Nikolay