esof_homework4_q2
PurchaseOrder
comment
orderDate
items
shipTo
billTo
Date
java.util.Date
java.util.Date
SKU
java.lang.Object
newDataType2
Item
productName
quantity
USPrice
comment
shipDate
partNum
USAddress
name
street
city
zip
state
country
“US”
<?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="esof_homework4_q2" nsURI="http://www.example.org/esof_homework4_q2"
    nsPrefix="esof_homework4_q2">
  <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:EReference" name="items" upperBound="-1"
        eType="#//Item" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="shipTo" lowerBound="1"
        eType="#//USAddress" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="billTo" lowerBound="1"
        eType="#//USAddress" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EDataType" name="Date" instanceClassName="java.util.Date"/>
  <eClassifiers xsi:type="ecore:EDataType" name="SKU" instanceTypeName="newDataType2"/>
  <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"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="USAddress">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <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="zip" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="state" 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"
        defaultValueLiteral="“US”"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"esof_homework4_q2","nsURI":"http://www.example.org/esof_homework4_q2","name":"esof_homework4_q2","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PurchaseOrder","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":"java.util.Date","defaultValue":null,"instanceClassName":"java.util.Date","name":"Date","instanceClass":"java.util.Date","id":2,"serializable":true,"eClass":"EDataType"},{"instanceTypeName":"newDataType2","defaultValue":null,"instanceClassName":"java.lang.Object","name":"SKU","instanceClass":"java.lang.Object","id":3,"serializable":true,"eClass":"EDataType"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Item","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"USAddress","instanceClass":null,"abstract":false,"id":5,"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":6,"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":7,"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":true,"lowerBound":0,"id":8,"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":9,"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":10,"derived":false},{"id":11,"eClass":"EGenericType"},{"id":12,"eClass":"EGenericType"},{"id":13,"eClass":"EGenericType"},{"id":14,"eClass":"EGenericType"},{"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":"productName","changeable":true,"lowerBound":0,"iD":false,"id":16,"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":17,"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":18,"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":19,"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":20,"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":21,"derived":false},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"id":24,"eClass":"EGenericType"},{"id":25,"eClass":"EGenericType"},{"id":26,"eClass":"EGenericType"},{"id":27,"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":28,"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":"street","changeable":true,"lowerBound":0,"iD":false,"id":29,"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":30,"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":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":"state","changeable":true,"lowerBound":0,"iD":false,"id":32,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":"“US”","volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":"“US”","unsettable":false,"transient":false,"unique":true,"name":"country","changeable":true,"lowerBound":0,"iD":false,"id":33,"derived":false},{"id":34,"eClass":"EGenericType"},{"id":35,"eClass":"EGenericType"},{"id":36,"eClass":"EGenericType"},{"id":37,"eClass":"EGenericType"},{"id":38,"eClass":"EGenericType"},{"id":39,"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":1,"target":10},{"source":6,"target":11},{"source":6,"target":1},{"source":7,"target":2},{"source":7,"target":12},{"source":7,"target":1},{"source":12,"target":2},{"source":8,"target":4},{"source":8,"target":13},{"source":8,"target":1},{"source":13,"target":4},{"source":9,"target":5},{"source":9,"target":14},{"source":9,"target":1},{"source":14,"target":5},{"source":10,"target":5},{"source":10,"target":15},{"source":10,"target":1},{"source":15,"target":5},{"source":2,"target":0},{"source":3,"target":0},{"source":4,"target":0},{"source":4,"target":16},{"source":4,"target":17},{"source":4,"target":18},{"source":4,"target":19},{"source":4,"target":20},{"source":4,"target":21},{"source":16,"target":22},{"source":16,"target":4},{"source":17,"target":23},{"source":17,"target":4},{"source":18,"target":24},{"source":18,"target":4},{"source":19,"target":25},{"source":19,"target":4},{"source":20,"target":2},{"source":20,"target":26},{"source":20,"target":4},{"source":26,"target":2},{"source":21,"target":3},{"source":21,"target":27},{"source":21,"target":4},{"source":27,"target":3},{"source":5,"target":0},{"source":5,"target":28},{"source":5,"target":29},{"source":5,"target":30},{"source":5,"target":31},{"source":5,"target":32},{"source":5,"target":33},{"source":28,"target":34},{"source":28,"target":5},{"source":29,"target":35},{"source":29,"target":5},{"source":30,"target":36},{"source":30,"target":5},{"source":31,"target":37},{"source":31,"target":5},{"source":32,"target":38},{"source":32,"target":5},{"source":33,"target":39},{"source":33,"target":5}],"multigraph":true}