Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Multiple references to same instance in a sequence
Multiple references to same instance in a sequence [message #1797258] Mon, 29 October 2018 09:56 Go to next message
Jorryt Dijkstra is currently offline Jorryt DijkstraFriend
Messages: 2
Registered: October 2018
Junior Member
I have a metamodel that contains a class that stores references in a sequence. Whenever I have an instance that refers to the same instance twice within a sequence (e.g. for a sentence like: '<word>') i get an exception due to the second reference to the quote symbol. This is a small example in XML format:

 
<productions
      xsi:type="mg:QuotedWord"
      name="rule"
      parts="//@productions.88 //@productions.74 //@productions.88"/>


This raises the following exception:

Quote:
org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1c4457e6 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@434e83a8 (name: QuotedWord) (instanceClassName: null) (abstract: false, interface: false))' is not legal. (platform:/resource/mde-project/instances/test.mg.xmi, -1, -1).


How can I resolve this without introducing levels of indirection?

Re: Multiple references to same instance in a sequence [message #1797297 is a reply to message #1797258] Mon, 29 October 2018 15:51 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
As in your other post, this is not supported. You can read the Bugzilla for details.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Duplicate references
Next Topic:Prevent XCore to change the .project file.
Goto Forum:
  


Current Time: Thu Apr 25 02:00:09 GMT 2024

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

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

Back to the top