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

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

Current Time: Thu Jun 21 10:45:21 GMT 2018

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

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

Back to the top