Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[uml2-dev] Applying stereo type

Hi All,

I have created a profile xyz.profile.uml2 with a stereotype ”Ajit” extended from metaclass “UML2::Class”, saved on the disk.

Now in an application I have loaded the same profile. I was able to successfully apply the profile on a model.

But now when I am trying to apply the stereo type “Ajit” on one of the class in the model say Employee it throws IllegalArgumentException from the following code in StereoTypeOperations.java

 

if (null == stereotype || isApplied(stereotype, element)

                  || !element.getApplicableStereotypes().contains(stereotype)) {

 

                  throw new IllegalArgumentException(String.valueOf(stereotype));

            }

 

For the call “element. getApplicableStereotypes().contains(stereotype)”

 

Any kind of info will be very helpful.

 

Thanks

Ajit Shrivastav

 

TIG Dev

Extn - 7682

Direct - 9520-5605-7682

Mobile - 0-9890037203

____________________________________________________________

 

This email may contain confidential or privileged information for the intended recipient(s) and the views expressed in the same are not necessarily the views of Zensar Technologies Ltd. If you are not the intended recipient or have received this e-mail by error, its use is strictly prohibited, please delete the e-mail and notify the sender. Zensar Technologies Ltd. does not accept any liability for virus infected mails.


Back to the top