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

COVERAGE SUMMARY FOR SOURCE FILE [EntityAdapterFactory.java]

nameclass, %method, %block, %line, %
EntityAdapterFactory.java0%   (0/2)0%   (0/34)0%   (0/136)0%   (0/43)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class EntityAdapterFactory0%   (0/1)0%   (0/18)0%   (0/70)0%   (0/27)
EntityAdapterFactory (): void 0%   (0/1)0%   (0/13)0%   (0/6)
createAdapter (Notifier): Adapter 0%   (0/1)0%   (0/7)0%   (0/1)
createComposedProvidingRequiringEntityAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createComposedStructureAdapter (): 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)
createInterfaceProvidingEntityAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createInterfaceProvidingRequiringEntityAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createInterfaceRequiringEntityAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createNamedElementAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createResourceInterfaceProvidingEntityAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createResourceInterfaceProvidingRequiringEntityAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createResourceInterfaceRequiringEntityAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createResourceProvidedRoleAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createResourceRequiredRoleAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createRoleAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
isFactoryForType (Object): boolean 0%   (0/1)0%   (0/20)0%   (0/5)
     
class EntityAdapterFactory$10%   (0/1)0%   (0/16)0%   (0/66)0%   (0/17)
EntityAdapterFactory$1 (EntityAdapterFactory): void 0%   (0/1)0%   (0/6)0%   (0/2)
caseComposedProvidingRequiringEntity (ComposedProvidingRequiringEntity): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseComposedStructure (ComposedStructure): 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)
caseInterfaceProvidingEntity (InterfaceProvidingEntity): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseInterfaceProvidingRequiringEntity (InterfaceProvidingRequiringEntity): Ad... 0%   (0/1)0%   (0/4)0%   (0/1)
caseInterfaceRequiringEntity (InterfaceRequiringEntity): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseNamedElement (NamedElement): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseResourceInterfaceProvidingEntity (ResourceInterfaceProvidingEntity): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseResourceInterfaceProvidingRequiringEntity (ResourceInterfaceProvidingRequ... 0%   (0/1)0%   (0/4)0%   (0/1)
caseResourceInterfaceRequiringEntity (ResourceInterfaceRequiringEntity): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseResourceProvidedRole (ResourceProvidedRole): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseResourceRequiredRole (ResourceRequiredRole): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseRole (Role): 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.core.entity.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.core.composition.ComposedStructure;
15import de.uka.ipd.sdq.pcm.core.entity.*;
16import de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity;
17import de.uka.ipd.sdq.pcm.core.entity.Entity;
18import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
19import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity;
20import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity;
21import de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity;
22import de.uka.ipd.sdq.pcm.core.entity.NamedElement;
23import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceProvidingEntity;
24import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceProvidingRequiringEntity;
25import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity;
26import de.uka.ipd.sdq.pcm.core.entity.ResourceProvidedRole;
27import de.uka.ipd.sdq.pcm.core.entity.ResourceRequiredRole;
28import de.uka.ipd.sdq.pcm.repository.Role;
29 
30/**
31 * <!-- begin-user-doc -->
32 * The <b>Adapter Factory</b> for the model.
33 * It provides an adapter <code>createXXX</code> method for each class of the model.
34 * <!-- end-user-doc -->
35 * @see de.uka.ipd.sdq.pcm.core.entity.EntityPackage
36 * @generated
37 */
38public class EntityAdapterFactory extends AdapterFactoryImpl {
39        /**
40         * <!-- begin-user-doc -->
41         * <!-- end-user-doc -->
42         * @generated
43         */
44        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
45 
46        /**
47         * The cached model package.
48         * <!-- begin-user-doc -->
49         * <!-- end-user-doc -->
50         * @generated
51         */
52        protected static EntityPackage modelPackage;
53 
54        /**
55         * Creates an instance of the adapter factory.
56         * <!-- begin-user-doc -->
57         * <!-- end-user-doc -->
58         * @generated
59         */
60        public EntityAdapterFactory() {
61                if (modelPackage == null) {
62                        modelPackage = EntityPackage.eINSTANCE;
63                }
64        }
65 
66        /**
67         * Returns whether this factory is applicable for the type of the object.
68         * <!-- begin-user-doc -->
69         * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
70         * <!-- end-user-doc -->
71         * @return whether this factory is applicable for the type of the object.
72         * @generated
73         */
74        @Override
75        public boolean isFactoryForType(Object object) {
76                if (object == modelPackage) {
77                        return true;
78                }
79                if (object instanceof EObject) {
80                        return ((EObject)object).eClass().getEPackage() == modelPackage;
81                }
82                return false;
83        }
84 
85        /**
86         * The switch that delegates to the <code>createXXX</code> methods.
87         * <!-- begin-user-doc -->
88         * <!-- end-user-doc -->
89         * @generated
90         */
91        protected EntitySwitch<Adapter> modelSwitch =
92                new EntitySwitch<Adapter>() {
93                        @Override
94                        public Adapter caseResourceProvidedRole(ResourceProvidedRole object) {
95                                return createResourceProvidedRoleAdapter();
96                        }
97                        @Override
98                        public Adapter caseInterfaceProvidingRequiringEntity(InterfaceProvidingRequiringEntity object) {
99                                return createInterfaceProvidingRequiringEntityAdapter();
100                        }
101                        @Override
102                        public Adapter caseInterfaceProvidingEntity(InterfaceProvidingEntity object) {
103                                return createInterfaceProvidingEntityAdapter();
104                        }
105                        @Override
106                        public Adapter caseInterfaceRequiringEntity(InterfaceRequiringEntity object) {
107                                return createInterfaceRequiringEntityAdapter();
108                        }
109                        @Override
110                        public Adapter caseResourceInterfaceRequiringEntity(ResourceInterfaceRequiringEntity object) {
111                                return createResourceInterfaceRequiringEntityAdapter();
112                        }
113                        @Override
114                        public Adapter caseResourceRequiredRole(ResourceRequiredRole object) {
115                                return createResourceRequiredRoleAdapter();
116                        }
117                        @Override
118                        public Adapter caseResourceInterfaceProvidingEntity(ResourceInterfaceProvidingEntity object) {
119                                return createResourceInterfaceProvidingEntityAdapter();
120                        }
121                        @Override
122                        public Adapter caseComposedProvidingRequiringEntity(ComposedProvidingRequiringEntity object) {
123                                return createComposedProvidingRequiringEntityAdapter();
124                        }
125                        @Override
126                        public Adapter caseNamedElement(NamedElement object) {
127                                return createNamedElementAdapter();
128                        }
129                        @Override
130                        public Adapter caseResourceInterfaceProvidingRequiringEntity(ResourceInterfaceProvidingRequiringEntity object) {
131                                return createResourceInterfaceProvidingRequiringEntityAdapter();
132                        }
133                        @Override
134                        public Adapter caseEntity(Entity object) {
135                                return createEntityAdapter();
136                        }
137                        @Override
138                        public Adapter caseIdentifier(Identifier object) {
139                                return createIdentifierAdapter();
140                        }
141                        @Override
142                        public Adapter caseRole(Role object) {
143                                return createRoleAdapter();
144                        }
145                        @Override
146                        public Adapter caseComposedStructure(ComposedStructure object) {
147                                return createComposedStructureAdapter();
148                        }
149                        @Override
150                        public Adapter defaultCase(EObject object) {
151                                return createEObjectAdapter();
152                        }
153                };
154 
155        /**
156         * Creates an adapter for the <code>target</code>.
157         * <!-- begin-user-doc -->
158         * <!-- end-user-doc -->
159         * @param target the object to adapt.
160         * @return the adapter for the <code>target</code>.
161         * @generated
162         */
163        @Override
164        public Adapter createAdapter(Notifier target) {
165                return modelSwitch.doSwitch((EObject)target);
166        }
167 
168 
169        /**
170         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ResourceProvidedRole <em>Resource Provided Role</em>}'.
171         * <!-- begin-user-doc -->
172         * This default implementation returns null so that we can easily ignore cases;
173         * it's useful to ignore a case when inheritance will catch all the cases anyway.
174         * <!-- end-user-doc -->
175         * @return the new adapter.
176         * @see de.uka.ipd.sdq.pcm.core.entity.ResourceProvidedRole
177         * @generated
178         */
179        public Adapter createResourceProvidedRoleAdapter() {
180                return null;
181        }
182 
183        /**
184         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</em>}'.
185         * <!-- begin-user-doc -->
186         * This default implementation returns null so that we can easily ignore cases;
187         * it's useful to ignore a case when inheritance will catch all the cases anyway.
188         * <!-- end-user-doc -->
189         * @return the new adapter.
190         * @see de.uka.ipd.sdq.pcm.core.entity.NamedElement
191         * @generated
192         */
193        public Adapter createNamedElementAdapter() {
194                return null;
195        }
196 
197        /**
198         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceProvidingRequiringEntity <em>Resource Interface Providing Requiring Entity</em>}'.
199         * <!-- begin-user-doc -->
200         * This default implementation returns null so that we can easily ignore cases;
201         * it's useful to ignore a case when inheritance will catch all the cases anyway.
202         * <!-- end-user-doc -->
203         * @return the new adapter.
204         * @see de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceProvidingRequiringEntity
205         * @generated
206         */
207        public Adapter createResourceInterfaceProvidingRequiringEntityAdapter() {
208                return null;
209        }
210 
211        /**
212         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity <em>Interface Providing Entity</em>}'.
213         * <!-- begin-user-doc -->
214         * This default implementation returns null so that we can easily ignore cases;
215         * it's useful to ignore a case when inheritance will catch all the cases anyway.
216         * <!-- end-user-doc -->
217         * @return the new adapter.
218         * @see de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity
219         * @generated
220         */
221        public Adapter createInterfaceProvidingEntityAdapter() {
222                return null;
223        }
224 
225        /**
226         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity <em>Interface Providing Requiring Entity</em>}'.
227         * <!-- begin-user-doc -->
228         * This default implementation returns null so that we can easily ignore cases;
229         * it's useful to ignore a case when inheritance will catch all the cases anyway.
230         * <!-- end-user-doc -->
231         * @return the new adapter.
232         * @see de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity
233         * @generated
234         */
235        public Adapter createInterfaceProvidingRequiringEntityAdapter() {
236                return null;
237        }
238 
239        /**
240         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity <em>Interface Requiring Entity</em>}'.
241         * <!-- begin-user-doc -->
242         * This default implementation returns null so that we can easily ignore cases;
243         * it's useful to ignore a case when inheritance will catch all the cases anyway.
244         * <!-- end-user-doc -->
245         * @return the new adapter.
246         * @see de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity
247         * @generated
248         */
249        public Adapter createInterfaceRequiringEntityAdapter() {
250                return null;
251        }
252 
253        /**
254         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity <em>Resource Interface Requiring Entity</em>}'.
255         * <!-- begin-user-doc -->
256         * This default implementation returns null so that we can easily ignore cases;
257         * it's useful to ignore a case when inheritance will catch all the cases anyway.
258         * <!-- end-user-doc -->
259         * @return the new adapter.
260         * @see de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity
261         * @generated
262         */
263        public Adapter createResourceInterfaceRequiringEntityAdapter() {
264                return null;
265        }
266 
267        /**
268         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ResourceRequiredRole <em>Resource Required Role</em>}'.
269         * <!-- begin-user-doc -->
270         * This default implementation returns null so that we can easily ignore cases;
271         * it's useful to ignore a case when inheritance will catch all the cases anyway.
272         * <!-- end-user-doc -->
273         * @return the new adapter.
274         * @see de.uka.ipd.sdq.pcm.core.entity.ResourceRequiredRole
275         * @generated
276         */
277        public Adapter createResourceRequiredRoleAdapter() {
278                return null;
279        }
280 
281        /**
282         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity <em>Composed Providing Requiring Entity</em>}'.
283         * <!-- begin-user-doc -->
284         * This default implementation returns null so that we can easily ignore cases;
285         * it's useful to ignore a case when inheritance will catch all the cases anyway.
286         * <!-- end-user-doc -->
287         * @return the new adapter.
288         * @see de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity
289         * @generated
290         */
291        public Adapter createComposedProvidingRequiringEntityAdapter() {
292                return null;
293        }
294 
295        /**
296         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceProvidingEntity <em>Resource Interface Providing Entity</em>}'.
297         * <!-- begin-user-doc -->
298         * This default implementation returns null so that we can easily ignore cases;
299         * it's useful to ignore a case when inheritance will catch all the cases anyway.
300         * <!-- end-user-doc -->
301         * @return the new adapter.
302         * @see de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceProvidingEntity
303         * @generated
304         */
305        public Adapter createResourceInterfaceProvidingEntityAdapter() {
306                return null;
307        }
308 
309        /**
310         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.Entity <em>Entity</em>}'.
311         * <!-- begin-user-doc -->
312         * This default implementation returns null so that we can easily ignore cases;
313         * it's useful to ignore a case when inheritance will catch all the cases anyway.
314         * <!-- end-user-doc -->
315         * @return the new adapter.
316         * @see de.uka.ipd.sdq.pcm.core.entity.Entity
317         * @generated
318         */
319        public Adapter createEntityAdapter() {
320                return null;
321        }
322 
323        /**
324         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'.
325         * <!-- begin-user-doc -->
326         * This default implementation returns null so that we can easily ignore cases;
327         * it's useful to ignore a case when inheritance will catch all the cases anyway.
328         * <!-- end-user-doc -->
329         * @return the new adapter.
330         * @see de.uka.ipd.sdq.identifier.Identifier
331         * @generated
332         */
333        public Adapter createIdentifierAdapter() {
334                return null;
335        }
336 
337        /**
338         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.repository.Role <em>Role</em>}'.
339         * <!-- begin-user-doc -->
340         * This default implementation returns null so that we can easily ignore cases;
341         * it's useful to ignore a case when inheritance will catch all the cases anyway.
342         * <!-- end-user-doc -->
343         * @return the new adapter.
344         * @see de.uka.ipd.sdq.pcm.repository.Role
345         * @generated
346         */
347        public Adapter createRoleAdapter() {
348                return null;
349        }
350 
351        /**
352         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.ComposedStructure <em>Composed Structure</em>}'.
353         * <!-- begin-user-doc -->
354         * This default implementation returns null so that we can easily ignore cases;
355         * it's useful to ignore a case when inheritance will catch all the cases anyway.
356         * <!-- end-user-doc -->
357         * @return the new adapter.
358         * @see de.uka.ipd.sdq.pcm.core.composition.ComposedStructure
359         * @generated
360         */
361        public Adapter createComposedStructureAdapter() {
362                return null;
363        }
364 
365        /**
366         * Creates a new adapter for the default case.
367         * <!-- begin-user-doc -->
368         * This default implementation returns null.
369         * <!-- end-user-doc -->
370         * @return the new adapter.
371         * @generated
372         */
373        public Adapter createEObjectAdapter() {
374                return null;
375        }
376 
377} //EntityAdapterFactory

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