Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Navigation of ref'd associations
Navigation of ref'd associations [message #588909] Fri, 07 May 2010 10:28
Eclipse UserFriend
Originally posted by: c.k.holmes.lboro.ac.uk

Hi,
I have two metamodels, defined in separate folders (one Emfatic file in
each folder). Metamodel A has a class Foo that has a 'ref' association
with a class Bar in metamodel B. A model based on metamodel B is
generated first (using ETL) and then a model based on metamodel A is
generated (again using ETL). I can bind class Foo to class Bar via:
<snip>
foo : A.Foo
bar : B.Bar
foo.barAtt := bar
</snip>

When I open the model based on metamodel A with the Exeed editor and
navigate down to foo (an instance of metaclass Foo), I can see the
attribute barAtt and it's associated value (which, in this case, appears
to have been generated using the value of the name attribute of the
class - i.e. an attribute I declared on the metaclass).

However, if I try to navigate to the attribute Bar.name via:
<snip>
foo.barrAtt.name
</snip>
I receive an error to the effect that the property 'name' is not found.
It appears that Exeed is able to navigate the association, how can I do
this from within EOL/ETL? I don't want to add a 'val' to Foo within
metamodel B because that would introduce a circularity.

Best Wishes
Chris
Previous Topic:Declaring objects of enum types within EOL scripts
Next Topic:ECL/EML example not working
Goto Forum:
  


Current Time: Sat Apr 20 01:37:42 GMT 2024

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

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

Back to the top