Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] accessing sub-package elements in metamodels
[ATL] accessing sub-package elements in metamodels [message #1571] Mon, 18 December 2006 18:18 Go to next message
Eclipse UserFriend
Originally posted by: fsr.cin.ufpe.br

Hello!

In case of having different packages and sub-packages in my metamodelo,
How to access their elements in ATL rules?

For instance, in the rule below, we can access the metaclass A contained
in the Author metamodel.

rule Author{
from a: Author!A
to p:Person!Person(...)
}

But, in case of having A as a metaclass contained in the sub-package named
P1 that in turn is contained in the Author metamodel. How I should access
the meta-element A in an ATL rule?


Thanks,
Franklin Ramalho.
Re: [ATL] accessing sub-package elements in metamodels [message #1661 is a reply to message #1571] Wed, 20 December 2006 11:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: milanmilanovich.yahooo.com

In same way. There is no (still) resolution operator
in ATL for package.subpackage.etc.

I'm not sure for ATL2006.
Re: [ATL] accessing sub-package elements in metamodels [message #2746 is a reply to message #1571] Thu, 21 December 2006 17:14 Go to previous message
Frédéric Jouault is currently offline Frédéric JouaultFriend
Messages: 572
Registered: July 2009
Senior Member
Hello,

> In case of having different packages and sub-packages in my metamodelo,
> How to access their elements in ATL rules?
>
> For instance, in the rule below, we can access the metaclass A contained
> in the Author metamodel.
> rule Author{
> from a: Author!A
> to p:Person!Person(...)
> }
>
> But, in case of having A as a metaclass contained in the sub-package
> named P1 that in turn is contained in the Author metamodel. How I should
> access the meta-element A in an ATL rule?

I just added a FAQ entry about this issue:
http://wiki.eclipse.org/index.php/ATL_FAQ#How_can_I_refer_to _metamodel_classes_located_in_subpackages.2C_and_avoid_name_ collision.3F


Regards,

Frédéric Jouault
Previous Topic:[ATL] Run Problem On Linux
Next Topic:Re:[ATL]Launching ATL programmatically
Goto Forum:
  


Current Time: Wed Jan 15 10:59:04 GMT 2025

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

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

Back to the top