Skip to main content
summaryrefslogtreecommitdiffstats
blob: 5cf974e6a6ceea2e95c63aab7851e4ec0780fcae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="library"
    nsURI="http://www.eclipse.org/emf/texo/test/model/samples/library" nsPrefix="library">
  <eAnnotations source="texo.java.annotation">
    <details key="type" value="@org.eclipse.emf.texo.test.models.annotations.TestAnnotationOne(&quot;type&quot;)"/>
  </eAnnotations>
  <eClassifiers xsi:type="ecore:EClass" name="Book" eSuperTypes="identifiable.ecore#//Identifiable">
    <eAnnotations source="texo.java.annotation">
      <details key="value" value="@org.eclipse.emf.texo.test.models.annotations.TestAnnotationOne(&quot;test&quot;)"/>
    </eAnnotations>
    <eAnnotations source="org.eclipse.emf.texo">
      <details key="title" value="${title} (${pages}) - ${category}"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
      <eAnnotations source="texo.java.annotation">
        <details key="field" value="@org.eclipse.emf.texo.test.models.annotations.TestAnnotationOne(&quot;field&quot;)&#xA;@org.eclipse.emf.texo.test.models.annotations.TestAnnotationTwo(&quot;field&quot;)"/>
      </eAnnotations>
      <eAnnotations source="org.eclipse.emf.texo">
        <details key="id" value="true"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="pages" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
        defaultValueLiteral="100">
      <eAnnotations source="texo.java.annotation">
        <details key="getter" value="@org.eclipse.emf.texo.test.models.annotations.TestAnnotationOne(&quot;getter&quot;)"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="category" eType="#//BookCategory"
        defaultValueLiteral="ScienceFiction"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="author" lowerBound="1"
        eType="#//Writer" eOpposite="#//Writer/books">
      <eAnnotations source="texo.java.annotation">
        <details key="setter" value="@org.eclipse.emf.texo.test.models.annotations.TestAnnotationOne(&quot;setter&quot;)"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Library" eSuperTypes="identifiable.ecore#//Identifiable">
    <eAnnotations source="texo.java.annotation">
      <details key="type" value="@orgeclipseemftexo.OneDotAnnotation(&quot;test&quot;)"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="writers" upperBound="-1"
        eType="#//Writer" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
        eType="#//Book" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Writer" eSuperTypes="identifiable.ecore#//Identifiable">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
      <eAnnotations source="org.eclipse.emf.texo">
        <details key="title" value="true"/>
        <details key="id" value="true"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
        eType="#//Book" eOpposite="#//Book/author"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
    <eAnnotations source="texo.java.annotation">
      <details key="type" value="@org.eclipse.emf.texo.test.models.annotations.TestAnnotationOne(&quot;enum&quot;)"/>
    </eAnnotations>
    <eLiterals name="Mystery"/>
    <eLiterals name="ScienceFiction" value="1"/>
    <eLiterals name="Biography" value="2"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="asdad"/>
</ecore:EPackage>

Back to the top