About the mapping model. In a trouble. [message #161686] |
Tue, 20 November 2007 13:20  |
Eclipse User |
|
|
|
Hi Everyone:
I am a novice in GMF. I follow the tutorial about the mindmap. But
I cannot understand mapping model. Does anyone have a clear and simple
explanation about the mapping model? Especially, I am really confused
by the following elements in the mapping model:
1) What is top node reference? Which should they corresponds to in
the domain model.
2) What is containment feature? How is it related to domain model?
3) What is child feature?
If anyone could give me some idea of above, I am very grateful!
Best regards.
Michael.
|
|
|
Re: About the mapping model. In a trouble. [message #161689 is a reply to message #161686] |
Wed, 21 November 2007 03:44  |
Eclipse User |
|
|
|
Originally posted by: ali.akar.geensys.com
hello,
A top node reference represents a top level class in your domain model,
like a package or a Class in an uml class diagram, and all packageElement.
The 'Containment Feature' refers to where children are stored, while the
'Children Feature' refers to where to take them from. These are usually
the same, and there is no need to set Children Feature if Containment
Feature is set as it will default to this value.
An example of when you'd need to specify this property is with EClass
and EAttribute where eStructuralFeatures is the 'containment' for both
operations and attributes, but where eAttributes is 'children' for
instances of EAttribute.
best,
Ali
Michael a écrit :
> Hi Everyone:
> I am a novice in GMF. I follow the tutorial about the mindmap. But
> I cannot understand mapping model. Does anyone have a clear and simple
> explanation about the mapping model? Especially, I am really confused
> by the following elements in the mapping model:
> 1) What is top node reference? Which should they corresponds to in
> the domain model.
> 2) What is containment feature? How is it related to domain model?
> 3) What is child feature?
>
> If anyone could give me some idea of above, I am very grateful!
> Best regards.
> Michael.
|
|
|
Powered by
FUDForum. Page generated in 0.03782 seconds