eShop
Customer
newCustomer
name
p
name
portal
sale
GoldCustomer
Portal
removeGoldCategory
c
name
url
customers
Sale
addSaleLine
p
quantity
id
paid
amount
purchaser
lines
SaleLine
quantity
sale
product
Product
price
stock
salesLines
<?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="eShop" nsURI="http://www.example.com/" nsPrefix="eShop">
  <eClassifiers xsi:type="ecore:EClass" name="Customer">
    <eOperations name="newCustomer" eType="#//Customer">
      <eParameters name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
      <eParameters name="p" lowerBound="1" eType="#//Portal"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="portal" lowerBound="1"
        eType="#//Portal" eOpposite="#//Portal/customers"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="sale" upperBound="-1" eType="#//Sale"
        eOpposite="#//Sale/purchaser"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="GoldCustomer" eSuperTypes="#//Customer"/>
  <eClassifiers xsi:type="ecore:EClass" name="Portal">
    <eOperations name="removeGoldCategory">
      <eParameters name="c" lowerBound="1" eType="#//Customer"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="url" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="customers" upperBound="-1"
        eType="#//Customer" eOpposite="#//Customer/portal"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Sale">
    <eOperations name="addSaleLine" eType="#//SaleLine">
      <eParameters name="p" lowerBound="1" eType="#//Product"/>
      <eParameters name="quantity" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="paid" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="amount" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="purchaser" lowerBound="1"
        eType="#//Customer" eOpposite="#//Customer/sale"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="lines" upperBound="-1"
        eType="#//SaleLine" eOpposite="#//SaleLine/sale"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="SaleLine">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="quantity" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="sale" eType="#//Sale" eOpposite="#//Sale/lines"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="product" lowerBound="1"
        eType="#//Product" eOpposite="#//Product/salesLines"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Product">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="price" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="stock" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="salesLines" upperBound="-1"
        eType="#//SaleLine" eOpposite="#//SaleLine/product"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"eShop","nsURI":"http://www.example.com/","name":"eShop","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Customer","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"GoldCustomer","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Portal","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Sale","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"SaleLine","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Product","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"ordered":true,"upperBound":1,"unique":true,"name":"newCustomer","lowerBound":0,"id":7,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":8,"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":"portal","changeable":true,"resolveProxies":true,"lowerBound":1,"id":9,"derived":false},{"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":"sale","changeable":true,"resolveProxies":true,"lowerBound":0,"id":10,"derived":false},{"id":11,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"name","lowerBound":1,"id":12,"many":false,"required":true,"eClass":"EParameter"},{"ordered":true,"upperBound":1,"unique":true,"name":"p","lowerBound":1,"id":13,"many":false,"required":true,"eClass":"EParameter"},{"id":14,"eClass":"EGenericType"},{"id":15,"eClass":"EGenericType"},{"id":16,"eClass":"EGenericType"},{"id":17,"eClass":"EGenericType"},{"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":"customers","changeable":true,"resolveProxies":true,"lowerBound":0,"id":18,"derived":false},{"id":19,"eClass":"EGenericType"},{"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":"purchaser","changeable":true,"resolveProxies":true,"lowerBound":1,"id":20,"derived":false},{"id":21,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"removeGoldCategory","lowerBound":0,"id":22,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":23,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"url","changeable":true,"lowerBound":1,"iD":false,"id":24,"derived":false},{"ordered":true,"upperBound":1,"unique":true,"name":"c","lowerBound":1,"id":25,"many":false,"required":true,"eClass":"EParameter"},{"id":26,"eClass":"EGenericType"},{"id":27,"eClass":"EGenericType"},{"id":28,"eClass":"EGenericType"},{"id":29,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"addSaleLine","lowerBound":0,"id":30,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"id","changeable":true,"lowerBound":1,"iD":false,"id":31,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"paid","changeable":true,"lowerBound":1,"iD":false,"id":32,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"amount","changeable":true,"lowerBound":1,"iD":false,"id":33,"derived":false},{"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":"lines","changeable":true,"resolveProxies":true,"lowerBound":0,"id":34,"derived":false},{"id":35,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"p","lowerBound":1,"id":36,"many":false,"required":true,"eClass":"EParameter"},{"ordered":true,"upperBound":1,"unique":true,"name":"quantity","lowerBound":1,"id":37,"many":false,"required":true,"eClass":"EParameter"},{"id":38,"eClass":"EGenericType"},{"id":39,"eClass":"EGenericType"},{"id":40,"eClass":"EGenericType"},{"id":41,"eClass":"EGenericType"},{"id":42,"eClass":"EGenericType"},{"id":43,"eClass":"EGenericType"},{"id":44,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"sale","changeable":true,"resolveProxies":true,"lowerBound":0,"id":45,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"quantity","changeable":true,"lowerBound":1,"iD":false,"id":46,"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":"product","changeable":true,"resolveProxies":true,"lowerBound":1,"id":47,"derived":false},{"id":48,"eClass":"EGenericType"},{"id":49,"eClass":"EGenericType"},{"id":50,"eClass":"EGenericType"},{"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":"salesLines","changeable":true,"resolveProxies":true,"lowerBound":0,"id":51,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"price","changeable":true,"lowerBound":1,"iD":false,"id":52,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"stock","changeable":true,"lowerBound":1,"iD":false,"id":53,"derived":false},{"id":54,"eClass":"EGenericType"},{"id":55,"eClass":"EGenericType"},{"id":56,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":0,"target":4},{"source":0,"target":5},{"source":0,"target":6},{"source":1,"target":0},{"source":1,"target":7},{"source":1,"target":8},{"source":1,"target":9},{"source":1,"target":10},{"source":7,"target":1},{"source":7,"target":11},{"source":7,"target":1},{"source":7,"target":12},{"source":7,"target":13},{"source":11,"target":1},{"source":12,"target":14},{"source":12,"target":7},{"source":13,"target":3},{"source":13,"target":15},{"source":13,"target":7},{"source":15,"target":3},{"source":8,"target":16},{"source":8,"target":1},{"source":9,"target":3},{"source":9,"target":17},{"source":9,"target":1},{"source":9,"target":18},{"source":17,"target":3},{"source":10,"target":4},{"source":10,"target":19},{"source":10,"target":1},{"source":10,"target":20},{"source":19,"target":4},{"source":2,"target":0},{"source":2,"target":1},{"source":2,"target":21},{"source":21,"target":1},{"source":3,"target":0},{"source":3,"target":22},{"source":3,"target":23},{"source":3,"target":24},{"source":3,"target":18},{"source":22,"target":3},{"source":22,"target":25},{"source":25,"target":1},{"source":25,"target":26},{"source":25,"target":22},{"source":26,"target":1},{"source":23,"target":27},{"source":23,"target":3},{"source":24,"target":28},{"source":24,"target":3},{"source":18,"target":1},{"source":18,"target":29},{"source":18,"target":3},{"source":18,"target":9},{"source":29,"target":1},{"source":4,"target":0},{"source":4,"target":30},{"source":4,"target":31},{"source":4,"target":32},{"source":4,"target":33},{"source":4,"target":20},{"source":4,"target":34},{"source":30,"target":5},{"source":30,"target":35},{"source":30,"target":4},{"source":30,"target":36},{"source":30,"target":37},{"source":35,"target":5},{"source":36,"target":6},{"source":36,"target":38},{"source":36,"target":30},{"source":38,"target":6},{"source":37,"target":39},{"source":37,"target":30},{"source":31,"target":40},{"source":31,"target":4},{"source":32,"target":41},{"source":32,"target":4},{"source":33,"target":42},{"source":33,"target":4},{"source":20,"target":1},{"source":20,"target":43},{"source":20,"target":4},{"source":20,"target":10},{"source":43,"target":1},{"source":34,"target":5},{"source":34,"target":44},{"source":34,"target":4},{"source":34,"target":45},{"source":44,"target":5},{"source":5,"target":0},{"source":5,"target":46},{"source":5,"target":45},{"source":5,"target":47},{"source":46,"target":48},{"source":46,"target":5},{"source":45,"target":4},{"source":45,"target":49},{"source":45,"target":5},{"source":45,"target":34},{"source":49,"target":4},{"source":47,"target":6},{"source":47,"target":50},{"source":47,"target":5},{"source":47,"target":51},{"source":50,"target":6},{"source":6,"target":0},{"source":6,"target":52},{"source":6,"target":53},{"source":6,"target":51},{"source":52,"target":54},{"source":52,"target":6},{"source":53,"target":55},{"source":53,"target":6},{"source":51,"target":5},{"source":51,"target":56},{"source":51,"target":6},{"source":51,"target":47},{"source":56,"target":5}],"multigraph":true}