|
|
|
Re: Create Object from String [message #478254 is a reply to message #478253] |
Tue, 24 March 2009 12:11 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Iris,
The extrinsic IDs are managed by the resource so until you add the new
object to a resource (directly or indirectly by adding it to a
containing object already in a resource) it won't have an ID.
Iris Groher wrote:
> Thank you so much for your help! I managed to create UML objects. Is
> there a way to set the ID of the object? I usually get the ID by calling:
>
> eobject.eResource().getURIFragment(eobject)
>
> But eResource is of course null after creating the object the way I did.
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Re: Create Object from String [message #627448 is a reply to message #478253] |
Tue, 24 March 2009 12:11 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Iris,
The extrinsic IDs are managed by the resource so until you add the new
object to a resource (directly or indirectly by adding it to a
containing object already in a resource) it won't have an ID.
Iris Groher wrote:
> Thank you so much for your help! I managed to create UML objects. Is
> there a way to set the ID of the object? I usually get the ID by calling:
>
> eobject.eResource().getURIFragment(eobject)
>
> But eResource is of course null after creating the object the way I did.
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03322 seconds