Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to create property value of a Slot
How to create property value of a Slot [message #638708] Fri, 12 November 2010 10:13 Go to next message
Christian Waniek is currently offline Christian WaniekFriend
Messages: 50
Registered: May 2010
Hi everybody,

I create an InstanceSpecification. This InstanceSpecification contains a Slot. This Slot is connected to a property by using the method
setDefiningFeature(StructuralFeature value)
After this I want to set a value for this Slot with the method
setValue(Stereotype stereotype, String propertyName, Object newValue)
I thinl I got what propertyName and newValue are. But I couldn't figure out why I have to provide a stereotype here? And why I need a stereotype here at all?

So what do I have to do with this parameter?

Re: How to create property value of a Slot [message #638821 is a reply to message #638708] Fri, 12 November 2010 16:45 Go to previous message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 161
Registered: July 2009
Senior Member
Christian, you are looking at the wrong method. That method is for setting tagged values on model elements.

See this thread for examples on how to set values on slots: amp;start=0&S=a4e0ed9efe1ccf976cd711cddd1c0afe


Previous Topic:Re: How retrieve DefaultValue of a Property
Next Topic:Reading and writing UML file with MWE Workflow
Goto Forum:

Current Time: Fri Sep 21 12:38:58 GMT 2018

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

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

Back to the top