Hi,
when I try to serialize my model!
<?xml version="1.0" encoding="ASCII"?>
<MMC:Packages xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:MMC="http://IRIT.HMS.POC/MMC" xmi:id="_myzVMARXEeSut-vX3pa-bg" name="racine">
<gathersM name="MMb">
<dispose name="BB1" sourceRel="//@gathersC.0/@gathersC.0/@gathersR"/>
</gathersM>
<gathersM name="MMa">
<dispose name="AA1" targetRel="//@gathersC.0/@gathersC.0/@gathersR"/>
</gathersM>
<gathersC name="M2C">
<gathersC name="C0">
<gathersR xsi:type="MMC:Similarity" sourceElt="//@gathersM.0/@dispose.0" targetElt="//@gathersM.1/@dispose.0"/>
</gathersC>
</gathersC>
</MMC:Packages>
I got the a blocking exception that i couldnt solve.
java.lang.RuntimeException: No EObjectDescription could be found in Scope RefElement.sourceRel for Packages'racine'.gathersC[0]->CorrespondenceModel'M2C'.gathersC[0]->Correspondence'C0'.gathersR->Similarity
Semantic Object: Packages'racine'.gathersM[0]->RefModel'MMb'.dispose[0]->RefElement'BB1'
Regarding my grammar everything seems correct in my opinion
Packages_Impl returns Packages:
{Packages}
name=EString
( gathersM+=RefModel ( "," gathersM+=RefModel)* )
( gathersC+=CorrespondenceModel ( "," gathersC+=CorrespondenceModel)*)
;
RefModel returns RefModel:
'import'
('model' name=EString)?
'{' dispose+=RefElement ( "," dispose+=RefElement)* '}'
;
CorrespondenceModel returns CorrespondenceModel:
'create'
name=String2
'define' gathersC+=Correspondence ( "," gathersC+=Correspondence)* ';'
;
RefElement returns RefElement:
{RefElement}
'RefElement'
name=EString
('sourceRel' '(' sourceRel+=[Relationship|EString] ( "," sourceRel+=[Relationship|EString])* ')' )?
('targetRel' '(' targetRel+=[Relationship|EString] ( "," targetRel+=[Relationship|EString])* ')' )?
Any ideas plz