WikiStart: api2mol.ecore

File api2mol.ecore, 4.7 KB (added by jlcanovas, 6 years ago)

API2MoL abstract syntax

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ecore:EPackage xmi:version="2.0"
3    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="api2mol"
5    nsURI="http://modelum.es/atlanmod/api2mol" nsPrefix="api2mol">
6  <eClassifiers xsi:type="ecore:EClass" name="Definition">
7    <eStructuralFeatures xsi:type="ecore:EAttribute" name="context" upperBound="-1"
8        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
9    <eStructuralFeatures xsi:type="ecore:EReference" name="defaultMetaclass" lowerBound="1"
10        eType="#//DefaultMetaclassSection" containment="true"/>
11    <eStructuralFeatures xsi:type="ecore:EReference" name="mappings" upperBound="-1"
12        eType="#//Mapping" containment="true"/>
13  </eClassifiers>
14  <eClassifiers xsi:type="ecore:EClass" name="DefaultMetaclassSection" eSuperTypes="#//Section">
15    <eStructuralFeatures xsi:type="ecore:EAttribute" name="metaclassName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
16    <eStructuralFeatures xsi:type="ecore:EAttribute" name="attribute" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
17  </eClassifiers>
18  <eClassifiers xsi:type="ecore:EClass" name="Mapping">
19    <eStructuralFeatures xsi:type="ecore:EAttribute" name="metaclass" lowerBound="1"
20        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
21    <eStructuralFeatures xsi:type="ecore:EAttribute" name="instanceClass" lowerBound="1"
22        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
23    <eStructuralFeatures xsi:type="ecore:EReference" name="sections" upperBound="-1"
24        eType="#//Section" containment="true"/>
25  </eClassifiers>
26  <eClassifiers xsi:type="ecore:EClass" name="Section" abstract="true"/>
27  <eClassifiers xsi:type="ecore:EClass" name="PropertySection" eSuperTypes="#//Section">
28    <eStructuralFeatures xsi:type="ecore:EAttribute" name="property" lowerBound="1"
29        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
30    <eStructuralFeatures xsi:type="ecore:EReference" name="statements" upperBound="-1"
31        eType="#//Statement" containment="true"/>
32  </eClassifiers>
33  <eClassifiers xsi:type="ecore:EClass" name="NewSection" eSuperTypes="#//Section">
34    <eStructuralFeatures xsi:type="ecore:EReference" name="constructors" upperBound="-1"
35        eType="#//Constructor" containment="true"/>
36  </eClassifiers>
37  <eClassifiers xsi:type="ecore:EClass" name="MultipleSection" eSuperTypes="#//Section">
38    <eStructuralFeatures xsi:type="ecore:EReference" name="statements" upperBound="-1"
39        eType="#//Statement" containment="true"/>
40  </eClassifiers>
41  <eClassifiers xsi:type="ecore:EClass" name="ValueSection" eSuperTypes="#//Section">
42    <eStructuralFeatures xsi:type="ecore:EAttribute" name="metaValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
43    <eStructuralFeatures xsi:type="ecore:EAttribute" name="instanceValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
44  </eClassifiers>
45  <eClassifiers xsi:type="ecore:EClass" name="Statement">
46    <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="#//StatementType"/>
47    <eStructuralFeatures xsi:type="ecore:EAttribute" name="variables" upperBound="-1"
48        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
49    <eStructuralFeatures xsi:type="ecore:EReference" name="calls" upperBound="-1"
50        eType="#//MethodCall" containment="true"/>
51  </eClassifiers>
52  <eClassifiers xsi:type="ecore:EEnum" name="StatementType">
53    <eLiterals name="GET"/>
54    <eLiterals name="SET" value="1"/>
55    <eLiterals name="APPEND" value="2"/>
56    <eLiterals name="INSERT_AT" value="3"/>
57    <eLiterals name="REMOVE" value="4"/>
58    <eLiterals name="REMOVE_AT" value="5"/>
59    <eLiterals name="REMOVE_LAST" value="6"/>
60    <eLiterals name="REMOVE_ALL" value="7"/>
61    <eLiterals name="COUNT" value="8"/>
62    <eLiterals name="ACCESSORS" value="9"/>
63    <eLiterals name="DIRECT" value="10"/>
64  </eClassifiers>
65  <eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true">
66    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
67  </eClassifiers>
68  <eClassifiers xsi:type="ecore:EClass" name="MethodCall" eSuperTypes="#//NamedElement">
69    <eStructuralFeatures xsi:type="ecore:EReference" name="params" upperBound="-1"
70        eType="#//Parameter" containment="true"/>
71  </eClassifiers>
72  <eClassifiers xsi:type="ecore:EClass" name="Parameter" eSuperTypes="#//NamedElement"/>
73  <eClassifiers xsi:type="ecore:EClass" name="Constructor" eSuperTypes="#//MethodCall"/>
74</ecore:EPackage>