blob: b215c40c7c4dc0be80a6ff89889e064445ff964f [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="catalog" nsURI="http://www.eclipse.org/sphinx/check/catalog"
nsPrefix="cc">
<eClassifiers xsi:type="ecore:EClass" name="Identifiable" abstract="true">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
iD="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="label" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Catalog" eSuperTypes="#//Identifiable">
<eOperations name="getMessage" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="for (Constraint constraint : getConstraints()) {&#xA;&#x9;String id = constraint.getId();&#xA;&#x9;if (id != null &amp;&amp; id.equals(constraintId)) {&#xA;&#x9;&#x9;return constraint.getMessage();&#xA;&#x9;}&#xA;}&#xA;return null;"/>
</eAnnotations>
<eParameters name="constraintId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eOperations>
<eOperations name="getSeverity" eType="#//Severity">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="for (Constraint contraint : getConstraints()) {&#xA;&#x9;String id = contraint.getId();&#xA;&#x9;if (id != null &amp;&amp; id.equals(constraintId)) {&#xA;&#x9;&#x9;return contraint.getSeverity();&#xA;&#x9;}&#xA;}&#xA;return Severity.ERROR;"/>
</eAnnotations>
<eParameters name="constraintId" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="categories" upperBound="-1"
eType="#//Category" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="constraints" upperBound="-1"
eType="#//Constraint" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Constraint" eSuperTypes="#//Identifiable">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="severity" eType="#//Severity"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="message" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="categories" upperBound="-1"
eType="#//Category"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Category" eSuperTypes="#//Identifiable"/>
<eClassifiers xsi:type="ecore:EEnum" name="Severity">
<eLiterals name="Error" value="2"/>
<eLiterals name="Warning" value="1" literal="Warning"/>
<eLiterals name="Info" literal="Info"/>
</eClassifiers>
</ecore:EPackage>