Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » Problems when geting values from stereotypes
Problems when geting values from stereotypes [message #597577] Fri, 03 April 2009 04:59
Sorin Fagateanu is currently offline Sorin Fagateanu
Messages: 46
Registered: July 2009
Member
Hello,

Supose I have the stereotype "Animal" with field "age:int" and inheriting
stereotype "Dog" and the element X has the "Dog" stereotype applied.

When I do X.isStereotypeApplied(Animal) it returns me false althougth
Dog is a sub-stereotype of Animal.


I would have expected that doing something like :
X.getValue(Animal,age)
it would return me the value of age field from Dog.Instead it throws me an
IllegalArgumentException because inside there is code that checks if the
Animal stereotype is applied to X.

My pourpuse is to get the value age from all stereotypes(many of them)
inheriting Animal only by accessing the getValue(Animal,age).

Is it possible or are there other solutions?


Thank in advance for your answers!
Previous Topic:[UML2] Tutorials on use-case diagrams?
Next Topic:Problems when geting values from stereotypes
Goto Forum:
  


Current Time: Thu Aug 21 18:20:43 EDT 2014

Powered by FUDForum. Page generated in 0.01443 seconds