Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Access to model elements in referenced EPackages?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jörn Guy  
View profile  
 More options Oct 30 2007, 8:22 pm
From: Jörn Guy <jgsu...@itee.uq.edu.au>
Date: Tue, 30 Oct 2007 17:22:18 -0700
Local: Tues, Oct 30 2007 8:22 pm
Subject: Access to model elements in referenced EPackages?
I am trying to list the contents of a model instance, as a start. The
instance loads in an editor plugged intor the  design-time-workbench,
so the metamodels are all registered. Tefkat loads the content, but
does produce any out put. I have produced a minimal test case below.

The only thing that is different from the standard examples is that I
have my metamodel broken into several packages. The instance is
contained in a single container, however. Does this affect Tefkats
ability to match elements? Are the elements lazy-loaded and hence do
not show up when Tefkat enumerates candidate elements in the extent?

TRANSFORMATION test2code : bla -> blub

NAMESPACE http:///au/edu/uq/itee/mdavv/wrsa/foxbus/modelManagement.ecore
NAMESPACE http:///au/edu/uq/itee/mdavv/wrsa/foxbus/code.ecore
NAMESPACE http:///au/edu/uq/itee/mdavv/wrsa/foxbus/designtime/components.ecore

RULE list
FORALL Repository r, Component c, DesignTime d
MAKE    println(r, c.name, d.name)
;

<?xml version="1.0" encoding="UTF-8"?>
<au.edu.uq.itee.mdavv.wrsa.foxbus.modelManagement:Repository
xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:au.edu.uq.itee.mdavv.wrsa.foxbus.modelManagement="http:///au/edu/
uq/itee/mdavv/wrsa/foxbus/modelManagement.ecore">
  <designTime>
    <components name="Basic Calculations">
      <configurator name="standard"/>
    </components>
  </designTime>
</au.edu.uq.itee.mdavv.wrsa.foxbus.modelManagement:Repository>

INFO: Loaded (32633691) platform:/resource/
au.edu.uq.itee.mdavv.wrsa.foxbus.test2code/transformations/
test2code.qvt
INFO: Loaded (10966007) platform:/resource/
au.edu.uq.itee.mdavv.wrsa.foxbus.test2code/instances/
Minimal.modelmanagement
INFO: Transformation started: test2code
INFO: Constructing stratification...
INFO: ... 1 levels.
INFO: Stratum 0 : list
INFO: Evaluating list
INFO: [list::r/Repository@platform:/resource/
au.edu.uq.itee.mdavv.wrsa.foxbus.test2code/instances/My.code] [] []
INFO: TRule: list completed.
INFO: Transformation finished
INFO: ResourceSet event 8: null


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
michael lawley  
View profile  
 More options Oct 31 2007, 12:19 am
From: "michael lawley" <mich...@lawley.id.au>
Date: Wed, 31 Oct 2007 14:19:39 +1000
Local: Wed, Oct 31 2007 12:19 am
Subject: Re: Access to model elements in referenced EPackages?
Hi Jörn,

Your rule is producing output here:

INFO: [list::r/Repository@platform:/resource/au.edu.uq.itee.mdavv.wrsa.foxbus.tes t2code/instances/My.code]
[] []

Which indicates that the rule is finding a single Repository instance
but no Component or DesignTime instances (with names).  This looks
possibly correct to me since, from my reading of the XMI below, the
instance with name="Basic Calculations" is of the class "Component" in
the http:///au/edu/uq/itee/mdavv/wrsa/foxbus/modelManagement.ecore
namespace but the transformation is probably resolving Component to a
class from here
http:///au/edu/uq/itee/mdavv/wrsa/foxbus/designtime/components.ecore?
However, I'm just guessing at causes here (I don't parse XMI :-)  What
happens if you try to match the objects in separate rules?

michael


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google