Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » set a stereotype property value
set a stereotype property value [message #626029] Wed, 13 February 2008 09:50
Emilien Perico is currently offline Emilien PericoFriend
Messages: 36
Registered: July 2009
Hi all,

I've defined a profile with several sterotypes. I need to set a property
value of a stereotype manually in Java.

I know that it can be done with the followings lines:
namedElement.setValue(stereotype, property.getName(), value);

It's OK when I set a property with a primitive type like String.
Now I need to set a property which reference another Stereotype.


Profile myProfile
- Stereotype s1
- Stereotype s2
- Property name:String
- Property s1_reference: s1

I would like to set the "s1_reference" but I have problems with type.

Thanks for help,
Previous Topic:[Announce] MDT UML2 2.2.0M5 is available
Next Topic:how to find out the type of element in a package
Goto Forum:

Current Time: Thu Oct 06 04:40:30 GMT 2022

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

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

Back to the top