-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmy.ecore
22 lines (22 loc) · 1.41 KB
/
my.ecore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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="model" nsURI="https://latuske.net/model" nsPrefix="model">
<eClassifiers xsi:type="ecore:EClass" name="Person">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="address" eType="#//Address"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="emailAddresses" upperBound="-1"
eType="#//EMailAddress" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Address">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="city" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EMailAddress">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="email" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//EMailAddressType"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="EMailAddressType">
<eLiterals name="Private"/>
<eLiterals name="Office"/>
</eClassifiers>
</ecore:EPackage>