Skip to main content



      Home
Home » Modeling » UML2 » [SOLVED] Cannot retrieve InstanceSpecification with UML2 library
[SOLVED] Cannot retrieve InstanceSpecification with UML2 library [message #898875] Sat, 28 July 2012 14:01 Go to next message
Eclipse UserFriend
Hello everybody,

I have the model attached and I want to retrieve the InstanceSpecification which
is a direct child of the root model using this code

for(Element c: model.allOwnedElements()){
  if(c instanceof org.eclipse.uml2.uml.InstanceSpecification){
    return c;
  }
}


but it seems that the InstanceSpecification is not in the OwnedElements list.
Could you please give me some clue?

Thank you
  • Attachment: model.uml
    (Size: 1.80KB, Downloaded 272 times)
  • Attachment: Cattura.PNG
    (Size: 3.14KB, Downloaded 173 times)

[Updated on: Sat, 28 July 2012 14:11] by Moderator

Re: [SOLVED] Cannot retrieve InstanceSpecification with UML2 library [message #898877 is a reply to message #898875] Sat, 28 July 2012 14:12 Go to previous message
Eclipse UserFriend
Sorry my fault, the input file was wrong.
The topic can be closed
Previous Topic:CacheAdapter.inverseCrossReferencer and Memory Leaks
Next Topic:Get XMI id of UML2 Element
Goto Forum:
  


Current Time: Wed Jul 23 05:08:56 EDT 2025

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

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

Back to the top