TestMetamodelMetamodel.ecore 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="TestMetamodel" nsURI="http://TestMetamodel" nsPrefix="TestMetamodel">
  4. <eClassifiers xsi:type="ecore:EClass" name="Alone"/>
  5. <eClassifiers xsi:type="ecore:EClass" name="AloneAttr">
  6. <eStructuralFeatures xsi:type="ecore:EAttribute" name="int" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  7. <eStructuralFeatures xsi:type="ecore:EAttribute" name="string" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral="Hola"/>
  8. <eStructuralFeatures xsi:type="ecore:EAttribute" name="float" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/>
  9. <eStructuralFeatures xsi:type="ecore:EAttribute" name="boolean" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="true"/>
  10. <eStructuralFeatures xsi:type="ecore:EAttribute" name="code" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  11. <eStructuralFeatures xsi:type="ecore:EAttribute" name="file_html" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//undefined"/>
  12. <eStructuralFeatures xsi:type="ecore:EAttribute" name="map_int_string" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//undefined"/>
  13. <eStructuralFeatures xsi:type="ecore:EAttribute" name="list_int" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//undefined" defaultValueLiteral="1,2"/>
  14. <eStructuralFeatures xsi:type="ecore:EAttribute" name="enum" eType="#//Enum"/>
  15. <eStructuralFeatures xsi:type="ecore:EAttribute" name="enum2" eType="#//Enum2"/>
  16. </eClassifiers>
  17. <eClassifiers xsi:type="ecore:EClass" name="Source">
  18. <eStructuralFeatures xsi:type="ecore:EReference" name="OneToOne" lowerBound="1" eType="#//TargetAbstract" containment="true"/>
  19. </eClassifiers>
  20. <eClassifiers xsi:type="ecore:EClass" name="Sub1" eSuperTypes="#//TargetAbstract">
  21. <eStructuralFeatures xsi:type="ecore:EReference" name="ManyToOne" eType="#//TargetMany" containment="true"/>
  22. </eClassifiers>
  23. <eClassifiers xsi:type="ecore:EClass" name="Sub2" eSuperTypes="#//TargetAbstract">
  24. <eStructuralFeatures xsi:type="ecore:EReference" name="Containment" eType="#//Composite" containment="true"/>
  25. </eClassifiers>
  26. <eClassifiers xsi:type="ecore:EClass" name="TestMetamodelRoot">
  27. <eStructuralFeatures xsi:type="ecore:EReference" name="AloneLink" lowerBound="1" upperBound="-1" eType="#//Alone" containment="true"/>
  28. <eStructuralFeatures xsi:type="ecore:EReference" name="AloneAttrLink" lowerBound="1" upperBound="-1" eType="#//AloneAttr" containment="true"/>
  29. <eStructuralFeatures xsi:type="ecore:EReference" name="SourceLink" lowerBound="1" upperBound="-1" eType="#//Source" containment="true"/>
  30. <eStructuralFeatures xsi:type="ecore:EReference" name="Sub1Link" lowerBound="1" upperBound="-1" eType="#//Sub1" containment="true"/>
  31. <eStructuralFeatures xsi:type="ecore:EReference" name="Sub2Link" lowerBound="1" upperBound="-1" eType="#//Sub2" containment="true"/>
  32. </eClassifiers>
  33. <eClassifiers xsi:type="ecore:EClass" name="TargetAbstract" abstract="true">
  34. <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  35. </eClassifiers>
  36. <eClassifiers xsi:type="ecore:EClass" name="TargetMany"/>
  37. <eClassifiers xsi:type="ecore:EClass" name="Composite"/>
  38. <eClassifiers xsi:type="ecore:EEnum" name="Enum">
  39. <eLiterals name="One,Two,Three"/>
  40. </eClassifiers>
  41. <eClassifiers xsi:type="ecore:EEnum" name="Enum2">
  42. <eLiterals name="Four,Five,Six,Seven"/>
  43. </eClassifiers>
  44. </ecore:EPackage>