Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Owned Elements
Owned Elements [message #628156] Wed, 06 January 2010 06:53 Go to next message
Randi  is currently offline Randi
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 15:39 Go to previous message
Timothy Marc is currently offline Timothy Marc
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: Wed Jul 30 13:35:04 EDT 2014

Powered by FUDForum. Page generated in 0.02071 seconds