Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » InstanceSpecification of a Modeled Class
InstanceSpecification of a Modeled Class [message #628481] Thu, 03 June 2010 19:10
Hector Chavez is currently offline Hector ChavezFriend
Messages: 34
Registered: February 2010

I have been playing with the ExtendedPO2, the example given in "Getting Started with UML2" and I'm trying to create an instance of one of the modeled classes using InstanceSpecification.

What I'm doing is: I create an instance specification, then I create a slot for the property "name", and then to assign a value I'm using the setValue() method, but it requires a StereoType.

Do I have to create a stereotype for the class? or maybe this is not the right approach.

InstanceSpecification is = UMLFactory.eINSTANCE.createInstanceSpecification();
Slot sn = is.createSlot();
Property name = supplierClass.getAttribute("name", stringPrimitiveType);
//sn.setValue(StereoType, ..., ...)????

Thank you.

Previous Topic:Build 3.1 RC2
Next Topic:Is the stereotype of an Object in UML must match the stereotype for its Class' stereotype ?
Goto Forum:

Current Time: Sun Jun 24 17:04:17 GMT 2018

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

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

Back to the top