|Unable to resolve applicable stereotype [message #598483]
||Wed, 14 March 2007 15:19
| Paul Gribben
Registered: July 2009
I have deefined a UML profile and have successfully applied it to a model,
applying stereotypes without problems, using the eclipse UML editor.
However I am as yet unable to achieve this in my code.
I've checked that I'm calling model.applyProfile(profile), I create an
owned class for a package (called target) and then do:
Stereotype s = target.getApplicableStereotype(stereotypeName)
This always returns null. I also find that
target.getApplicableStereotypes() returns an empty list.
The code continues to build the model file but without applying
stereotypes. I can then manually apply the stereotypes using the UML
editor later, proving (perhaps) that the stereotypes are valid for the
classes being genereated.
I notice that the UMLArticles example does not use getApplicableStereotype
as it constructs the profile and then uses the stereotype references
directly when applying them to the model later on.
Any help would be greatly appreciated.
Powered by FUDForum
. Page generated in 0.01605 seconds