Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Owned Elements
Owned Elements [message #628156] Wed, 06 January 2010 11:53 Go to next message
Randi  is currently offline Randi Friend
Messages: 31
Registered: November 2009
Member
Hello All,

When I ask via getOwnedElements() all owned elements from a sequencediagram , it returns not all the elements .
If I do the same with other diagrams it went fine. Can anybody give a way in how I can get all the owned elements of a sequencediagram ?

I want to print these out as eg a String

Many thanks
Re: Owned Elements [message #628157 is a reply to message #628156] Wed, 06 January 2010 20:39 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
Hi Randi,

what do you mean by sequencediagram? Do you mean UML::Interaction
element? If so, please have a look at the semantics of the derived union
ownedElements. It will only return the directly owned elements of an
element, since the additional operation allOwnedElements() will return
all directly and indirectly ownedElements of UML::Interaction e.g.

HTH Timothy

Randi schrieb:
> Hello All,
>
> When I ask via getOwnedElements() all owned elements from a
> sequencediagram , it returns not all the elements .
> If I do the same with other diagrams it went fine. Can anybody give a
> way in how I can get all the owned elements of a sequencediagram ?
>
> I want to print these out as eg a String
>
> Many thanks
>
>
>
Previous Topic:Applying Stereotypes programatically returns IllegalArgumentException
Next Topic:Owned Elements
Goto Forum:
  


Current Time: Fri Nov 28 07:26:18 GMT 2014

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

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