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 #70188] Sat, 22 December 2007 20:04
Eclipse UserFriend
Originally posted by:

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] Getting value of an Attribute with reference to EAttribute metaclass
Next Topic:[ATL] How to know if an attribute is cross reference.
Goto Forum:

Current Time: Fri Aug 12 23:32:28 GMT 2022

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

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

Back to the top