EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.featuremodel.util]

COVERAGE SUMMARY FOR SOURCE FILE [featuremodelAdapterFactory.java]

nameclass, %method, %block, %line, %
featuremodelAdapterFactory.java0%   (0/2)0%   (0/42)0%   (0/160)0%   (0/51)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class featuremodelAdapterFactory0%   (0/1)0%   (0/22)0%   (0/78)0%   (0/31)
createAdapter (Notifier): Adapter 0%   (0/1)0%   (0/7)0%   (0/1)
createAttributeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createChildRelationAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createConstraintAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createContinousIntervalRangeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createDoubleAttributeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createEObjectAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createExternalObjectAttributeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createFeatureAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createFeatureDiagramAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createFeatureGroupAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createIdentifierAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createIntegerAttributeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createIntegerIntervalRangeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createIntervalRangeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createNamedElementAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createProhibitsConstraintAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createRequiredConstraintAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createSimpleAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createStringAttributeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
featuremodelAdapterFactory (): void 0%   (0/1)0%   (0/13)0%   (0/6)
isFactoryForType (Object): boolean 0%   (0/1)0%   (0/20)0%   (0/5)
     
class featuremodelAdapterFactory$10%   (0/1)0%   (0/20)0%   (0/82)0%   (0/21)
caseAttribute (Attribute): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseChildRelation (ChildRelation): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseConstraint (Constraint): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseContinousIntervalRange (ContinousIntervalRange): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseDoubleAttribute (DoubleAttribute): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseExternalObjectAttribute (ExternalObjectAttribute): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseFeature (Feature): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseFeatureDiagram (FeatureDiagram): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseFeatureGroup (FeatureGroup): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseIdentifier (Identifier): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseIntegerAttribute (IntegerAttribute): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseIntegerIntervalRange (IntegerIntervalRange): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseIntervalRange (IntervalRange): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseNamedElement (NamedElement): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseProhibitsConstraint (ProhibitsConstraint): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseRequiredConstraint (RequiredConstraint): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseSimple (Simple): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseStringAttribute (StringAttribute): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
defaultCase (EObject): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
featuremodelAdapterFactory$1 (featuremodelAdapterFactory): void 0%   (0/1)0%   (0/6)0%   (0/2)

1/**
2 * <copyright>
3 * </copyright>
4 *
5 * $Id$
6 */
7package de.uka.ipd.sdq.featuremodel.util;
8 
9import de.uka.ipd.sdq.featuremodel.*;
10import org.eclipse.emf.common.notify.Adapter;
11import org.eclipse.emf.common.notify.Notifier;
12import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
13import org.eclipse.emf.ecore.EObject;
14 
15import de.uka.ipd.sdq.featuremodel.Attribute;
16import de.uka.ipd.sdq.featuremodel.ChildRelation;
17import de.uka.ipd.sdq.featuremodel.Constraint;
18import de.uka.ipd.sdq.featuremodel.ContinousIntervalRange;
19import de.uka.ipd.sdq.featuremodel.DoubleAttribute;
20import de.uka.ipd.sdq.featuremodel.Feature;
21import de.uka.ipd.sdq.featuremodel.FeatureDiagram;
22import de.uka.ipd.sdq.featuremodel.FeatureGroup;
23import de.uka.ipd.sdq.featuremodel.IntegerAttribute;
24import de.uka.ipd.sdq.featuremodel.IntegerIntervalRange;
25import de.uka.ipd.sdq.featuremodel.IntervalRange;
26import de.uka.ipd.sdq.featuremodel.NamedElement;
27import de.uka.ipd.sdq.featuremodel.ProhibitsConstraint;
28import de.uka.ipd.sdq.featuremodel.RequiredConstraint;
29import de.uka.ipd.sdq.featuremodel.Simple;
30import de.uka.ipd.sdq.featuremodel.featuremodelPackage;
31import de.uka.ipd.sdq.identifier.Identifier;
32 
33/**
34 * <!-- begin-user-doc -->
35 * The <b>Adapter Factory</b> for the model.
36 * It provides an adapter <code>createXXX</code> method for each class of the model.
37 * <!-- end-user-doc -->
38 * @see de.uka.ipd.sdq.featuremodel.featuremodelPackage
39 * @generated
40 */
41public class featuremodelAdapterFactory extends AdapterFactoryImpl {
42        /**
43         * The cached model package.
44         * <!-- begin-user-doc -->
45         * <!-- end-user-doc -->
46         * @generated
47         */
48        protected static featuremodelPackage modelPackage;
49 
50        /**
51         * Creates an instance of the adapter factory.
52         * <!-- begin-user-doc -->
53         * <!-- end-user-doc -->
54         * @generated
55         */
56        public featuremodelAdapterFactory() {
57                if (modelPackage == null) {
58                        modelPackage = featuremodelPackage.eINSTANCE;
59                }
60        }
61 
62        /**
63         * Returns whether this factory is applicable for the type of the object.
64         * <!-- begin-user-doc -->
65         * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
66         * <!-- end-user-doc -->
67         * @return whether this factory is applicable for the type of the object.
68         * @generated
69         */
70        @Override
71        public boolean isFactoryForType(Object object) {
72                if (object == modelPackage) {
73                        return true;
74                }
75                if (object instanceof EObject) {
76                        return ((EObject)object).eClass().getEPackage() == modelPackage;
77                }
78                return false;
79        }
80 
81        /**
82         * The switch that delegates to the <code>createXXX</code> methods.
83         * <!-- begin-user-doc -->
84         * <!-- end-user-doc -->
85         * @generated
86         */
87        protected featuremodelSwitch<Adapter> modelSwitch =
88                new featuremodelSwitch<Adapter>() {
89                        @Override
90                        public Adapter caseFeature(Feature object) {
91                                return createFeatureAdapter();
92                        }
93                        @Override
94                        public Adapter caseNamedElement(NamedElement object) {
95                                return createNamedElementAdapter();
96                        }
97                        @Override
98                        public Adapter caseAttribute(Attribute object) {
99                                return createAttributeAdapter();
100                        }
101                        @Override
102                        public Adapter caseIntervalRange(IntervalRange object) {
103                                return createIntervalRangeAdapter();
104                        }
105                        @Override
106                        public Adapter caseChildRelation(ChildRelation object) {
107                                return createChildRelationAdapter();
108                        }
109                        @Override
110                        public Adapter caseSimple(Simple object) {
111                                return createSimpleAdapter();
112                        }
113                        @Override
114                        public Adapter caseFeatureGroup(FeatureGroup object) {
115                                return createFeatureGroupAdapter();
116                        }
117                        @Override
118                        public Adapter caseFeatureDiagram(FeatureDiagram object) {
119                                return createFeatureDiagramAdapter();
120                        }
121                        @Override
122                        public Adapter caseConstraint(Constraint object) {
123                                return createConstraintAdapter();
124                        }
125                        @Override
126                        public Adapter caseRequiredConstraint(RequiredConstraint object) {
127                                return createRequiredConstraintAdapter();
128                        }
129                        @Override
130                        public Adapter caseProhibitsConstraint(ProhibitsConstraint object) {
131                                return createProhibitsConstraintAdapter();
132                        }
133                        @Override
134                        public Adapter caseIntegerIntervalRange(IntegerIntervalRange object) {
135                                return createIntegerIntervalRangeAdapter();
136                        }
137                        @Override
138                        public Adapter caseContinousIntervalRange(ContinousIntervalRange object) {
139                                return createContinousIntervalRangeAdapter();
140                        }
141                        @Override
142                        public Adapter caseIntegerAttribute(IntegerAttribute object) {
143                                return createIntegerAttributeAdapter();
144                        }
145                        @Override
146                        public Adapter caseDoubleAttribute(DoubleAttribute object) {
147                                return createDoubleAttributeAdapter();
148                        }
149                        @Override
150                        public Adapter caseStringAttribute(StringAttribute object) {
151                                return createStringAttributeAdapter();
152                        }
153                        @Override
154                        public Adapter caseExternalObjectAttribute(ExternalObjectAttribute object) {
155                                return createExternalObjectAttributeAdapter();
156                        }
157                        @Override
158                        public Adapter caseIdentifier(Identifier object) {
159                                return createIdentifierAdapter();
160                        }
161                        @Override
162                        public Adapter defaultCase(EObject object) {
163                                return createEObjectAdapter();
164                        }
165                };
166 
167        /**
168         * Creates an adapter for the <code>target</code>.
169         * <!-- begin-user-doc -->
170         * <!-- end-user-doc -->
171         * @param target the object to adapt.
172         * @return the adapter for the <code>target</code>.
173         * @generated
174         */
175        @Override
176        public Adapter createAdapter(Notifier target) {
177                return modelSwitch.doSwitch((EObject)target);
178        }
179 
180 
181        /**
182         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.Feature <em>Feature</em>}'.
183         * <!-- begin-user-doc -->
184         * This default implementation returns null so that we can easily ignore cases;
185         * it's useful to ignore a case when inheritance will catch all the cases anyway.
186         * <!-- end-user-doc -->
187         * @return the new adapter.
188         * @see de.uka.ipd.sdq.featuremodel.Feature
189         * @generated
190         */
191        public Adapter createFeatureAdapter() {
192                return null;
193        }
194 
195        /**
196         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.NamedElement <em>Named Element</em>}'.
197         * <!-- begin-user-doc -->
198         * This default implementation returns null so that we can easily ignore cases;
199         * it's useful to ignore a case when inheritance will catch all the cases anyway.
200         * <!-- end-user-doc -->
201         * @return the new adapter.
202         * @see de.uka.ipd.sdq.featuremodel.NamedElement
203         * @generated
204         */
205        public Adapter createNamedElementAdapter() {
206                return null;
207        }
208 
209        /**
210         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.Attribute <em>Attribute</em>}'.
211         * <!-- begin-user-doc -->
212         * This default implementation returns null so that we can easily ignore cases;
213         * it's useful to ignore a case when inheritance will catch all the cases anyway.
214         * <!-- end-user-doc -->
215         * @return the new adapter.
216         * @see de.uka.ipd.sdq.featuremodel.Attribute
217         * @generated
218         */
219        public Adapter createAttributeAdapter() {
220                return null;
221        }
222 
223        /**
224         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.ChildRelation <em>Child Relation</em>}'.
225         * <!-- begin-user-doc -->
226         * This default implementation returns null so that we can easily ignore cases;
227         * it's useful to ignore a case when inheritance will catch all the cases anyway.
228         * <!-- end-user-doc -->
229         * @return the new adapter.
230         * @see de.uka.ipd.sdq.featuremodel.ChildRelation
231         * @generated
232         */
233        public Adapter createChildRelationAdapter() {
234                return null;
235        }
236 
237        /**
238         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.IntegerAttribute <em>Integer Attribute</em>}'.
239         * <!-- begin-user-doc -->
240         * This default implementation returns null so that we can easily ignore cases;
241         * it's useful to ignore a case when inheritance will catch all the cases anyway.
242         * <!-- end-user-doc -->
243         * @return the new adapter.
244         * @see de.uka.ipd.sdq.featuremodel.IntegerAttribute
245         * @generated
246         */
247        public Adapter createIntegerAttributeAdapter() {
248                return null;
249        }
250 
251        /**
252         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.DoubleAttribute <em>Double Attribute</em>}'.
253         * <!-- begin-user-doc -->
254         * This default implementation returns null so that we can easily ignore cases;
255         * it's useful to ignore a case when inheritance will catch all the cases anyway.
256         * <!-- end-user-doc -->
257         * @return the new adapter.
258         * @see de.uka.ipd.sdq.featuremodel.DoubleAttribute
259         * @generated
260         */
261        public Adapter createDoubleAttributeAdapter() {
262                return null;
263        }
264 
265        /**
266         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.StringAttribute <em>String Attribute</em>}'.
267         * <!-- begin-user-doc -->
268         * This default implementation returns null so that we can easily ignore cases;
269         * it's useful to ignore a case when inheritance will catch all the cases anyway.
270         * <!-- end-user-doc -->
271         * @return the new adapter.
272         * @see de.uka.ipd.sdq.featuremodel.StringAttribute
273         * @generated
274         */
275        public Adapter createStringAttributeAdapter() {
276                return null;
277        }
278 
279        /**
280         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.ExternalObjectAttribute <em>External Object Attribute</em>}'.
281         * <!-- begin-user-doc -->
282         * This default implementation returns null so that we can easily ignore cases;
283         * it's useful to ignore a case when inheritance will catch all the cases anyway.
284         * <!-- end-user-doc -->
285         * @return the new adapter.
286         * @see de.uka.ipd.sdq.featuremodel.ExternalObjectAttribute
287         * @generated
288         */
289        public Adapter createExternalObjectAttributeAdapter() {
290                return null;
291        }
292 
293        /**
294         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.IntervalRange <em>Interval Range</em>}'.
295         * <!-- begin-user-doc -->
296         * This default implementation returns null so that we can easily ignore cases;
297         * it's useful to ignore a case when inheritance will catch all the cases anyway.
298         * <!-- end-user-doc -->
299         * @return the new adapter.
300         * @see de.uka.ipd.sdq.featuremodel.IntervalRange
301         * @generated
302         */
303        public Adapter createIntervalRangeAdapter() {
304                return null;
305        }
306 
307        /**
308         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.IntegerIntervalRange <em>Integer Interval Range</em>}'.
309         * <!-- begin-user-doc -->
310         * This default implementation returns null so that we can easily ignore cases;
311         * it's useful to ignore a case when inheritance will catch all the cases anyway.
312         * <!-- end-user-doc -->
313         * @return the new adapter.
314         * @see de.uka.ipd.sdq.featuremodel.IntegerIntervalRange
315         * @generated
316         */
317        public Adapter createIntegerIntervalRangeAdapter() {
318                return null;
319        }
320 
321        /**
322         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.ContinousIntervalRange <em>Continous Interval Range</em>}'.
323         * <!-- begin-user-doc -->
324         * This default implementation returns null so that we can easily ignore cases;
325         * it's useful to ignore a case when inheritance will catch all the cases anyway.
326         * <!-- end-user-doc -->
327         * @return the new adapter.
328         * @see de.uka.ipd.sdq.featuremodel.ContinousIntervalRange
329         * @generated
330         */
331        public Adapter createContinousIntervalRangeAdapter() {
332                return null;
333        }
334 
335        /**
336         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.FeatureGroup <em>Feature Group</em>}'.
337         * <!-- begin-user-doc -->
338         * This default implementation returns null so that we can easily ignore cases;
339         * it's useful to ignore a case when inheritance will catch all the cases anyway.
340         * <!-- end-user-doc -->
341         * @return the new adapter.
342         * @see de.uka.ipd.sdq.featuremodel.FeatureGroup
343         * @generated
344         */
345        public Adapter createFeatureGroupAdapter() {
346                return null;
347        }
348 
349        /**
350         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.FeatureDiagram <em>Feature Diagram</em>}'.
351         * <!-- begin-user-doc -->
352         * This default implementation returns null so that we can easily ignore cases;
353         * it's useful to ignore a case when inheritance will catch all the cases anyway.
354         * <!-- end-user-doc -->
355         * @return the new adapter.
356         * @see de.uka.ipd.sdq.featuremodel.FeatureDiagram
357         * @generated
358         */
359        public Adapter createFeatureDiagramAdapter() {
360                return null;
361        }
362 
363        /**
364         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.Constraint <em>Constraint</em>}'.
365         * <!-- begin-user-doc -->
366         * This default implementation returns null so that we can easily ignore cases;
367         * it's useful to ignore a case when inheritance will catch all the cases anyway.
368         * <!-- end-user-doc -->
369         * @return the new adapter.
370         * @see de.uka.ipd.sdq.featuremodel.Constraint
371         * @generated
372         */
373        public Adapter createConstraintAdapter() {
374                return null;
375        }
376 
377        /**
378         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.RequiredConstraint <em>Required Constraint</em>}'.
379         * <!-- begin-user-doc -->
380         * This default implementation returns null so that we can easily ignore cases;
381         * it's useful to ignore a case when inheritance will catch all the cases anyway.
382         * <!-- end-user-doc -->
383         * @return the new adapter.
384         * @see de.uka.ipd.sdq.featuremodel.RequiredConstraint
385         * @generated
386         */
387        public Adapter createRequiredConstraintAdapter() {
388                return null;
389        }
390 
391        /**
392         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.ProhibitsConstraint <em>Prohibits Constraint</em>}'.
393         * <!-- begin-user-doc -->
394         * This default implementation returns null so that we can easily ignore cases;
395         * it's useful to ignore a case when inheritance will catch all the cases anyway.
396         * <!-- end-user-doc -->
397         * @return the new adapter.
398         * @see de.uka.ipd.sdq.featuremodel.ProhibitsConstraint
399         * @generated
400         */
401        public Adapter createProhibitsConstraintAdapter() {
402                return null;
403        }
404 
405        /**
406         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.Simple <em>Simple</em>}'.
407         * <!-- begin-user-doc -->
408         * This default implementation returns null so that we can easily ignore cases;
409         * it's useful to ignore a case when inheritance will catch all the cases anyway.
410         * <!-- end-user-doc -->
411         * @return the new adapter.
412         * @see de.uka.ipd.sdq.featuremodel.Simple
413         * @generated
414         */
415        public Adapter createSimpleAdapter() {
416                return null;
417        }
418 
419        /**
420         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'.
421         * <!-- begin-user-doc -->
422         * This default implementation returns null so that we can easily ignore cases;
423         * it's useful to ignore a case when inheritance will catch all the cases anyway.
424         * <!-- end-user-doc -->
425         * @return the new adapter.
426         * @see de.uka.ipd.sdq.identifier.Identifier
427         * @generated
428         */
429        public Adapter createIdentifierAdapter() {
430                return null;
431        }
432 
433        /**
434         * Creates a new adapter for the default case.
435         * <!-- begin-user-doc -->
436         * This default implementation returns null.
437         * <!-- end-user-doc -->
438         * @return the new adapter.
439         * @generated
440         */
441        public Adapter createEObjectAdapter() {
442                return null;
443        }
444 
445} //featuremodelAdapterFactory

[all classes][de.uka.ipd.sdq.featuremodel.util]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov