blob: 1a1e2f0d2f0a0a5daca079581631601bbd8a71dd [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="fruit" nsURI="http://www.eclipse.org/ocl/3.1.0/tests/fruit.ecore"
nsPrefix="fr">
<eClassifiers xsi:type="ecore:EClass" name="Fruit" abstract="true">
<eOperations name="ripen" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eParameters name="color" eType="#//Color"/>
</eOperations>
<eOperations name="preferredColor" eType="#//Color"/>
<eOperations name="newFruit" eType="#//Fruit"/>
<eOperations name="setColor" lowerBound="1">
<eParameters name="fruit" eType="#//Fruit"/>
<eParameters name="newColor" eType="#//Color"/>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="color" eType="#//Color"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
volatile="true" transient="true" derived="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="relatedFruits" ordered="false"
upperBound="-1" eType="#//Fruit" changeable="false" volatile="true" transient="true"
derived="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Apple" eSuperTypes="#//Fruit">
<eOperations name="label" lowerBound="1">
<eParameters name="text" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eOperations>
<eOperations name="newApple" eType="#//Apple"/>
<eOperations name="preferredLabel" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
<eParameters name="text" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="stem" eType="#//Stem" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="label" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="Color">
<eLiterals name="black"/>
<eLiterals name="red" value="1"/>
<eLiterals name="green" value="2"/>
<eLiterals name="yellow" value="3"/>
<eLiterals name="orange" value="4"/>
<eLiterals name="brown" value="5"/>
<eLiterals name="pink" value="6"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Stem"/>
<eClassifiers xsi:type="ecore:EClass" name="FruitUtil">
<eOperations name="processOrderedSet" upperBound="-1" eType="#//Fruit">
<eParameters name="fruits" upperBound="-1" eType="#//Fruit"/>
</eOperations>
<eOperations name="processSet" ordered="false" upperBound="-1" eType="#//Fruit">
<eParameters name="fruits" ordered="false" upperBound="-1" eType="#//Fruit"/>
</eOperations>
<eOperations name="processBag" ordered="false" unique="false" upperBound="-1"
eType="#//Fruit">
<eParameters name="fruits" ordered="false" unique="false" upperBound="-1" eType="#//Fruit"/>
</eOperations>
<eOperations name="processSequence" unique="false" upperBound="-1" eType="#//Fruit">
<eParameters name="fruits" unique="false" upperBound="-1" eType="#//Fruit"/>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="orderedSet" upperBound="-1"
eType="#//Fruit"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="set" ordered="false" upperBound="-1"
eType="#//Fruit"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="bag" ordered="false" unique="false"
upperBound="-1" eType="#//Fruit"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="sequence" unique="false"
upperBound="-1" eType="#//Fruit"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Tree">
<eStructuralFeatures xsi:type="ecore:EReference" name="fruits" upperBound="-1"
eType="#//Fruit" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eSubpackages name="apple">
<eClassifiers xsi:type="ecore:EClass" name="EatingApple" eSuperTypes="#//Apple"/>
<eClassifiers xsi:type="ecore:EClass" name="CookingApple" eSuperTypes="#//Apple"/>
</eSubpackages>
</ecore:EPackage>