Skip to content

Commit bc5798d

Browse files
committed
add demo documentation to school example
1 parent f6f0dce commit bc5798d

File tree

2 files changed

+526
-1
lines changed

2 files changed

+526
-1
lines changed

school/school/model/school.ecore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="school" nsURI="http://school.ecore" nsPrefix="school">
4+
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
5+
<details key="documentation" value="The School package corresponds to the EMF-IncQuery example found at [http://incquery.net/incquery/new/examples/school]."/>
6+
</eAnnotations>
47
<eClassifiers xsi:type="ecore:EClass" name="Course">
58
<eStructuralFeatures xsi:type="ecore:EAttribute" name="subject" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
69
<eStructuralFeatures xsi:type="ecore:EAttribute" name="weight" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
@@ -12,7 +15,14 @@
1215
transient="true" eOpposite="#//SchoolClass/courses"/>
1316
</eClassifiers>
1417
<eClassifiers xsi:type="ecore:EClass" name="School">
15-
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
18+
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
19+
<details key="documentation" value="A School is an entity that represents a real-life school such as a University. "/>
20+
</eAnnotations>
21+
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
22+
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
23+
<details key="documentation" value="The real name of the School, e.g. &quot;Budapest University of Technology and Economics.&quot; "/>
24+
</eAnnotations>
25+
</eStructuralFeatures>
1626
<eStructuralFeatures xsi:type="ecore:EAttribute" name="address" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
1727
<eStructuralFeatures xsi:type="ecore:EReference" name="years" upperBound="-1"
1828
eType="#//Year" containment="true" resolveProxies="false" eOpposite="#//Year/school"/>

0 commit comments

Comments
 (0)