Skip to content
Snippets Groups Projects
Select Git revision
  • a68f2ae355966f4cf2bd2d772a95074b6086fbcc
  • master default protected
2 results

ModelJoinLibrary.ecore

Blame
  • ModelJoinLibrary.ecore 5.03 KiB
    <?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="EclipseLibrary" nsURI="http://www.example.org/eclipselibrary"
        nsPrefix="org.rosi_project.example.mm.elib">
      <eClassifiers xsi:type="ecore:EClass" name="Item">
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="publicationDate" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
      </eClassifiers>
      <eClassifiers xsi:type="ecore:EClass" name="Periodical" eSuperTypes="#//Item">
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="issuesPerYear" lowerBound="1"
            eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
      </eClassifiers>
      <eClassifiers xsi:type="ecore:EEnum" name="BookCategory">
        <eLiterals name="Mystery"/>
        <eLiterals name="ScienceFiction" value="1"/>
        <eLiterals name="Biography" value="2"/>
      </eClassifiers>
      <eClassifiers xsi:type="ecore:EClass" name="CirculatingItem" eSuperTypes="#//Item"/>
      <eClassifiers xsi:type="ecore:EClass" name="Book" eSuperTypes="#//CirculatingItem">
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="pages" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="category" eType="#//BookCategory"/>
        <eStructuralFeatures xsi:type="ecore:EReference" name="author" lowerBound="1"
            eType="#//Writer" eOpposite="#//Writer/books"/>
      </eClassifiers>
      <eClassifiers xsi:type="ecore:EClass" name="AudioVisualItem" eSuperTypes="#//CirculatingItem">
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="title" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="minutesLength" lowerBound="1"
            eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="damaged" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
      </eClassifiers>
      <eClassifiers xsi:type="ecore:EClass" name="VideoCassette" eSuperTypes="#//AudioVisualItem">
        <eStructuralFeatures xsi:type="ecore:EReference" name="cast" upperBound="-1" eType="#//Person"/>
      </eClassifiers>
      <eClassifiers xsi:type="ecore:EClass" name="BookOnTape" eSuperTypes="#//AudioVisualItem">
        <eStructuralFeatures xsi:type="ecore:EReference" name="reader" eType="#//Person"/>
        <eStructuralFeatures xsi:type="ecore:EReference" name="author" eType="#//Writer"/>
      </eClassifiers>
      <eClassifiers xsi:type="ecore:EClass" name="Person">
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="firstName" lowerBound="1"
            eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="lastName" lowerBound="1"
            eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
      </eClassifiers>
      <eClassifiers xsi:type="ecore:EClass" name="Writer" eSuperTypes="#//Person">
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
        <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
            eType="#//Book" eOpposite="#//Book/author"/>
      </eClassifiers>
      <eClassifiers xsi:type="ecore:EClass" name="Library">
        <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
        <eStructuralFeatures xsi:type="ecore:EReference" name="stock" upperBound="-1"
            eType="#//Item" containment="true"/>
        <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1"
            eType="#//Book"/>
        <eStructuralFeatures xsi:type="ecore:EReference" name="writers" upperBound="-1"
            eType="#//Writer" containment="true"/>
        <eStructuralFeatures xsi:type="ecore:EReference" name="borrowers" upperBound="-1"
            eType="#//Borrower" containment="true"/>
        <eStructuralFeatures xsi:type="ecore:EReference" name="employees" upperBound="-1"
            eType="#//Employee" containment="true"/>
        <eStructuralFeatures xsi:type="ecore:EReference" name="branches" upperBound="-1"
            eType="#//Library" containment="true" eOpposite="#//Library/parentBranch"/>
        <eStructuralFeatures xsi:type="ecore:EReference" name="parentBranch" eType="#//Library"
            eOpposite="#//Library/branches"/>
      </eClassifiers>
      <eClassifiers xsi:type="ecore:EClass" name="Borrower" eSuperTypes="#//Person"/>
      <eClassifiers xsi:type="ecore:EClass" name="Employee" eSuperTypes="#//Person">
        <eStructuralFeatures xsi:type="ecore:EReference" name="manager" eType="#//Employee"/>
      </eClassifiers>
    </ecore:EPackage>