|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: [ATL /AM3 XML Extractor ] [message #1128370 is a reply to message #1124490] |
Mon, 07 October 2013 12:13   |
Eclipse User |
|
|
|
Hi,
in this example i use the second method (EMF to generate an Ecore (meta model).
ATL tranformation:
rule Block2MuseXML{
from museml: MMuml!Class(
thisModule.isBlockStereotyped(museml) and
museml.isMuseMLClassDefinitionStereotyped()
)
to OUT: MMXML!Composite (
name <- museml.name
)
}
I want to put the name of the classes stereotyped in name of the composite
and MMXML.ecore
<eClassifiers xsi:type="ecore:EClass" name="Composite" eSuperTypes="#//Muse">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Composite"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="group2" unique="false"
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="group"/>
<details key="name" value="group:18"/>
</eAnnotations>
</eStructuralFeatures>
but i have this error:
org.eclipse.m2m.atl.engine.emfvm.VMException: Feature name does not exist on Composite
at __applyBlock2MuseXML#14(MuseML2XML.atl[47:7-47:26])
local variables: self=MuseML2XML : ASMModule, link=TransientLink {rule = Block2MuseXML, sourceElements = {museml = org.eclipse.uml2.uml.internal.impl.ClassImpl@12f44f2 (name: Block1, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isActive: false)}, targetElements = {OUT = org.eclipse.emf.ecore.impl.DynamicEObjectImpl@41eb8e (eClass: org.eclipse.emf.ecore.impl.EClassImpl@150dee9 (name: Composite) (instanceClassName: null) (abstract: false, interface: false))}, variables = {}}, museml=INuml!Block1, OUT=OUT!<unnamed>
at __exec__#8(MuseML2XML.atl)
|
|
|
Re: [ATL /AM3 XML Extractor ] [message #1827006 is a reply to message #1122413] |
Wed, 06 May 2020 02:00  |
Eclipse User |
|
|
|
Hugo Bruneliere wrote on Tue, 01 October 2013 14:46We have implemented an XML injector/extractor that can be called directly via the ATL ANT Tasks or API for instance.
To use it, you can download its sources from here and then build the plugin to be included in your Eclipse install (according to your Eclipse version, e.g., Kepler).
Best regards,
Hi Hugo,
I know this post is quite all but the link you provided is broken.
I would like to ask you if there any xml projector plugin I can add to the current ATL and Eclipse modelling tools.
Best regards,
Paul
|
|
|
Powered by
FUDForum. Page generated in 0.32856 seconds