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

COVERAGE SUMMARY FOR SOURCE FILE [AllocationAdapterFactory.java]

nameclass, %method, %block, %line, %
AllocationAdapterFactory.java0%   (0/2)0%   (0/16)0%   (0/82)0%   (0/25)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AllocationAdapterFactory0%   (0/1)0%   (0/9)0%   (0/52)0%   (0/18)
AllocationAdapterFactory (): void 0%   (0/1)0%   (0/13)0%   (0/6)
createAdapter (Notifier): Adapter 0%   (0/1)0%   (0/7)0%   (0/1)
createAllocationAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createAllocationContextAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createEObjectAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createEntityAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createIdentifierAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createNamedElementAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
isFactoryForType (Object): boolean 0%   (0/1)0%   (0/20)0%   (0/5)
     
class AllocationAdapterFactory$10%   (0/1)0%   (0/7)0%   (0/30)0%   (0/8)
AllocationAdapterFactory$1 (AllocationAdapterFactory): void 0%   (0/1)0%   (0/6)0%   (0/2)
caseAllocation (Allocation): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseAllocationContext (AllocationContext): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseEntity (Entity): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseIdentifier (Identifier): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseNamedElement (NamedElement): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
defaultCase (EObject): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.allocation.util;
7 
8import org.eclipse.emf.common.notify.Adapter;
9import org.eclipse.emf.common.notify.Notifier;
10import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
11import org.eclipse.emf.ecore.EObject;
12 
13import de.uka.ipd.sdq.identifier.Identifier;
14import de.uka.ipd.sdq.pcm.allocation.*;
15import de.uka.ipd.sdq.pcm.allocation.Allocation;
16import de.uka.ipd.sdq.pcm.allocation.AllocationContext;
17import de.uka.ipd.sdq.pcm.allocation.AllocationPackage;
18import de.uka.ipd.sdq.pcm.core.entity.Entity;
19import de.uka.ipd.sdq.pcm.core.entity.NamedElement;
20 
21/**
22 * <!-- begin-user-doc -->
23 * The <b>Adapter Factory</b> for the model.
24 * It provides an adapter <code>createXXX</code> method for each class of the model.
25 * <!-- end-user-doc -->
26 * @see de.uka.ipd.sdq.pcm.allocation.AllocationPackage
27 * @generated
28 */
29public class AllocationAdapterFactory extends AdapterFactoryImpl {
30        /**
31         * <!-- begin-user-doc -->
32         * <!-- end-user-doc -->
33         * @generated
34         */
35        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
36 
37        /**
38         * The cached model package.
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @generated
42         */
43        protected static AllocationPackage modelPackage;
44 
45        /**
46         * Creates an instance of the adapter factory.
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @generated
50         */
51        public AllocationAdapterFactory() {
52                if (modelPackage == null) {
53                        modelPackage = AllocationPackage.eINSTANCE;
54                }
55        }
56 
57        /**
58         * Returns whether this factory is applicable for the type of the object.
59         * <!-- begin-user-doc -->
60         * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
61         * <!-- end-user-doc -->
62         * @return whether this factory is applicable for the type of the object.
63         * @generated
64         */
65        @Override
66        public boolean isFactoryForType(Object object) {
67                if (object == modelPackage) {
68                        return true;
69                }
70                if (object instanceof EObject) {
71                        return ((EObject)object).eClass().getEPackage() == modelPackage;
72                }
73                return false;
74        }
75 
76        /**
77         * The switch that delegates to the <code>createXXX</code> methods.
78         * <!-- begin-user-doc -->
79         * <!-- end-user-doc -->
80         * @generated
81         */
82        protected AllocationSwitch<Adapter> modelSwitch =
83                new AllocationSwitch<Adapter>() {
84                        @Override
85                        public Adapter caseAllocationContext(AllocationContext object) {
86                                return createAllocationContextAdapter();
87                        }
88                        @Override
89                        public Adapter caseAllocation(Allocation object) {
90                                return createAllocationAdapter();
91                        }
92                        @Override
93                        public Adapter caseIdentifier(Identifier object) {
94                                return createIdentifierAdapter();
95                        }
96                        @Override
97                        public Adapter caseNamedElement(NamedElement object) {
98                                return createNamedElementAdapter();
99                        }
100                        @Override
101                        public Adapter caseEntity(Entity object) {
102                                return createEntityAdapter();
103                        }
104                        @Override
105                        public Adapter defaultCase(EObject object) {
106                                return createEObjectAdapter();
107                        }
108                };
109 
110        /**
111         * Creates an adapter for the <code>target</code>.
112         * <!-- begin-user-doc -->
113         * <!-- end-user-doc -->
114         * @param target the object to adapt.
115         * @return the adapter for the <code>target</code>.
116         * @generated
117         */
118        @Override
119        public Adapter createAdapter(Notifier target) {
120                return modelSwitch.doSwitch((EObject)target);
121        }
122 
123 
124        /**
125         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.allocation.AllocationContext <em>Context</em>}'.
126         * <!-- begin-user-doc -->
127         * This default implementation returns null so that we can easily ignore cases;
128         * it's useful to ignore a case when inheritance will catch all the cases anyway.
129         * <!-- end-user-doc -->
130         * @return the new adapter.
131         * @see de.uka.ipd.sdq.pcm.allocation.AllocationContext
132         * @generated
133         */
134        public Adapter createAllocationContextAdapter() {
135                return null;
136        }
137 
138        /**
139         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.allocation.Allocation <em>Allocation</em>}'.
140         * <!-- begin-user-doc -->
141         * This default implementation returns null so that we can easily ignore cases;
142         * it's useful to ignore a case when inheritance will catch all the cases anyway.
143         * <!-- end-user-doc -->
144         * @return the new adapter.
145         * @see de.uka.ipd.sdq.pcm.allocation.Allocation
146         * @generated
147         */
148        public Adapter createAllocationAdapter() {
149                return null;
150        }
151 
152        /**
153         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'.
154         * <!-- begin-user-doc -->
155         * This default implementation returns null so that we can easily ignore cases;
156         * it's useful to ignore a case when inheritance will catch all the cases anyway.
157         * <!-- end-user-doc -->
158         * @return the new adapter.
159         * @see de.uka.ipd.sdq.identifier.Identifier
160         * @generated
161         */
162        public Adapter createIdentifierAdapter() {
163                return null;
164        }
165 
166        /**
167         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</em>}'.
168         * <!-- begin-user-doc -->
169         * This default implementation returns null so that we can easily ignore cases;
170         * it's useful to ignore a case when inheritance will catch all the cases anyway.
171         * <!-- end-user-doc -->
172         * @return the new adapter.
173         * @see de.uka.ipd.sdq.pcm.core.entity.NamedElement
174         * @generated
175         */
176        public Adapter createNamedElementAdapter() {
177                return null;
178        }
179 
180        /**
181         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.Entity <em>Entity</em>}'.
182         * <!-- begin-user-doc -->
183         * This default implementation returns null so that we can easily ignore cases;
184         * it's useful to ignore a case when inheritance will catch all the cases anyway.
185         * <!-- end-user-doc -->
186         * @return the new adapter.
187         * @see de.uka.ipd.sdq.pcm.core.entity.Entity
188         * @generated
189         */
190        public Adapter createEntityAdapter() {
191                return null;
192        }
193 
194        /**
195         * Creates a new adapter for the default case.
196         * <!-- begin-user-doc -->
197         * This default implementation returns null.
198         * <!-- end-user-doc -->
199         * @return the new adapter.
200         * @generated
201         */
202        public Adapter createEObjectAdapter() {
203                return null;
204        }
205 
206} //AllocationAdapterFactory

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