Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How to know if an attribute is cross reference.
[ATL] How to know if an attribute is cross reference. [message #70209] Sat, 22 December 2007 20:09
Eclipse UserFriend
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
Previous Topic:[ATL] How to know if an attribute is cross reference.
Next Topic:[ATL]Is there any way to execute a ATL file using java code
Goto Forum:
  


Current Time: Sat Apr 10 15:26:04 GMT 2021

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

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

Back to the top