Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Question about extending classes with multiple stereotypes
Question about extending classes with multiple stereotypes [message #627164] Mon, 10 November 2008 12:07
Alexander Weickmann is currently offline Alexander WeickmannFriend
Messages: 33
Registered: July 2009
Member
Hi

I made a custom uml profile for our models. At the moment it only contains
three stereotypes. One is abstract and the other two inherit from this
abstract stereotype.

I then established an extension for uml::Class and linked it with the
abstract stereotype. I also made it be a required extension, so the
multiplicity of the extension end ist 1...1

Now I assumed this means that any class in my model must ALWAYS HAVE
EXACTLY ONE stereotype that inherits from my abstract stereotype.

But still it is possible to say:

umlClass.applyStereotype(ConcreteStereotype1);
umlClass.applyStereotype(ConcreteStereotype2);

Then my umlClass will have both stereotypes assigned. Is this a bug? For I
guessed multiple stereotypes for metaclasses are only possible if you make
an extension for each one?

Can someone bring light into this?

Best regards
Previous Topic:Dynamic Modeling Tutorial with EclipseUML 2008
Next Topic:How can I extend UML2?
Goto Forum:
  


Current Time: Tue Sep 24 16:17:35 GMT 2024

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

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

Back to the top