EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.fzi.se.quality.qualityannotation.impl]

COVERAGE SUMMARY FOR SOURCE FILE [PCMRECategoryImpl.java]

nameclass, %method, %block, %line, %
PCMRECategoryImpl.java0%   (0/1)0%   (0/14)0%   (0/122)0%   (0/38)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PCMRECategoryImpl0%   (0/1)0%   (0/14)0%   (0/122)0%   (0/38)
<static initializer> 0%   (0/1)0%   (0/3)0%   (0/2)
ExistingREPrecisionCallParameterMustBeNoPrecisionDueToTheNonExistenceOfParame... 0%   (0/1)0%   (0/2)0%   (0/1)
NextLowerHierarchyLevelIsInterface (DiagnosticChain, Map): boolean 0%   (0/1)0%   (0/2)0%   (0/1)
NoSublevelsForCategoryResourceDemand (DiagnosticChain, Map): boolean 0%   (0/1)0%   (0/2)0%   (0/1)
PCMRECategoryImpl (): void 0%   (0/1)0%   (0/6)0%   (0/3)
ThisIsHighestHierarchyLevel (DiagnosticChain, Map): boolean 0%   (0/1)0%   (0/2)0%   (0/1)
eGet (int, boolean, boolean): Object 0%   (0/1)0%   (0/11)0%   (0/3)
eIsSet (int): boolean 0%   (0/1)0%   (0/14)0%   (0/3)
eSet (int, Object): void 0%   (0/1)0%   (0/12)0%   (0/5)
eStaticClass (): EClass 0%   (0/1)0%   (0/2)0%   (0/1)
eUnset (int): void 0%   (0/1)0%   (0/10)0%   (0/5)
getCategory (): PCMRERequestCategory 0%   (0/1)0%   (0/3)0%   (0/1)
setCategory (PCMRERequestCategory): void 0%   (0/1)0%   (0/25)0%   (0/5)
toString (): String 0%   (0/1)0%   (0/28)0%   (0/6)

1package de.fzi.se.quality.qualityannotation.impl;
2 
3 
4import de.fzi.se.quality.qualityannotation.PCMRECategory;
5import de.fzi.se.quality.qualityannotation.PCMRERequestCategory;
6import de.fzi.se.quality.qualityannotation.QualityAnnotationPackage;
7import de.fzi.se.quality.qualityannotation.util.QualityAnnotationValidator;
8import java.util.Map;
9import org.eclipse.emf.common.notify.Notification;
10import org.eclipse.emf.common.util.BasicDiagnostic;
11import org.eclipse.emf.common.util.Diagnostic;
12import org.eclipse.emf.common.util.DiagnosticChain;
13import org.eclipse.emf.ecore.EClass;
14import org.eclipse.emf.ecore.impl.ENotificationImpl;
15import org.eclipse.emf.ecore.plugin.EcorePlugin;
16import org.eclipse.emf.ecore.util.EObjectValidator;
17 
18/**
19 * <!-- begin-user-doc -->
20 * An implementation of the model object '<em><b>PCMRE Category</b></em>'.
21 * <!-- end-user-doc -->
22 * <p>
23 * The following features are implemented:
24 * <ul>
25 *   <li>{@link de.fzi.se.quality.qualityannotation.impl.PCMRECategoryImpl#getCategory <em>Category</em>}</li>
26 * </ul>
27 * </p>
28 *
29 * @generated
30 */
31public class PCMRECategoryImpl extends PCMREImpl implements PCMRECategory {
32        /**
33         * The default value of the '{@link #getCategory() <em>Category</em>}' attribute.
34         * <!-- begin-user-doc -->
35         * <!-- end-user-doc -->
36         * @see #getCategory()
37         * @generated
38         * @ordered
39         */
40        protected static final PCMRERequestCategory CATEGORY_EDEFAULT = PCMRERequestCategory.RESOURCE;
41 
42        /**
43         * The cached value of the '{@link #getCategory() <em>Category</em>}' attribute.
44         * <!-- begin-user-doc -->
45         * <!-- end-user-doc -->
46         * @see #getCategory()
47         * @generated
48         * @ordered
49         */
50        protected PCMRERequestCategory category = CATEGORY_EDEFAULT;
51 
52        /**
53         * <!-- begin-user-doc -->
54         * <!-- end-user-doc -->
55         * @generated
56         */
57        protected PCMRECategoryImpl() {
58                super();
59        }
60 
61        /**
62         * <!-- begin-user-doc -->
63         * <!-- end-user-doc -->
64         * @generated
65         */
66        @Override
67        protected EClass eStaticClass() {
68                return QualityAnnotationPackage.Literals.PCMRE_CATEGORY;
69        }
70 
71        /**
72         * <!-- begin-user-doc -->
73         * <!-- end-user-doc -->
74         * @generated
75         */
76        public PCMRERequestCategory getCategory() {
77                return category;
78        }
79 
80        /**
81         * <!-- begin-user-doc -->
82         * <!-- end-user-doc -->
83         * @generated
84         */
85        public void setCategory(PCMRERequestCategory newCategory) {
86                PCMRERequestCategory oldCategory = category;
87                category = newCategory == null ? CATEGORY_EDEFAULT : newCategory;
88                if (eNotificationRequired())
89                        eNotify(new ENotificationImpl(this, Notification.SET, QualityAnnotationPackage.PCMRE_CATEGORY__CATEGORY, oldCategory, category));
90        }
91 
92        /**
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        public boolean NextLowerHierarchyLevelIsInterface(DiagnosticChain diagnostics, Map<Object, Object> context) {
98                // TODO: implement this method
99                // -> specify the condition that violates the invariant
100                // -> verify the details of the diagnostic, including severity and message
101                // Ensure that you remove @generated or mark it @generated NOT
102                if (false) {
103                        if (diagnostics != null) {
104                                diagnostics.add
105                                        (new BasicDiagnostic
106                                                (Diagnostic.ERROR,
107                                                 QualityAnnotationValidator.DIAGNOSTIC_SOURCE,
108                                                 QualityAnnotationValidator.PCMRE_CATEGORY__NEXT_LOWER_HIERARCHY_LEVEL_IS_INTERFACE,
109                                                 EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "NextLowerHierarchyLevelIsInterface", EObjectValidator.getObjectLabel(this, context) }),
110                                                 new Object [] { this }));
111                        }
112                        return false;
113                }
114                return true;
115        }
116 
117        /**
118         * <!-- begin-user-doc -->
119         * <!-- end-user-doc -->
120         * @generated
121         */
122        public boolean ThisIsHighestHierarchyLevel(DiagnosticChain diagnostics, Map<Object, Object> context) {
123                // TODO: implement this method
124                // -> specify the condition that violates the invariant
125                // -> verify the details of the diagnostic, including severity and message
126                // Ensure that you remove @generated or mark it @generated NOT
127                if (false) {
128                        if (diagnostics != null) {
129                                diagnostics.add
130                                        (new BasicDiagnostic
131                                                (Diagnostic.ERROR,
132                                                 QualityAnnotationValidator.DIAGNOSTIC_SOURCE,
133                                                 QualityAnnotationValidator.PCMRE_CATEGORY__THIS_IS_HIGHEST_HIERARCHY_LEVEL,
134                                                 EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "ThisIsHighestHierarchyLevel", EObjectValidator.getObjectLabel(this, context) }),
135                                                 new Object [] { this }));
136                        }
137                        return false;
138                }
139                return true;
140        }
141 
142        /**
143         * <!-- begin-user-doc -->
144         * <!-- end-user-doc -->
145         * @generated
146         */
147        public boolean NoSublevelsForCategoryResourceDemand(DiagnosticChain diagnostics, Map<Object, Object> context) {
148                // TODO: implement this method
149                // -> specify the condition that violates the invariant
150                // -> verify the details of the diagnostic, including severity and message
151                // Ensure that you remove @generated or mark it @generated NOT
152                if (false) {
153                        if (diagnostics != null) {
154                                diagnostics.add
155                                        (new BasicDiagnostic
156                                                (Diagnostic.ERROR,
157                                                 QualityAnnotationValidator.DIAGNOSTIC_SOURCE,
158                                                 QualityAnnotationValidator.PCMRE_CATEGORY__NO_SUBLEVELS_FOR_CATEGORY_RESOURCE_DEMAND,
159                                                 EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "NoSublevelsForCategoryResourceDemand", EObjectValidator.getObjectLabel(this, context) }),
160                                                 new Object [] { this }));
161                        }
162                        return false;
163                }
164                return true;
165        }
166 
167        /**
168         * <!-- begin-user-doc -->
169         * <!-- end-user-doc -->
170         * @generated
171         */
172        public boolean ExistingREPrecisionCallParameterMustBeNoPrecisionDueToTheNonExistenceOfParametersForCategoryResourceDemand(DiagnosticChain diagnostics, Map<Object, Object> context) {
173                // TODO: implement this method
174                // -> specify the condition that violates the invariant
175                // -> verify the details of the diagnostic, including severity and message
176                // Ensure that you remove @generated or mark it @generated NOT
177                if (false) {
178                        if (diagnostics != null) {
179                                diagnostics.add
180                                        (new BasicDiagnostic
181                                                (Diagnostic.ERROR,
182                                                 QualityAnnotationValidator.DIAGNOSTIC_SOURCE,
183                                                 QualityAnnotationValidator.PCMRE_CATEGORY__EXISTING_RE_PRECISION_CALL_PARAMETER_MUST_BE_NO_PRECISION_DUE_TO_THE_NON_EXISTENCE_OF_PARAMETERS_FOR_CATEGORY_RESOURCE_DEMAND,
184                                                 EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "ExistingREPrecisionCallParameterMustBeNoPrecisionDueToTheNonExistenceOfParametersForCategoryResourceDemand", EObjectValidator.getObjectLabel(this, context) }),
185                                                 new Object [] { this }));
186                        }
187                        return false;
188                }
189                return true;
190        }
191 
192        /**
193         * <!-- begin-user-doc -->
194         * <!-- end-user-doc -->
195         * @generated
196         */
197        @Override
198        public Object eGet(int featureID, boolean resolve, boolean coreType) {
199                switch (featureID) {
200                        case QualityAnnotationPackage.PCMRE_CATEGORY__CATEGORY:
201                                return getCategory();
202                }
203                return super.eGet(featureID, resolve, coreType);
204        }
205 
206        /**
207         * <!-- begin-user-doc -->
208         * <!-- end-user-doc -->
209         * @generated
210         */
211        @Override
212        public void eSet(int featureID, Object newValue) {
213                switch (featureID) {
214                        case QualityAnnotationPackage.PCMRE_CATEGORY__CATEGORY:
215                                setCategory((PCMRERequestCategory)newValue);
216                                return;
217                }
218                super.eSet(featureID, newValue);
219        }
220 
221        /**
222         * <!-- begin-user-doc -->
223         * <!-- end-user-doc -->
224         * @generated
225         */
226        @Override
227        public void eUnset(int featureID) {
228                switch (featureID) {
229                        case QualityAnnotationPackage.PCMRE_CATEGORY__CATEGORY:
230                                setCategory(CATEGORY_EDEFAULT);
231                                return;
232                }
233                super.eUnset(featureID);
234        }
235 
236        /**
237         * <!-- begin-user-doc -->
238         * <!-- end-user-doc -->
239         * @generated
240         */
241        @Override
242        public boolean eIsSet(int featureID) {
243                switch (featureID) {
244                        case QualityAnnotationPackage.PCMRE_CATEGORY__CATEGORY:
245                                return category != CATEGORY_EDEFAULT;
246                }
247                return super.eIsSet(featureID);
248        }
249 
250        /**
251         * <!-- begin-user-doc -->
252         * <!-- end-user-doc -->
253         * @generated
254         */
255        @Override
256        public String toString() {
257                if (eIsProxy()) return super.toString();
258 
259                StringBuffer result = new StringBuffer(super.toString());
260                result.append(" (category: ");
261                result.append(category);
262                result.append(')');
263                return result.toString();
264        }
265 
266} //PCMRECategoryImpl

[all classes][de.fzi.se.quality.qualityannotation.impl]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov