blob: 4f31763335d3cf046bbbcdc28d5d9d7767c7cce6 [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="problems" nsURI="http://www.eclipse.org/papyrus/cdo/problems/1.0.0"
nsPrefix="problems">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="A model of problems, intended primarily as a persistence vehicle for Ecore Diagnostics in contexts where Eclipse resource problem markers (IProblemMarker) are either not available or not appropriate."/>
</eAnnotations>
<eClassifiers xsi:type="ecore:EClass" name="EProblem">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Description of a problem in some element of an EMF-based model instance."/>
</eAnnotations>
<eOperations name="toDiagnostic" lowerBound="1" eType="#//EDiagnostic"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="severity" lowerBound="1"
eType="#//ESeverity"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="message" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="source" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="code" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="element" lowerBound="1"
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="The element that manifests the problem."/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="related" upperBound="-1"
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Other model elements contributing to or otherwise related to the problem. May be, but not necessarily derived from, the 'data' list of an Ecore Diagnostic."/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="container" eType="#//EProblemsContainer"
eOpposite="#//EProblemsContainer/problems"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral="org.eclipse.emf.ecore.diagnostic">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Optional identifier of a problem type. This should correspond to a marker type registered on the Eclipse {@code org.eclipse.core.resources.markers} extension point."/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="attributes" upperBound="-1"
eType="#//Attribute" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ESeverity">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Enumeration of problem severities, corresponding to the Ecore Diagnostic severity values."/>
</eAnnotations>
<eLiterals name="OK"/>
<eLiterals name="INFO" value="1"/>
<eLiterals name="WARNING" value="2"/>
<eLiterals name="ERROR" value="4"/>
<eLiterals name="CANCEL" value="8"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EProblemsContainer">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="An optional container for problems, to provide a single node that can be conveniently contained in some larger structure such as an XML resource (which can only have one root element) or other generic container."/>
</eAnnotations>
<eOperations name="allProblems" lowerBound="1">
<eGenericType eClassifier="#//EIterator">
<eTypeArguments eClassifier="#//EProblem"/>
</eGenericType>
</eOperations>
<eOperations name="allProblems" lowerBound="1">
<eGenericType eClassifier="#//EIterator">
<eTypeArguments eClassifier="#//EProblem"/>
</eGenericType>
<eParameters name="element" lowerBound="1" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
</eOperations>
<eOperations name="allDiagnostics" upperBound="-1" eType="#//EDiagnostic"/>
<eOperations name="allDiagnostics" upperBound="-1" eType="#//EDiagnostic">
<eParameters name="element" lowerBound="1" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
</eOperations>
<eOperations name="getWorstProblem" eType="#//EProblem">
<eParameters name="element" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="problems" upperBound="-1"
eType="#//EProblem" containment="true" eOpposite="#//EProblem/container"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="subjects" upperBound="-1"
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Optional reference to elements that are the subjects of some collection of problems."/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="subcontainers" upperBound="-1"
eType="#//EProblemsContainer" containment="true" eOpposite="#//EProblemsContainer/container">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Optional nested group of containers, possibly referencing different subjects than the parent container."/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="container" eType="#//EProblemsContainer"
eOpposite="#//EProblemsContainer/subcontainers"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EDataType" name="EDiagnostic" instanceClassName="org.eclipse.emf.common.util.Diagnostic"
serializable="false"/>
<eClassifiers xsi:type="ecore:EDataType" name="EIterator" instanceClassName="java.util.Iterator"
serializable="false">
<eTypeParameters name="E"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Attribute" instanceClassName="java.util.Map$Entry">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="key" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
</ecore:EPackage>