|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: [ATL /AM3 XML Extractor ] [message #1128370 is a reply to message #1124490] |
Mon, 07 October 2013 16:13 |
kicha bicha Messages: 11 Registered: October 2013 |
Junior Member |
|
|
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)
|
|
|
|
Powered by
FUDForum. Page generated in 0.07052 seconds