[QVT] result of allSubobjects on sets [message #727429] |
Wed, 21 September 2011 05:33  |
Eclipse User |
|
|
|
Hi,
I'm having some troubles understanding the effect of invoking allSubobjects() on a set.
Assume that self.persons represents a set of Person.
Assume that a Person might have other references to Persons.
What is the difference between:
-1- self.persons.allSubobjects() and
-2- self.persons->allSubobjects()
when invoked in a QVT transformation?
Obviously I tried it and got
-1- [ p1, p2 ]
-2- [[ p1, p2 ]]
allSubobjects is specified as an operation that returns a Set(Element) when invoked on an Element.
However, what happens when allSubobjects is invokved on a Set(Element)?
Greetings,
Wilbert.
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.44701 seconds