extendedPO2
PurchaseOrder
comment
orderDate
status
items
billTo
shipTo
previousOrder
customer
totalAmount
Address
name
country
Item
productName
quantity
USPrice
comment
shipDate
partNum
order
USAddress
street
city
state
zip
GlobalAddress
location
Date
java.util.Date
java.util.Date
SKU
java.lang.String
java.lang.String
OrderStatus
Pending
Pending
BackOrder
BackOrder
Complete

Customer
customerID
-1
orders
Supplier
name

orders
customers
pendingOrders
shippedOrders
<?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="extendedPO2"
    nsURI="http://example.com/extendedPO2" nsPrefix="extendedPO2">
  <eClassifiers xsi:type="ecore:EClass" name="PurchaseOrder">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="orderDate" eType="#//Date"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="status" eType="#//OrderStatus"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="items" upperBound="-1"
        eType="#//Item" containment="true" resolveProxies="false" eOpposite="#//Item/order"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="billTo" lowerBound="1"
        eType="#//Address" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="shipTo" lowerBound="1"
        eType="#//Address" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="previousOrder" eType="#//PurchaseOrder"
        resolveProxies="false"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="customer" lowerBound="1"
        eType="#//Customer" eOpposite="#//Customer/orders"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="totalAmount" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
        changeable="false" volatile="true" transient="true" derived="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Address" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="country" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Item">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="productName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="quantity" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="USPrice" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="shipDate" eType="#//Date"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="partNum" eType="#//SKU"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="order" eType="#//PurchaseOrder"
        eOpposite="#//PurchaseOrder/items"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="USAddress" eSuperTypes="#//Address">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="street" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="city" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="state" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="zip" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="GlobalAddress" eSuperTypes="#//Address">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="location" upperBound="-1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EDataType" name="Date" instanceClassName="java.util.Date"/>
  <eClassifiers xsi:type="ecore:EDataType" name="SKU" instanceClassName="java.lang.String"/>
  <eClassifiers xsi:type="ecore:EEnum" name="OrderStatus">
    <eLiterals name="Pending"/>
    <eLiterals name="BackOrder" value="1"/>
    <eLiterals name="Complete" value="2" literal=""/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Customer">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="customerID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
        defaultValueLiteral="-1"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="orders" upperBound="-1"
        eType="#//PurchaseOrder" eOpposite="#//PurchaseOrder/customer"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Supplier">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
        defaultValueLiteral=""/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="orders" upperBound="-1"
        eType="#//PurchaseOrder" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="customers" upperBound="-1"
        eType="#//Customer" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="pendingOrders" upperBound="-1"
        eType="#//PurchaseOrder" changeable="false" volatile="true" transient="true"
        derived="true" resolveProxies="false"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="shippedOrders" upperBound="-1"
        eType="#//PurchaseOrder" changeable="false" volatile="true" transient="true"
        derived="true" resolveProxies="false"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"extendedPO2","nsURI":"http://example.com/extendedPO2","name":"extendedPO2","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PurchaseOrder","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Address","instanceClass":null,"abstract":true,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Item","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"USAddress","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"GlobalAddress","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":"java.util.Date","defaultValue":null,"instanceClassName":"java.util.Date","name":"Date","instanceClass":"java.util.Date","id":6,"serializable":true,"eClass":"EDataType"},{"instanceTypeName":"java.lang.String","defaultValue":null,"instanceClassName":"java.lang.String","name":"SKU","instanceClass":"java.lang.String","id":7,"serializable":true,"eClass":"EDataType"},{"instanceTypeName":null,"instanceClassName":null,"name":"OrderStatus","instanceClass":null,"id":8,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Customer","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Supplier","instanceClass":null,"abstract":false,"id":10,"interface":false,"eClass":"EClass"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"comment","changeable":true,"lowerBound":0,"iD":false,"id":11,"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":"orderDate","changeable":true,"lowerBound":0,"iD":false,"id":12,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"status","changeable":true,"lowerBound":0,"iD":false,"id":13,"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":"items","changeable":true,"resolveProxies":false,"lowerBound":0,"id":14,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"billTo","changeable":true,"resolveProxies":true,"lowerBound":1,"id":15,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"shipTo","changeable":true,"resolveProxies":true,"lowerBound":1,"id":16,"derived":false},{"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":"previousOrder","changeable":true,"resolveProxies":false,"lowerBound":0,"id":17,"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":"customer","changeable":true,"resolveProxies":true,"lowerBound":1,"id":18,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":true,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":true,"unique":true,"name":"totalAmount","changeable":false,"lowerBound":0,"iD":false,"id":19,"derived":true},{"id":20,"eClass":"EGenericType"},{"id":21,"eClass":"EGenericType"},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"container":true,"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":"order","changeable":true,"resolveProxies":true,"lowerBound":0,"id":24,"derived":false},{"id":25,"eClass":"EGenericType"},{"id":26,"eClass":"EGenericType"},{"id":27,"eClass":"EGenericType"},{"id":28,"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":"orders","changeable":true,"resolveProxies":true,"lowerBound":0,"id":29,"derived":false},{"id":30,"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":31,"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":"country","changeable":true,"lowerBound":0,"iD":false,"id":32,"derived":false},{"id":33,"eClass":"EGenericType"},{"id":34,"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":"productName","changeable":true,"lowerBound":0,"iD":false,"id":35,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"quantity","changeable":true,"lowerBound":0,"iD":false,"id":36,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"USPrice","changeable":true,"lowerBound":0,"iD":false,"id":37,"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":"comment","changeable":true,"lowerBound":0,"iD":false,"id":38,"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":"shipDate","changeable":true,"lowerBound":0,"iD":false,"id":39,"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":"partNum","changeable":true,"lowerBound":0,"iD":false,"id":40,"derived":false},{"id":41,"eClass":"EGenericType"},{"id":42,"eClass":"EGenericType"},{"id":43,"eClass":"EGenericType"},{"id":44,"eClass":"EGenericType"},{"id":45,"eClass":"EGenericType"},{"id":46,"eClass":"EGenericType"},{"id":47,"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":"street","changeable":true,"lowerBound":0,"iD":false,"id":48,"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":"city","changeable":true,"lowerBound":0,"iD":false,"id":49,"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":"state","changeable":true,"lowerBound":0,"iD":false,"id":50,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"zip","changeable":true,"lowerBound":0,"iD":false,"id":51,"derived":false},{"id":52,"eClass":"EGenericType"},{"id":53,"eClass":"EGenericType"},{"id":54,"eClass":"EGenericType"},{"id":55,"eClass":"EGenericType"},{"id":56,"eClass":"EGenericType"},{"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"location","changeable":true,"lowerBound":0,"iD":false,"id":57,"derived":false},{"id":58,"eClass":"EGenericType"},{"id":59,"eClass":"EGenericType"},{"name":"Pending","id":60,"value":0,"literal":"Pending","eClass":"EEnumLiteral"},{"name":"BackOrder","id":61,"value":1,"literal":"BackOrder","eClass":"EEnumLiteral"},{"name":"Complete","id":62,"value":2,"literal":"","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"defaultValue":-1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":"-1","unsettable":false,"transient":false,"unique":true,"name":"customerID","changeable":true,"lowerBound":0,"iD":false,"id":63,"derived":false},{"id":64,"eClass":"EGenericType"},{"id":65,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":"","volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":"","unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":66,"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":"orders","changeable":true,"resolveProxies":true,"lowerBound":0,"id":67,"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":"customers","changeable":true,"resolveProxies":true,"lowerBound":0,"id":68,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":true,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":true,"unique":true,"name":"pendingOrders","changeable":false,"resolveProxies":false,"lowerBound":0,"id":69,"derived":true},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":true,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":true,"unique":true,"name":"shippedOrders","changeable":false,"resolveProxies":false,"lowerBound":0,"id":70,"derived":true},{"id":71,"eClass":"EGenericType"},{"id":72,"eClass":"EGenericType"},{"id":73,"eClass":"EGenericType"},{"id":74,"eClass":"EGenericType"},{"id":75,"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":0,"target":7},{"source":0,"target":8},{"source":0,"target":9},{"source":0,"target":10},{"source":1,"target":0},{"source":1,"target":11},{"source":1,"target":12},{"source":1,"target":13},{"source":1,"target":14},{"source":1,"target":15},{"source":1,"target":16},{"source":1,"target":17},{"source":1,"target":18},{"source":1,"target":19},{"source":11,"target":20},{"source":11,"target":1},{"source":12,"target":6},{"source":12,"target":21},{"source":12,"target":1},{"source":21,"target":6},{"source":13,"target":8},{"source":13,"target":22},{"source":13,"target":1},{"source":22,"target":8},{"source":14,"target":3},{"source":14,"target":23},{"source":14,"target":1},{"source":14,"target":24},{"source":23,"target":3},{"source":15,"target":2},{"source":15,"target":25},{"source":15,"target":1},{"source":25,"target":2},{"source":16,"target":2},{"source":16,"target":26},{"source":16,"target":1},{"source":26,"target":2},{"source":17,"target":1},{"source":17,"target":27},{"source":17,"target":1},{"source":27,"target":1},{"source":18,"target":9},{"source":18,"target":28},{"source":18,"target":1},{"source":18,"target":29},{"source":28,"target":9},{"source":19,"target":30},{"source":19,"target":1},{"source":2,"target":0},{"source":2,"target":31},{"source":2,"target":32},{"source":31,"target":33},{"source":31,"target":2},{"source":32,"target":34},{"source":32,"target":2},{"source":3,"target":0},{"source":3,"target":35},{"source":3,"target":36},{"source":3,"target":37},{"source":3,"target":38},{"source":3,"target":39},{"source":3,"target":40},{"source":3,"target":24},{"source":35,"target":41},{"source":35,"target":3},{"source":36,"target":42},{"source":36,"target":3},{"source":37,"target":43},{"source":37,"target":3},{"source":38,"target":44},{"source":38,"target":3},{"source":39,"target":6},{"source":39,"target":45},{"source":39,"target":3},{"source":45,"target":6},{"source":40,"target":7},{"source":40,"target":46},{"source":40,"target":3},{"source":46,"target":7},{"source":24,"target":1},{"source":24,"target":47},{"source":24,"target":3},{"source":24,"target":14},{"source":47,"target":1},{"source":4,"target":0},{"source":4,"target":2},{"source":4,"target":48},{"source":4,"target":49},{"source":4,"target":50},{"source":4,"target":51},{"source":4,"target":52},{"source":48,"target":53},{"source":48,"target":4},{"source":49,"target":54},{"source":49,"target":4},{"source":50,"target":55},{"source":50,"target":4},{"source":51,"target":56},{"source":51,"target":4},{"source":52,"target":2},{"source":5,"target":0},{"source":5,"target":2},{"source":5,"target":57},{"source":5,"target":58},{"source":57,"target":59},{"source":57,"target":5},{"source":58,"target":2},{"source":6,"target":0},{"source":7,"target":0},{"source":8,"target":0},{"source":8,"target":60},{"source":8,"target":61},{"source":8,"target":62},{"source":60,"target":8},{"source":61,"target":8},{"source":62,"target":8},{"source":9,"target":0},{"source":9,"target":63},{"source":9,"target":29},{"source":63,"target":64},{"source":63,"target":9},{"source":29,"target":1},{"source":29,"target":65},{"source":29,"target":9},{"source":29,"target":18},{"source":65,"target":1},{"source":10,"target":0},{"source":10,"target":66},{"source":10,"target":67},{"source":10,"target":68},{"source":10,"target":69},{"source":10,"target":70},{"source":66,"target":71},{"source":66,"target":10},{"source":67,"target":1},{"source":67,"target":72},{"source":67,"target":10},{"source":72,"target":1},{"source":68,"target":9},{"source":68,"target":73},{"source":68,"target":10},{"source":73,"target":9},{"source":69,"target":1},{"source":69,"target":74},{"source":69,"target":10},{"source":74,"target":1},{"source":70,"target":1},{"source":70,"target":75},{"source":70,"target":10},{"source":75,"target":1}],"multigraph":true}