blob: b5e41359bf60a8473c7da558f2993660fa4bd3fd [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="modelWithErrors" nsURI="http://www.eclipse.org/ocl/test/2010/ModelWithErrors.ecore"
nsPrefix="mwe">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="invocationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL"/>
<details key="settingDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL"/>
<details key="validationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL"/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="Root">
<eStructuralFeatures xsi:type="ecore:EReference" name="detritus" upperBound="-1"
eType="#//Detritus" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BadClass" eSuperTypes="#//Detritus">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="MissingConstraint"/>
</eAnnotations>
<eOperations name="operationEvaluatingToInvalid" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="body" value="invalid"/>
</eAnnotations>
</eOperations>
<eOperations name="operationEvaluatingToNull" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="body" value="null"/>
</eAnnotations>
</eOperations>
<eOperations name="operationEvaluatingToWrongType" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="body" value="99"/>
</eAnnotations>
</eOperations>
<eOperations name="operationDefinedWithoutBody" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL"/>
</eOperations>
<eOperations name="operationDefinedWithoutBodyBody" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="body"/>
</eAnnotations>
</eOperations>
<eOperations name="operationParsingToLexicalError" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="body" value="@@"/>
</eAnnotations>
</eOperations>
<eOperations name="operationParsingToSemanticError" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="body" value="self->oclIsInvalid(999)"/>
</eAnnotations>
</eOperations>
<eOperations name="operationParsingToSyntacticError" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="body" value="let in"/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeDefinedWithDerivationAndInitial"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" derived="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="derivation" value="42"/>
<details key="initial" value="-42"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeDefinedWithInitial"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" derived="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="initial" value="-42"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeDefinedWithoutDerivation"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" derived="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL"/>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeDefinedWithoutDerivationBody"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" derived="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="derivation"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeEvaluatingToInvalid"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" derived="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="derivation" value="invalid"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeEvaluatingToNull"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" derived="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="derivation" value="null"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeEvaluatingToWrongType"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" derived="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="derivation" value="'5'"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeParsingToLexicalError"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" derived="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="derivation" value="gh##jk"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeParsingToSemanticError"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" derived="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="derivation" value="'5' and 6"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="attributeParsingToSyntacticError"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" derived="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="derivation" value="invalid null"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Detritus"/>
<eClassifiers xsi:type="ecore:EClass" name="MissingConstraintBody" eSuperTypes="#//Detritus">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="missingConstraintBody"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="missingConstraintBody"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ValidationEvaluatingToInvalid" eSuperTypes="#//Detritus">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="evaluatingToInvalid"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="evaluatingToInvalid" value="let x : Boolean = invalid in x"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ValidationEvaluatingToNull" eSuperTypes="#//Detritus">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="evaluatingToNull"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="evaluatingToNull" value="let x : Boolean = null in x"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ValidationEvaluatingToWrongType" eSuperTypes="#//Detritus">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="evaluatingToWrongType"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="evaluatingToWrongType" value="invalid"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ValidationParsingToLexicalError" eSuperTypes="#//Detritus">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="parsingToLexicalError"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="parsingToLexicalError" value="'part"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ValidationParsingToSemanticError" eSuperTypes="#//Detritus">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="parsingToSemanticError"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="parsingToSemanticError" value="not '5'"/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ValidationParsingToSyntacticError" eSuperTypes="#//Detritus">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="parsingToSyntacticError"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
<details key="parsingToSyntacticError" value="else"/>
</eAnnotations>
</eClassifiers>
</ecore:EPackage>