MediaLibrary
NamedElement
name
Ecosystem
libraries
devices
mediaSources
Library
collections
MediaCollection
members
host
syncedDevices
Device
hostOf
collections
Tablet
Computer
Smartphone
EReader
videoEnabled
audioEnabled
Artifact
origin
DurationArtifact
duration
AudioBook
MusicTrack
Video
Image
Ebook
MediaSource
contents
SourceType
CD
CD
DVD
DVD
VHS
VHS
CASSETTE
CASSETTE
HDD
HDD
OTHER
OTHER
ExternalSource
sourceType
Store
<?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="MediaLibrary" nsURI="MediaLibrary" nsPrefix="MediaLibrary">
  <eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true">
    <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="Ecosystem">
    <eAnnotations source="gmf.diagram"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="libraries" lowerBound="1"
        upperBound="-1" eType="#//Library" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="devices" lowerBound="1"
        upperBound="-1" eType="#//Device" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="mediaSources" lowerBound="1"
        upperBound="-1" eType="#//MediaSource" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Library" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="collections" upperBound="-1"
        eType="#//MediaCollection" containment="true">
      <eAnnotations source="gmf.compartment"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="MediaCollection" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="members" lowerBound="1"
        upperBound="-1" eType="#//Artifact" containment="true">
      <eAnnotations source="gmf.compartment"/>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="host" lowerBound="1" eType="#//Device"
        eOpposite="#//Device/hostOf">
      <eAnnotations source="gmf.link">
        <details key="target.decoration" value="arrow"/>
        <details key="style" value="dash"/>
        <details key="color" value="255,0,0"/>
        <details key="label.text" value="host"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="syncedDevices" lowerBound="1"
        upperBound="-1" eType="#//Device" eOpposite="#//Device/collections">
      <eAnnotations source="gmf.link">
        <details key="target.decoration" value="arrow"/>
        <details key="style" value="dash"/>
        <details key="label.text" value="syncedDevice"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Device" abstract="true" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="hostOf" upperBound="-1"
        eType="#//MediaCollection" eOpposite="#//MediaCollection/host"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="collections" upperBound="-1"
        eType="#//MediaCollection" eOpposite="#//MediaCollection/syncedDevices"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Tablet" eSuperTypes="#//Device"/>
  <eClassifiers xsi:type="ecore:EClass" name="Computer" eSuperTypes="#//Device"/>
  <eClassifiers xsi:type="ecore:EClass" name="Smartphone" eSuperTypes="#//Device"/>
  <eClassifiers xsi:type="ecore:EClass" name="EReader" eSuperTypes="#//Device">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="videoEnabled" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="audioEnabled" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Artifact" abstract="true" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="origin" lowerBound="1"
        eType="#//MediaSource" eOpposite="#//MediaSource/contents">
      <eAnnotations source="gmf.link">
        <details key="target.decoration" value="arrow"/>
        <details key="style" value="dot"/>
        <details key="color" value="50,200,0"/>
        <details key="label.text" value="origin"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="DurationArtifact" abstract="true" eSuperTypes="#//Artifact">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="duration" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="AudioBook" eSuperTypes="#//DurationArtifact"/>
  <eClassifiers xsi:type="ecore:EClass" name="MusicTrack" eSuperTypes="#//DurationArtifact"/>
  <eClassifiers xsi:type="ecore:EClass" name="Video" eSuperTypes="#//DurationArtifact"/>
  <eClassifiers xsi:type="ecore:EClass" name="Image" eSuperTypes="#//Artifact"/>
  <eClassifiers xsi:type="ecore:EClass" name="Ebook" eSuperTypes="#//Artifact"/>
  <eClassifiers xsi:type="ecore:EClass" name="MediaSource" abstract="true" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="contents" upperBound="-1"
        eType="#//Artifact" eOpposite="#//Artifact/origin"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="SourceType">
    <eLiterals name="CD"/>
    <eLiterals name="DVD" value="1"/>
    <eLiterals name="VHS" value="2"/>
    <eLiterals name="CASSETTE" value="3"/>
    <eLiterals name="HDD" value="4"/>
    <eLiterals name="OTHER" value="5"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ExternalSource" eSuperTypes="#//MediaSource">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="sourceType" eType="#//SourceType"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Store" eSuperTypes="#//MediaSource"/>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"MediaLibrary","nsURI":"MediaLibrary","name":"MediaLibrary","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NamedElement","instanceClass":null,"abstract":true,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Ecosystem","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Library","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MediaCollection","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Device","instanceClass":null,"abstract":true,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Tablet","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Computer","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Smartphone","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"EReader","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Artifact","instanceClass":null,"abstract":true,"id":10,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"DurationArtifact","instanceClass":null,"abstract":true,"id":11,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"AudioBook","instanceClass":null,"abstract":false,"id":12,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MusicTrack","instanceClass":null,"abstract":false,"id":13,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Video","instanceClass":null,"abstract":false,"id":14,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Image","instanceClass":null,"abstract":false,"id":15,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Ebook","instanceClass":null,"abstract":false,"id":16,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MediaSource","instanceClass":null,"abstract":true,"id":17,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"SourceType","instanceClass":null,"id":18,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ExternalSource","instanceClass":null,"abstract":false,"id":19,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Store","instanceClass":null,"abstract":false,"id":20,"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":"name","changeable":true,"lowerBound":0,"iD":false,"id":21,"derived":false},{"id":22,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"libraries","changeable":true,"resolveProxies":true,"lowerBound":1,"id":23,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"devices","changeable":true,"resolveProxies":true,"lowerBound":1,"id":24,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"mediaSources","changeable":true,"resolveProxies":true,"lowerBound":1,"id":25,"derived":false},{"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":true,"unsettable":false,"transient":false,"unique":true,"name":"collections","changeable":true,"resolveProxies":true,"lowerBound":0,"id":29,"derived":false},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"members","changeable":true,"resolveProxies":true,"lowerBound":1,"id":32,"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":"host","changeable":true,"resolveProxies":true,"lowerBound":1,"id":33,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"syncedDevices","changeable":true,"resolveProxies":true,"lowerBound":1,"id":34,"derived":false},{"id":35,"eClass":"EGenericType"},{"id":36,"eClass":"EGenericType"},{"id":37,"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":"hostOf","changeable":true,"resolveProxies":true,"lowerBound":0,"id":38,"derived":false},{"id":39,"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":"collections","changeable":true,"resolveProxies":true,"lowerBound":0,"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"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"videoEnabled","changeable":true,"lowerBound":0,"iD":false,"id":47,"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":"audioEnabled","changeable":true,"lowerBound":0,"iD":false,"id":48,"derived":false},{"id":49,"eClass":"EGenericType"},{"id":50,"eClass":"EGenericType"},{"id":51,"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":"origin","changeable":true,"resolveProxies":true,"lowerBound":1,"id":52,"derived":false},{"id":53,"eClass":"EGenericType"},{"id":54,"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":"contents","changeable":true,"resolveProxies":true,"lowerBound":0,"id":55,"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":"duration","changeable":true,"lowerBound":0,"iD":false,"id":56,"derived":false},{"id":57,"eClass":"EGenericType"},{"id":58,"eClass":"EGenericType"},{"id":59,"eClass":"EGenericType"},{"id":60,"eClass":"EGenericType"},{"id":61,"eClass":"EGenericType"},{"id":62,"eClass":"EGenericType"},{"id":63,"eClass":"EGenericType"},{"id":64,"eClass":"EGenericType"},{"id":65,"eClass":"EGenericType"},{"name":"CD","id":66,"value":0,"literal":"CD","eClass":"EEnumLiteral"},{"name":"DVD","id":67,"value":1,"literal":"DVD","eClass":"EEnumLiteral"},{"name":"VHS","id":68,"value":2,"literal":"VHS","eClass":"EEnumLiteral"},{"name":"CASSETTE","id":69,"value":3,"literal":"CASSETTE","eClass":"EEnumLiteral"},{"name":"HDD","id":70,"value":4,"literal":"HDD","eClass":"EEnumLiteral"},{"name":"OTHER","id":71,"value":5,"literal":"OTHER","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"sourceType","changeable":true,"lowerBound":0,"iD":false,"id":72,"derived":false},{"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":0,"target":11},{"source":0,"target":12},{"source":0,"target":13},{"source":0,"target":14},{"source":0,"target":15},{"source":0,"target":16},{"source":0,"target":17},{"source":0,"target":18},{"source":0,"target":19},{"source":0,"target":20},{"source":1,"target":0},{"source":1,"target":21},{"source":21,"target":22},{"source":21,"target":1},{"source":2,"target":0},{"source":2,"target":23},{"source":2,"target":24},{"source":2,"target":25},{"source":23,"target":3},{"source":23,"target":26},{"source":23,"target":2},{"source":26,"target":3},{"source":24,"target":5},{"source":24,"target":27},{"source":24,"target":2},{"source":27,"target":5},{"source":25,"target":17},{"source":25,"target":28},{"source":25,"target":2},{"source":28,"target":17},{"source":3,"target":0},{"source":3,"target":1},{"source":3,"target":29},{"source":3,"target":30},{"source":29,"target":4},{"source":29,"target":31},{"source":29,"target":3},{"source":31,"target":4},{"source":30,"target":1},{"source":4,"target":0},{"source":4,"target":1},{"source":4,"target":32},{"source":4,"target":33},{"source":4,"target":34},{"source":4,"target":35},{"source":32,"target":10},{"source":32,"target":36},{"source":32,"target":4},{"source":36,"target":10},{"source":33,"target":5},{"source":33,"target":37},{"source":33,"target":4},{"source":33,"target":38},{"source":37,"target":5},{"source":34,"target":5},{"source":34,"target":39},{"source":34,"target":4},{"source":34,"target":40},{"source":39,"target":5},{"source":35,"target":1},{"source":5,"target":0},{"source":5,"target":1},{"source":5,"target":38},{"source":5,"target":40},{"source":5,"target":41},{"source":38,"target":4},{"source":38,"target":42},{"source":38,"target":5},{"source":38,"target":33},{"source":42,"target":4},{"source":40,"target":4},{"source":40,"target":43},{"source":40,"target":5},{"source":40,"target":34},{"source":43,"target":4},{"source":41,"target":1},{"source":6,"target":0},{"source":6,"target":5},{"source":6,"target":44},{"source":44,"target":5},{"source":7,"target":0},{"source":7,"target":5},{"source":7,"target":45},{"source":45,"target":5},{"source":8,"target":0},{"source":8,"target":5},{"source":8,"target":46},{"source":46,"target":5},{"source":9,"target":0},{"source":9,"target":5},{"source":9,"target":47},{"source":9,"target":48},{"source":9,"target":49},{"source":47,"target":50},{"source":47,"target":9},{"source":48,"target":51},{"source":48,"target":9},{"source":49,"target":5},{"source":10,"target":0},{"source":10,"target":1},{"source":10,"target":52},{"source":10,"target":53},{"source":52,"target":17},{"source":52,"target":54},{"source":52,"target":10},{"source":52,"target":55},{"source":54,"target":17},{"source":53,"target":1},{"source":11,"target":0},{"source":11,"target":10},{"source":11,"target":56},{"source":11,"target":57},{"source":56,"target":58},{"source":56,"target":11},{"source":57,"target":10},{"source":12,"target":0},{"source":12,"target":11},{"source":12,"target":59},{"source":59,"target":11},{"source":13,"target":0},{"source":13,"target":11},{"source":13,"target":60},{"source":60,"target":11},{"source":14,"target":0},{"source":14,"target":11},{"source":14,"target":61},{"source":61,"target":11},{"source":15,"target":0},{"source":15,"target":10},{"source":15,"target":62},{"source":62,"target":10},{"source":16,"target":0},{"source":16,"target":10},{"source":16,"target":63},{"source":63,"target":10},{"source":17,"target":0},{"source":17,"target":1},{"source":17,"target":55},{"source":17,"target":64},{"source":55,"target":10},{"source":55,"target":65},{"source":55,"target":17},{"source":55,"target":52},{"source":65,"target":10},{"source":64,"target":1},{"source":18,"target":0},{"source":18,"target":66},{"source":18,"target":67},{"source":18,"target":68},{"source":18,"target":69},{"source":18,"target":70},{"source":18,"target":71},{"source":66,"target":18},{"source":67,"target":18},{"source":68,"target":18},{"source":69,"target":18},{"source":70,"target":18},{"source":71,"target":18},{"source":19,"target":0},{"source":19,"target":17},{"source":19,"target":72},{"source":19,"target":73},{"source":72,"target":18},{"source":72,"target":74},{"source":72,"target":19},{"source":74,"target":18},{"source":73,"target":17},{"source":20,"target":0},{"source":20,"target":17},{"source":20,"target":75},{"source":75,"target":17}],"multigraph":true}