| <?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()) {
	String id = constraint.getId();
	if (id != null && id.equals(constraintId)) {
		return constraint.getMessage();
	}
}
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()) {
	String id = contraint.getId();
	if (id != null && id.equals(constraintId)) {
		return contraint.getSeverity();
	}
}
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> |