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

COVERAGE SUMMARY FOR SOURCE FILE [QMLDeclarationsAdapterFactory.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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