Multiple references to same instance in a sequence [message #1797258] |
Mon, 29 October 2018 05:56  |
Eclipse User |
|
|
|
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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.08905 seconds