1
|
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="library"
|
|
5 |
nsURI="http:///library.ecore" nsPrefix="library">
|
|
6 |
<eClassifiers xsi:type="ecore:EClass" name="Book">
|
|
7 |
<eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
|
8 |
<eStructuralFeatures xsi:type="ecore:EAttribute" name="pages" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
|
|
9 |
defaultValueLiteral="100"/>
|
|
10 |
<eStructuralFeatures xsi:type="ecore:EAttribute" name="category" eType="#//BookCategory"/>
|
|
11 |
<eStructuralFeatures xsi:type="ecore:EReference" name="author" lowerBound="1"
|
|
12 |
eType="#//Writer" eOpposite="#//Writer/books"/>
|
|
13 |
</eClassifiers>
|
|
14 |
<eClassifiers xsi:type="ecore:EClass" name="Library">
|
|
15 |
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
|
16 |
<eStructuralFeatures xsi:type="ecore:EReference" name="writers" upperBound="-1"
|
|
17 |
eType="#//Writer" containment="true"/>
|
|
18 |
<eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
|
|
19 |
eType="#//Book" containment="true"/>
|
|
20 |
</eClassifiers>
|
|
21 |
<eClassifiers xsi:type="ecore:EClass" name="Writer">
|
|
22 |
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
|
23 |
<eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
|
|
24 |
eType="#//Book" eOpposite="#//Book/author"/>
|
|
25 |
</eClassifiers>
|
|
26 |
<eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
|
|
27 |
<eLiterals name="Mystery"/>
|
|
28 |
<eLiterals name="ScienceFiction" value="1"/>
|
|
29 |
<eLiterals name="Biography" value="2"/>
|
|
30 |
</eClassifiers>
|
|
31 |
</ecore:EPackage>
|