| <?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="company" |
| nsURI="http://www.company.com" nsPrefix="com"> |
| <eClassifiers xsi:type="ecore:EClass" name="Company"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1" |
| eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="depts" ordered="false" |
| upperBound="-1" eType="#//Department" containment="true"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="Department"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1" |
| eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="manager" ordered="false" |
| lowerBound="1" eType="#//Employee" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="subdepts" ordered="false" |
| upperBound="-1" eType="#//Department" containment="true"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="employees" ordered="false" |
| upperBound="-1" eType="#//Employee" containment="true"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="Employee"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1" |
| eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="address" ordered="false" |
| lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="salary" lowerBound="1" |
| eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="mentor" eType="#//Employee"/> |
| </eClassifiers> |
| </ecore:EPackage> |