Profile reapplication [message #581835] |
Fri, 02 February 2007 16:55 |
Chokri Mraidha Messages: 28 Registered: July 2009 |
Junior Member |
|
|
Hello,
The specification of Package#applyProfile() is:
Applies the current definition of the specified profile to this package
and automatically applies required stereotypes in the profile to elements
within this package's namespace hieararchy. If a different definition is
already applied, automatically migrates any associated stereotype values
on a "best effort" basis (matching classifiers and structural features by
name).
According to this specification when I reapply a profile to a model M the
stereotypeApplications of M are migrated to the new profile application
(new definition).
But when I call applyProfile with a profile already applied this migration
is not performed and I have two stereotypes available (one for the old
profile and one for the new one).
The result is something like this in the uml file:
<Test:Stereotype_0 xmi:id="_WATyMLLcEduZAKbcGyKgJg"
base_Element="_QAoHsLLcEduZAKbcGyKgJg">
<Property_0>hello world</Property_0>
</Test:Stereotype_0>
<Test_1:Stereotype_0 xmi:id="_sz--ULLcEduZAKbcGyKgJg"
base_Element="_QOLbgLLcEduZAKbcGyKgJg">
<Property_0>new hello world</Property_0>
I am using uml2 2.0.3. Do I have to do something else than calling
Package#applyProfile() to make the migration occur?
Cheers,
Chokri
|
|
|
Powered by
FUDForum. Page generated in 0.03194 seconds