Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Unable to resolve applicable stereotype
Unable to resolve applicable stereotype [message #598483] Wed, 14 March 2007 15:19
Paul Gribben is currently offline Paul GribbenFriend
Messages: 28
Registered: July 2009
Junior Member
Hello,

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.
Thanks
Previous Topic:Extending Association with Profile
Next Topic:Unable to resolve applicable stereotype
Goto Forum:
  


Current Time: Thu Apr 25 01:21:18 GMT 2024

Powered by FUDForum. Page generated in 0.03185 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top