blob: 2403c40d6ef9aed782185bc6426cad96329a36fd [file] [log] [blame]
<?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="bowling" nsURI="http://org/eclipse/example/bowling" nsPrefix="org.eclipse.example.bowling">
<eClassifiers xsi:type="ecore:EClass" name="Player">
<eOperations name="validate" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eParameters name="chain" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
<eParameters name="context">
<eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap">
<eTypeArguments/>
<eTypeArguments/>
</eGenericType>
</eParameters>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dateOfBirth" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="height" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isProfessional" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="eMails" lowerBound="1"
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="numberOfVictories" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="playedTournamentTypes"
upperBound="-1" eType="#//TournamentType"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="winLossRatio" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBigDecimal"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="gender" eType="#//Gender"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="League">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="players" upperBound="-1"
eType="#//Player" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Tournament">
<eStructuralFeatures xsi:type="ecore:EReference" name="matchups" upperBound="-1"
eType="#//Matchup" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//TournamentType"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="playerPoints" upperBound="-1"
eType="#//PlayerToPointsMap" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="players" upperBound="-1"
eType="#//Player"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="referees" upperBound="-1"
eType="#//RefereeToGamesMap" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="priceMoney" unique="false"
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="receivesTrophy" unique="false"
upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="matchDays" upperBound="-1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Matchup">
<eStructuralFeatures xsi:type="ecore:EReference" name="games" lowerBound="2" upperBound="2"
eType="#//Game" containment="true" eOpposite="#//Game/matchup"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nrSpectators" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBigInteger"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Game">
<eStructuralFeatures xsi:type="ecore:EReference" name="matchup" lowerBound="1"
eType="#//Matchup" eOpposite="#//Matchup/games"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="player" eType="#//Player"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="frames" unique="false"
upperBound="10" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="TournamentType">
<eLiterals name="Pro" literal="Pro"/>
<eLiterals name="Amateur" value="1" literal="Amateur"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PlayerToPointsMap" instanceClassName="java.util.Map$Entry">
<eStructuralFeatures xsi:type="ecore:EReference" name="key" eType="#//Player"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Referee">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dateOfBirth" eType="#//XMLDate"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="league" eType="#//League"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="RefereeToGamesMap" instanceClassName="java.util.Map$Entry">
<eStructuralFeatures xsi:type="ecore:EReference" name="key" eType="#//Referee"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//Game"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Area">
<eStructuralFeatures xsi:type="ecore:EReference" name="areas" upperBound="-1"
eType="#//Area" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="tournaments" upperBound="-1"
eType="#//Tournament" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="Gender">
<eLiterals name="Female"/>
<eLiterals name="Male" value="1"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Fan">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dateOfBirth" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDate"
unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="hasSeasonTicket" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="eMails" upperBound="-1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="gender" eType="#//Gender"
unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="favouritePlayer" eType="#//Player"
unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="fanMerchandise" upperBound="-1"
eType="#//Merchandise" unsettable="true" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="favouriteMerchandise" eType="#//Merchandise"
unsettable="true" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="visitedTournaments" upperBound="-1"
eType="#//Tournament" unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="numberOfTournamentsVisited"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="moneySpentOnTickets" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"
unsettable="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Merchandise">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="price" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBigDecimal"
unsettable="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="serialNumber" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBigInteger"
unsettable="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="XMLDate" instanceClassName="javax.xml.datatype.XMLGregorianCalendar">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#date"/>
</eAnnotations>
</eClassifiers>
</ecore:EPackage>