[ATL] How to know if an attribute is cross reference. [message #70188] |
Sat, 22 December 2007 20:04 |
Eclipse User |
|
|
|
Originally posted by: guo.mci.sdu.dk
Hi All,
My target and source meta models are built in ECORE of EMF.
In the source model, there is one attribute can either use a reference
that built in the same model, or use a cross reference that built in an
external model.
How can I know if the attribute is cross reference or internal
reference? Is there any function I can use?
I want to use this information when generating the target model.
If the attribute is NOT a cross reference, I will just copy the
attribute reference to the target.
But if it is a cross reference, I will first read the referenced model,
create this model inside the target, and then set the attribute to the
new created model.
It means that I don't use any cross reference in my target model, by
creating any cross referred model inside the target model.
Best Regards,
Yu Guo
|
|
|
Powered by
FUDForum. Page generated in 0.03439 seconds