Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » [Stereotype] isAppliedStereotype differs on JavaDoc and Implementation
[Stereotype] isAppliedStereotype differs on JavaDoc and Implementation [message #626455] Wed, 30 April 2008 12:01
Günther Falk is currently offline Günther FalkFriend
Messages: 39
Registered: July 2009
Member
Hi,

I'm using UML2 in an external Transformation Utility. Therefore I define
some Stereotypes which I want to use in an external .profile.uml file.
In the transformation, I load the stereotypes from the profile file.
After that I look for Classes which might have the stereotype applied.

We assume we have a Class as variable class and a stereotype as stereo.

There are two possibilities:
1. Do a class.getAppliedStereotype(stereo.getQualifiedName()) and check
the result of being null.
2. Use the element function class.isAppliedStereotype(stereo)

The first does confirm, that the stereotype is applied, the second does
not. As in the javaDoc there is described for the second possibility
that it should be true, when the stereotype is applied, there might be
an issue?
Or should it be like that? If it should please give a short explanation why.

Have a nice day Günther
Previous Topic:Primitive types and Java types in XMI
Next Topic:Qualified Names To UMLObject
Goto Forum:
  


Current Time: Tue Apr 23 16:18:44 GMT 2024

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

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

Back to the top