[Solved]Strange behaviour with getAppliedStereoTypes(), getAppliedStereoType [message #503902] |
Wed, 16 December 2009 10:30 |
Stefan Messages: 13 Registered: October 2009 |
Junior Member |
|
|
Hi,
i am currently working on an M2M transformation for an UML Model. Starting with a Model with two profiles applied. I have the following problem. While iterating over all packages embedded in the model i am trying to get the applied profiles for each package. if i do this:
Stereotype st : pack.getAppliedStereotypes()
I get back all the applied Stereotypes and everything is fine. But then i try to get a single StereoType by name, i always get back null. Even if i do something like this
for (Stereotype st : pack.getAppliedStereotypes()){
String name = st.getName();
Stereotype stereo = pack.getAppliedStereotype(name);
I dont understand why, i get all the applied stereotypes, iterating over them getting the name of each and the try to get it by name and it returns null.
Any advice?
Stefan
Ok i am just to foolish to use the right method (getQualifiedName()). thx for ignoring neverless.
Stefan
[Updated on: Wed, 16 December 2009 05:51] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.05033 seconds