tutorial
Library
name
books
loans
members
Book
isAvailable
param1
param2
name
copies
library
loans
Member
tespOP
name
library
loans
books
Loan
date
book
member
Organization
Type
asd
asd
JavaPackage
java.lang.Package
java.lang.Package
Librarian
orgOpp
workOn
Ref
RefOutsideEcore
SubOrg1
sb1C
SubOrg2
sb2C
<?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="tutorial" nsURI="http://www.eclipse.org/mdt/ocl/oclinecore/tutorial"
    nsPrefix="tut">
  <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
    <details key="invocationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
    <details key="settingDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
    <details key="validationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
  </eAnnotations>
  <eAnnotations source="http://www.modelwriter.eu/alloyinecore/import">
    <details key="FordOtosan" value="FordOtosan.ecore"/>
  </eAnnotations>
  <eAnnotations source="http://www.modelwriter.eu/alloyinecore/import">
    <details key="extlibrary" value="extlibrary.ecore"/>
  </eAnnotations>
  <eAnnotations source="http://www.modelwriter.eu/alloyinecore/import">
    <details key="Ecore" value="http://www.eclipse.org/emf/2002/Ecore"/>
  </eAnnotations>
  <eClassifiers xsi:type="ecore:EClass" name="Library">
    <eAnnotations source="http://www.modelwriter.eu/alloyinecore/visibility">
      <details key="visibility" value="public"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
      <eAnnotations/>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="books" ordered="false"
        upperBound="-1" eType="#//Book" containment="true" eOpposite="#//Book/library">
      <eAnnotations source="sadasdas"/>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="loans" ordered="false"
        upperBound="-1" eType="#//Loan" containment="true">
      <eAnnotations source="http://www.modelwriter.eu/alloyinecore/static"/>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="members" ordered="false"
        upperBound="-1" eType="#//Member" containment="true" eOpposite="#//Member/library"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Book">
    <eAnnotations source="http://www.modelwriter.eu/alloyinecore/expression/invariant">
      <details key="callable" value="false"/>
      <details key="name" value="importantConstraint"/>
      <details key="message" value="multi&#xA;lined&#xA;message"/>
    </eAnnotations>
    <eOperations name="isAvailable" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
      <eAnnotations source="http://www.modelwriter.eu/alloyinecore/operation/body"/>
      <eAnnotations source="http://www.modelwriter.eu/alloyinecore/operation/postcondition">
        <details key="name" value="sup"/>
        <details key="message" value="this is a precondition"/>
      </eAnnotations>
      <eParameters name="param1" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
      <eParameters name="param2" ordered="false" eType="#//Book"/>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="copies" ordered="false"
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBigInteger"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="library" ordered="false"
        eType="#//Library" eOpposite="#//Library/books"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="loans" ordered="false"
        upperBound="-1" eType="#//Loan" volatile="true" derived="true">
      <eAnnotations source="http://www.modelwriter.eu/alloyinecore/expression/derivation">
        <details key="expression" value="library.loans->select"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Member">
    <eOperations name="tespOP" ordered="false" lowerBound="1"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" ordered="false" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="library" ordered="false"
        eType="#//Library" eOpposite="#//Library/members"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="loans" ordered="false"
        upperBound="-1" eType="#//Loan" volatile="true" derived="true">
      <eAnnotations source="http://www.modelwriter.eu/alloyinecore/expression/derivation">
        <details key="expression" value="library.loans->select"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="books" ordered="false"
        unique="false" upperBound="-1" eType="#//Book" volatile="true" derived="true">
      <eAnnotations source="http://www.modelwriter.eu/alloyinecore/expression/derivation">
        <details key="expression" value="loans->collect"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Loan">
    <eAnnotations references="#//Organization/Librarian/orgOpp"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="date" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="book" ordered="false" lowerBound="1"
        eType="#//Organization/SubOrg1/sb1C"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="member" ordered="false"
        lowerBound="1" eType="#//Member"/>
  </eClassifiers>
  <eSubpackages name="Organization" nsURI="http://www.eclipse.org/mdt/ocl/oclinecore/tutorial/organization"
      nsPrefix="org">
    <eAnnotations source="extAnno" references="extlibrary.ecore#//Item FordOtosan.ecore#//Container/vehicle extlibrary.ecore#//Item/publicationDate FordOtosan.ecore#//Vehicle/ElectricalPowerSupplySystem/ElectricalPowerSupplySystem/electricalPowerSupplySystemPart"/>
    <eClassifiers xsi:type="ecore:EEnum" name="Type" serializable="false">
      <eLiterals name="asd"/>
    </eClassifiers>
    <eClassifiers xsi:type="ecore:EDataType" name="JavaPackage" instanceClassName="java.lang.Package"
        serializable="false"/>
    <eClassifiers xsi:type="ecore:EClass" name="Librarian" eSuperTypes="extlibrary.ecore#//Employee">
      <eOperations name="orgOpp" ordered="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong"/>
      <eStructuralFeatures xsi:type="ecore:EReference" name="workOn" ordered="false"
          eType="#//Organization/SubOrg2/sb2C"/>
    </eClassifiers>
    <eClassifiers xsi:type="ecore:EClass" name="Ref" eSuperTypes="#//Library">
      <eStructuralFeatures xsi:type="ecore:EReference" name="RefOutsideEcore" ordered="false"
          eType="ecore:EClass extlibrary.ecore#//Item"/>
    </eClassifiers>
    <eSubpackages name="SubOrg1" nsURI="suborg1" nsPrefix="sb">
      <eClassifiers xsi:type="ecore:EClass" name="sb1C"/>
    </eSubpackages>
    <eSubpackages name="SubOrg2" nsURI="SubOrg2" nsPrefix="sb2">
      <eClassifiers xsi:type="ecore:EClass" name="sb2C"/>
    </eSubpackages>
  </eSubpackages>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"tut","nsURI":"http://www.eclipse.org/mdt/ocl/oclinecore/tutorial","name":"tutorial","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":"Book","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Member","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Loan","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"nsPrefix":"org","nsURI":"http://www.eclipse.org/mdt/ocl/oclinecore/tutorial/organization","name":"Organization","id":5,"eClass":"EPackage"},{"ordered":false,"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":6,"derived":false},{"container":false,"ordered":false,"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},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"loans","changeable":true,"resolveProxies":true,"lowerBound":0,"id":8,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"members","changeable":true,"resolveProxies":true,"lowerBound":0,"id":9,"derived":false},{"id":10,"eClass":"EGenericType"},{"id":11,"eClass":"EGenericType"},{"container":true,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"library","changeable":true,"resolveProxies":true,"lowerBound":0,"id":12,"derived":false},{"id":13,"eClass":"EGenericType"},{"id":14,"eClass":"EGenericType"},{"container":true,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"library","changeable":true,"resolveProxies":true,"lowerBound":0,"id":15,"derived":false},{"ordered":false,"upperBound":1,"unique":true,"name":"isAvailable","lowerBound":0,"id":16,"many":false,"required":false,"eClass":"EOperation"},{"ordered":false,"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":17,"derived":false},{"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"copies","changeable":true,"lowerBound":1,"iD":false,"id":18,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":true,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"loans","changeable":true,"resolveProxies":true,"lowerBound":0,"id":19,"derived":true},{"id":20,"eClass":"EGenericType"},{"ordered":false,"upperBound":1,"unique":true,"name":"param1","lowerBound":0,"id":21,"many":false,"required":false,"eClass":"EParameter"},{"ordered":false,"upperBound":1,"unique":true,"name":"param2","lowerBound":0,"id":22,"many":false,"required":false,"eClass":"EParameter"},{"id":23,"eClass":"EGenericType"},{"id":24,"eClass":"EGenericType"},{"id":25,"eClass":"EGenericType"},{"id":26,"eClass":"EGenericType"},{"id":27,"eClass":"EGenericType"},{"id":28,"eClass":"EGenericType"},{"ordered":false,"upperBound":1,"unique":true,"name":"tespOP","lowerBound":1,"id":29,"many":false,"required":true,"eClass":"EOperation"},{"ordered":false,"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":30,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":true,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"loans","changeable":true,"resolveProxies":true,"lowerBound":0,"id":31,"derived":true},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":true,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":false,"name":"books","changeable":true,"resolveProxies":true,"lowerBound":0,"id":32,"derived":true},{"id":33,"eClass":"EGenericType"},{"id":34,"eClass":"EGenericType"},{"id":35,"eClass":"EGenericType"},{"id":36,"eClass":"EGenericType"},{"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"date","changeable":true,"lowerBound":0,"iD":false,"id":37,"derived":false},{"container":false,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"book","changeable":true,"resolveProxies":true,"lowerBound":1,"id":38,"derived":false},{"container":false,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"member","changeable":true,"resolveProxies":true,"lowerBound":1,"id":39,"derived":false},{"id":40,"eClass":"EGenericType"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"sb1C","instanceClass":null,"abstract":false,"id":41,"interface":false,"eClass":"EClass"},{"id":42,"eClass":"EGenericType"},{"id":43,"eClass":"EGenericType"},{"instanceTypeName":null,"instanceClassName":null,"name":"Type","instanceClass":null,"id":44,"serializable":false,"eClass":"EEnum"},{"instanceTypeName":"java.lang.Package","defaultValue":null,"instanceClassName":"java.lang.Package","name":"JavaPackage","instanceClass":"java.lang.Package","id":45,"serializable":false,"eClass":"EDataType"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Librarian","instanceClass":null,"abstract":false,"id":46,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Ref","instanceClass":null,"abstract":false,"id":47,"interface":false,"eClass":"EClass"},{"nsPrefix":"sb","nsURI":"suborg1","name":"SubOrg1","id":48,"eClass":"EPackage"},{"nsPrefix":"sb2","nsURI":"SubOrg2","name":"SubOrg2","id":49,"eClass":"EPackage"},{"name":"asd","id":50,"value":0,"literal":"asd","eClass":"EEnumLiteral"},{"ordered":false,"upperBound":1,"unique":true,"name":"orgOpp","lowerBound":0,"id":51,"many":false,"required":false,"eClass":"EOperation"},{"container":false,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"workOn","changeable":true,"resolveProxies":true,"lowerBound":0,"id":52,"derived":false},{"id":53,"eClass":"EGenericType"},{"id":54,"eClass":"EGenericType"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"sb2C","instanceClass":null,"abstract":false,"id":55,"interface":false,"eClass":"EClass"},{"id":56,"eClass":"EGenericType"},{"container":false,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"RefOutsideEcore","changeable":true,"resolveProxies":true,"lowerBound":0,"id":57,"derived":false},{"id":58,"eClass":"EGenericType"},{"id":59,"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":10},{"source":6,"target":1},{"source":7,"target":2},{"source":7,"target":11},{"source":7,"target":1},{"source":7,"target":12},{"source":11,"target":2},{"source":8,"target":4},{"source":8,"target":13},{"source":8,"target":1},{"source":13,"target":4},{"source":9,"target":3},{"source":9,"target":14},{"source":9,"target":1},{"source":9,"target":15},{"source":14,"target":3},{"source":2,"target":0},{"source":2,"target":16},{"source":2,"target":17},{"source":2,"target":18},{"source":2,"target":12},{"source":2,"target":19},{"source":16,"target":20},{"source":16,"target":2},{"source":16,"target":21},{"source":16,"target":22},{"source":21,"target":23},{"source":21,"target":16},{"source":22,"target":2},{"source":22,"target":24},{"source":22,"target":16},{"source":24,"target":2},{"source":17,"target":25},{"source":17,"target":2},{"source":18,"target":26},{"source":18,"target":2},{"source":12,"target":1},{"source":12,"target":27},{"source":12,"target":2},{"source":12,"target":7},{"source":27,"target":1},{"source":19,"target":4},{"source":19,"target":28},{"source":19,"target":2},{"source":28,"target":4},{"source":3,"target":0},{"source":3,"target":29},{"source":3,"target":30},{"source":3,"target":15},{"source":3,"target":31},{"source":3,"target":32},{"source":29,"target":3},{"source":30,"target":33},{"source":30,"target":3},{"source":15,"target":1},{"source":15,"target":34},{"source":15,"target":3},{"source":15,"target":9},{"source":34,"target":1},{"source":31,"target":4},{"source":31,"target":35},{"source":31,"target":3},{"source":35,"target":4},{"source":32,"target":2},{"source":32,"target":36},{"source":32,"target":3},{"source":36,"target":2},{"source":4,"target":0},{"source":4,"target":37},{"source":4,"target":38},{"source":4,"target":39},{"source":37,"target":40},{"source":37,"target":4},{"source":38,"target":41},{"source":38,"target":42},{"source":38,"target":4},{"source":42,"target":41},{"source":39,"target":3},{"source":39,"target":43},{"source":39,"target":4},{"source":43,"target":3},{"source":5,"target":44},{"source":5,"target":45},{"source":5,"target":46},{"source":5,"target":47},{"source":5,"target":48},{"source":5,"target":49},{"source":5,"target":0},{"source":44,"target":5},{"source":44,"target":50},{"source":50,"target":44},{"source":45,"target":5},{"source":46,"target":5},{"source":46,"target":51},{"source":46,"target":52},{"source":46,"target":53},{"source":51,"target":54},{"source":51,"target":46},{"source":52,"target":55},{"source":52,"target":56},{"source":52,"target":46},{"source":56,"target":55},{"source":47,"target":5},{"source":47,"target":1},{"source":47,"target":57},{"source":47,"target":58},{"source":57,"target":59},{"source":57,"target":47},{"source":58,"target":1},{"source":48,"target":41},{"source":48,"target":5},{"source":41,"target":48},{"source":49,"target":55},{"source":49,"target":5},{"source":55,"target":49}],"multigraph":true}