people
Gender
MALE
MALE
FEMALE
FEMALE
Person
child
childName
children
parents
gender
name
father
mother
Universe
people
<?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="people"
    nsURI="http://www.eclipse.org/examples/tree" nsPrefix="tree">
  <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
    <details key="invocationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL"/>
    <details key="settingDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL"/>
    <details key="validationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL"/>
  </eAnnotations>
  <eClassifiers xsi:type="ecore:EEnum" name="Gender">
    <eLiterals name="MALE"/>
    <eLiterals name="FEMALE"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Person">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="null MixedGenderParents"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
      <details key="MixedGenderParents" value="father.gender &lt;> mother.gender"/>
    </eAnnotations>
    <eOperations name="child" eType="#//Person">
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
        <details key="body" value="children->any(name=childName)"/>
      </eAnnotations>
      <eParameters name="childName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
        eType="#//Person"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="parents" upperBound="2"
        eType="#//Person"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="gender" eType="#//Gender"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="father" lowerBound="1"
        eType="#//Person" volatile="true" transient="true" derived="true">
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
        <details key="derivation" value="parents->any(gender = Gender::MALE)"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="mother" lowerBound="1"
        eType="#//Person" volatile="true" transient="true" derived="true">
      <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
        <details key="derivation" value="parents->any(gender = Gender::FEMALE)"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Universe">
    <eStructuralFeatures xsi:type="ecore:EReference" name="people" upperBound="-1"
        eType="#//Person" containment="true"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"tree","nsURI":"http://www.eclipse.org/examples/tree","name":"people","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"instanceClassName":null,"name":"Gender","instanceClass":null,"id":1,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Person","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Universe","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"name":"MALE","id":4,"value":0,"literal":"MALE","eClass":"EEnumLiteral"},{"name":"FEMALE","id":5,"value":0,"literal":"FEMALE","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"unique":true,"name":"child","lowerBound":0,"id":6,"many":false,"required":false,"eClass":"EOperation"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"children","changeable":true,"resolveProxies":true,"lowerBound":0,"id":7,"derived":false},{"container":false,"ordered":true,"upperBound":2,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"parents","changeable":true,"resolveProxies":true,"lowerBound":0,"id":8,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"gender","changeable":true,"lowerBound":0,"iD":false,"id":9,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":10,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":true,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":true,"unique":true,"name":"father","changeable":true,"resolveProxies":true,"lowerBound":1,"id":11,"derived":true},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":true,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":true,"unique":true,"name":"mother","changeable":true,"resolveProxies":true,"lowerBound":1,"id":12,"derived":true},{"id":13,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"childName","lowerBound":0,"id":14,"many":false,"required":false,"eClass":"EParameter"},{"id":15,"eClass":"EGenericType"},{"id":16,"eClass":"EGenericType"},{"id":17,"eClass":"EGenericType"},{"id":18,"eClass":"EGenericType"},{"id":19,"eClass":"EGenericType"},{"id":20,"eClass":"EGenericType"},{"id":21,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"people","changeable":true,"resolveProxies":true,"lowerBound":0,"id":22,"derived":false},{"id":23,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":1,"target":0},{"source":1,"target":4},{"source":1,"target":5},{"source":4,"target":1},{"source":5,"target":1},{"source":2,"target":0},{"source":2,"target":6},{"source":2,"target":7},{"source":2,"target":8},{"source":2,"target":9},{"source":2,"target":10},{"source":2,"target":11},{"source":2,"target":12},{"source":6,"target":2},{"source":6,"target":13},{"source":6,"target":2},{"source":6,"target":14},{"source":13,"target":2},{"source":14,"target":15},{"source":14,"target":6},{"source":7,"target":2},{"source":7,"target":16},{"source":7,"target":2},{"source":16,"target":2},{"source":8,"target":2},{"source":8,"target":17},{"source":8,"target":2},{"source":17,"target":2},{"source":9,"target":1},{"source":9,"target":18},{"source":9,"target":2},{"source":18,"target":1},{"source":10,"target":19},{"source":10,"target":2},{"source":11,"target":2},{"source":11,"target":20},{"source":11,"target":2},{"source":20,"target":2},{"source":12,"target":2},{"source":12,"target":21},{"source":12,"target":2},{"source":21,"target":2},{"source":3,"target":0},{"source":3,"target":22},{"source":22,"target":2},{"source":22,"target":23},{"source":22,"target":3},{"source":23,"target":2}],"multigraph":true}