lib
Library
writers
books
name
location
Writer
name
Book
title
pages
100
category
author
BookCategory
SciFi
SciFi
Biography
Biography
GeneralFiction
GeneralFiction
NonFiction
NonFiction
LibSys
library
<?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="lib"
    nsURI="lib" nsPrefix="lib">
  <eClassifiers xsi:type="ecore:EClass" name="Library">
    <eAnnotations source="gmf.node">
      <details key="label" value="name,location"/>
      <details key="label.pattern" value="{0}, {1}"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="writers" upperBound="-1"
        eType="#//Writer" containment="true">
      <eAnnotations source="gmf.compartment">
        <details key="note" value="writers"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
        eType="#//Book" containment="true">
      <eAnnotations source="gmf.compartment">
        <details key="note" value="books"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="location" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Writer">
    <eAnnotations source="gmf.node">
      <details key="label" value="name"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Book">
    <eAnnotations source="gmf.node">
      <details key="label" value="title"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="pages" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
        defaultValueLiteral="100"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="category" eType="#//BookCategory"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="author" lowerBound="1"
        eType="#//Writer">
      <eAnnotations source="gmf.link">
        <details key="target.decoration" value="arrow"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
    <eLiterals name="SciFi"/>
    <eLiterals name="Biography" value="1"/>
    <eLiterals name="GeneralFiction" value="2"/>
    <eLiterals name="NonFiction" value="3"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="LibSys">
    <eAnnotations source="gmf.diagram">
      <details key="note" value="Root class"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="library" eType="#//Library"
        containment="true"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"lib","nsURI":"lib","name":"lib","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Library","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Writer","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Book","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"BookCategory","instanceClass":null,"id":4,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"LibSys","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"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":"writers","changeable":true,"resolveProxies":true,"lowerBound":0,"id":6,"derived":false},{"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":"books","changeable":true,"resolveProxies":true,"lowerBound":0,"id":7,"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":8,"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":"location","changeable":true,"lowerBound":0,"iD":false,"id":9,"derived":false},{"id":10,"eClass":"EGenericType"},{"id":11,"eClass":"EGenericType"},{"id":12,"eClass":"EGenericType"},{"id":13,"eClass":"EGenericType"},{"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":14,"derived":false},{"id":15,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"title","changeable":true,"lowerBound":0,"iD":false,"id":16,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":100,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":"100","unsettable":false,"transient":false,"unique":true,"name":"pages","changeable":true,"lowerBound":0,"iD":false,"id":17,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"category","changeable":true,"lowerBound":0,"iD":false,"id":18,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"author","changeable":true,"resolveProxies":true,"lowerBound":1,"id":19,"derived":false},{"id":20,"eClass":"EGenericType"},{"id":21,"eClass":"EGenericType"},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"name":"SciFi","id":24,"value":0,"literal":"SciFi","eClass":"EEnumLiteral"},{"name":"Biography","id":25,"value":1,"literal":"Biography","eClass":"EEnumLiteral"},{"name":"GeneralFiction","id":26,"value":2,"literal":"GeneralFiction","eClass":"EEnumLiteral"},{"name":"NonFiction","id":27,"value":3,"literal":"NonFiction","eClass":"EEnumLiteral"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"library","changeable":true,"resolveProxies":true,"lowerBound":0,"id":28,"derived":false},{"id":29,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":0,"target":4},{"source":0,"target":5},{"source":1,"target":0},{"source":1,"target":6},{"source":1,"target":7},{"source":1,"target":8},{"source":1,"target":9},{"source":6,"target":2},{"source":6,"target":10},{"source":6,"target":1},{"source":10,"target":2},{"source":7,"target":3},{"source":7,"target":11},{"source":7,"target":1},{"source":11,"target":3},{"source":8,"target":12},{"source":8,"target":1},{"source":9,"target":13},{"source":9,"target":1},{"source":2,"target":0},{"source":2,"target":14},{"source":14,"target":15},{"source":14,"target":2},{"source":3,"target":0},{"source":3,"target":16},{"source":3,"target":17},{"source":3,"target":18},{"source":3,"target":19},{"source":16,"target":20},{"source":16,"target":3},{"source":17,"target":21},{"source":17,"target":3},{"source":18,"target":4},{"source":18,"target":22},{"source":18,"target":3},{"source":22,"target":4},{"source":19,"target":2},{"source":19,"target":23},{"source":19,"target":3},{"source":23,"target":2},{"source":4,"target":0},{"source":4,"target":24},{"source":4,"target":25},{"source":4,"target":26},{"source":4,"target":27},{"source":24,"target":4},{"source":25,"target":4},{"source":26,"target":4},{"source":27,"target":4},{"source":5,"target":0},{"source":5,"target":28},{"source":28,"target":1},{"source":28,"target":29},{"source":28,"target":5},{"source":29,"target":1}],"multigraph":true}