Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Retrieving a stereotype'S property with a static profile
Retrieving a stereotype'S property with a static profile [message #627660] Wed, 03 June 2009 11:36
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hey all,

what is the common way to retrieve a property value of a stereotype from
a staric profile?

I assumed, because of the additional code generation step, it had to be
something like this:

Weight w = (Weight)element.getAppliedStereotype(Misc::Weight);
w.getWeight();

But that causes a ClassCastException. I searched in the newsgroup, but i
didn't found the solution yet.

Regards Timothy
Previous Topic:Static Profiles with OCL Integration possible?
Next Topic:Retrieving a stereotype'S property with a static profile
Goto Forum:
  


Current Time: Tue Apr 23 17:45:24 GMT 2024

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

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

Back to the top