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

COVERAGE SUMMARY FOR SOURCE FILE [ReliabilityAdapterFactory.java]

nameclass, %method, %block, %line, %
ReliabilityAdapterFactory.java0%   (0/2)0%   (0/28)0%   (0/118)0%   (0/37)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ReliabilityAdapterFactory0%   (0/1)0%   (0/15)0%   (0/64)0%   (0/24)
ReliabilityAdapterFactory (): 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)
createExternalFailureOccurrenceDescriptionAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createFailureOccurrenceDescriptionAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createFailureTypeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createHardwareInducedFailureTypeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createIdentifierAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createInternalFailureOccurrenceDescriptionAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createNamedElementAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createNetworkInducedFailureTypeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createResourceTimeoutFailureTypeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createSoftwareInducedFailureTypeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
isFactoryForType (Object): boolean 0%   (0/1)0%   (0/20)0%   (0/5)
     
class ReliabilityAdapterFactory$10%   (0/1)0%   (0/13)0%   (0/54)0%   (0/14)
ReliabilityAdapterFactory$1 (ReliabilityAdapterFactory): void 0%   (0/1)0%   (0/6)0%   (0/2)
caseEntity (Entity): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseExternalFailureOccurrenceDescription (ExternalFailureOccurrenceDescriptio... 0%   (0/1)0%   (0/4)0%   (0/1)
caseFailureOccurrenceDescription (FailureOccurrenceDescription): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseFailureType (FailureType): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseHardwareInducedFailureType (HardwareInducedFailureType): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseIdentifier (Identifier): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseInternalFailureOccurrenceDescription (InternalFailureOccurrenceDescriptio... 0%   (0/1)0%   (0/4)0%   (0/1)
caseNamedElement (NamedElement): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseNetworkInducedFailureType (NetworkInducedFailureType): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseResourceTimeoutFailureType (ResourceTimeoutFailureType): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseSoftwareInducedFailureType (SoftwareInducedFailureType): 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.reliability.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.entity.Entity;
15import de.uka.ipd.sdq.pcm.core.entity.NamedElement;
16import de.uka.ipd.sdq.pcm.reliability.*;
17import de.uka.ipd.sdq.pcm.reliability.ExternalFailureOccurrenceDescription;
18import de.uka.ipd.sdq.pcm.reliability.FailureOccurrenceDescription;
19import de.uka.ipd.sdq.pcm.reliability.FailureType;
20import de.uka.ipd.sdq.pcm.reliability.HardwareInducedFailureType;
21import de.uka.ipd.sdq.pcm.reliability.InternalFailureOccurrenceDescription;
22import de.uka.ipd.sdq.pcm.reliability.NetworkInducedFailureType;
23import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage;
24import de.uka.ipd.sdq.pcm.reliability.ResourceTimeoutFailureType;
25import de.uka.ipd.sdq.pcm.reliability.SoftwareInducedFailureType;
26 
27/**
28 * <!-- begin-user-doc -->
29 * The <b>Adapter Factory</b> for the model.
30 * It provides an adapter <code>createXXX</code> method for each class of the model.
31 * <!-- end-user-doc -->
32 * @see de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage
33 * @generated
34 */
35public class ReliabilityAdapterFactory extends AdapterFactoryImpl {
36        /**
37         * <!-- begin-user-doc -->
38         * <!-- end-user-doc -->
39         * @generated
40         */
41        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
42 
43        /**
44         * The cached model package.
45         * <!-- begin-user-doc -->
46         * <!-- end-user-doc -->
47         * @generated
48         */
49        protected static ReliabilityPackage modelPackage;
50 
51        /**
52         * Creates an instance of the adapter factory.
53         * <!-- begin-user-doc -->
54         * <!-- end-user-doc -->
55         * @generated
56         */
57        public ReliabilityAdapterFactory() {
58                if (modelPackage == null) {
59                        modelPackage = ReliabilityPackage.eINSTANCE;
60                }
61        }
62 
63        /**
64         * Returns whether this factory is applicable for the type of the object.
65         * <!-- begin-user-doc -->
66         * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
67         * <!-- end-user-doc -->
68         * @return whether this factory is applicable for the type of the object.
69         * @generated
70         */
71        @Override
72        public boolean isFactoryForType(Object object) {
73                if (object == modelPackage) {
74                        return true;
75                }
76                if (object instanceof EObject) {
77                        return ((EObject)object).eClass().getEPackage() == modelPackage;
78                }
79                return false;
80        }
81 
82        /**
83         * The switch that delegates to the <code>createXXX</code> methods.
84         * <!-- begin-user-doc -->
85         * <!-- end-user-doc -->
86         * @generated
87         */
88        protected ReliabilitySwitch<Adapter> modelSwitch =
89                new ReliabilitySwitch<Adapter>() {
90                        @Override
91                        public Adapter caseFailureOccurrenceDescription(FailureOccurrenceDescription object) {
92                                return createFailureOccurrenceDescriptionAdapter();
93                        }
94                        @Override
95                        public Adapter caseHardwareInducedFailureType(HardwareInducedFailureType object) {
96                                return createHardwareInducedFailureTypeAdapter();
97                        }
98                        @Override
99                        public Adapter caseSoftwareInducedFailureType(SoftwareInducedFailureType object) {
100                                return createSoftwareInducedFailureTypeAdapter();
101                        }
102                        @Override
103                        public Adapter caseInternalFailureOccurrenceDescription(InternalFailureOccurrenceDescription object) {
104                                return createInternalFailureOccurrenceDescriptionAdapter();
105                        }
106                        @Override
107                        public Adapter caseNetworkInducedFailureType(NetworkInducedFailureType object) {
108                                return createNetworkInducedFailureTypeAdapter();
109                        }
110                        @Override
111                        public Adapter caseExternalFailureOccurrenceDescription(ExternalFailureOccurrenceDescription object) {
112                                return createExternalFailureOccurrenceDescriptionAdapter();
113                        }
114                        @Override
115                        public Adapter caseResourceTimeoutFailureType(ResourceTimeoutFailureType object) {
116                                return createResourceTimeoutFailureTypeAdapter();
117                        }
118                        @Override
119                        public Adapter caseFailureType(FailureType object) {
120                                return createFailureTypeAdapter();
121                        }
122                        @Override
123                        public Adapter caseIdentifier(Identifier object) {
124                                return createIdentifierAdapter();
125                        }
126                        @Override
127                        public Adapter caseNamedElement(NamedElement object) {
128                                return createNamedElementAdapter();
129                        }
130                        @Override
131                        public Adapter caseEntity(Entity object) {
132                                return createEntityAdapter();
133                        }
134                        @Override
135                        public Adapter defaultCase(EObject object) {
136                                return createEObjectAdapter();
137                        }
138                };
139 
140        /**
141         * Creates an adapter for the <code>target</code>.
142         * <!-- begin-user-doc -->
143         * <!-- end-user-doc -->
144         * @param target the object to adapt.
145         * @return the adapter for the <code>target</code>.
146         * @generated
147         */
148        @Override
149        public Adapter createAdapter(Notifier target) {
150                return modelSwitch.doSwitch((EObject)target);
151        }
152 
153 
154        /**
155         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.reliability.FailureOccurrenceDescription <em>Failure Occurrence Description</em>}'.
156         * <!-- begin-user-doc -->
157         * This default implementation returns null so that we can easily ignore cases;
158         * it's useful to ignore a case when inheritance will catch all the cases anyway.
159         * <!-- end-user-doc -->
160         * @return the new adapter.
161         * @see de.uka.ipd.sdq.pcm.reliability.FailureOccurrenceDescription
162         * @generated
163         */
164        public Adapter createFailureOccurrenceDescriptionAdapter() {
165                return null;
166        }
167 
168        /**
169         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.reliability.HardwareInducedFailureType <em>Hardware Induced Failure Type</em>}'.
170         * <!-- begin-user-doc -->
171         * This default implementation returns null so that we can easily ignore cases;
172         * it's useful to ignore a case when inheritance will catch all the cases anyway.
173         * <!-- end-user-doc -->
174         * @return the new adapter.
175         * @see de.uka.ipd.sdq.pcm.reliability.HardwareInducedFailureType
176         * @generated
177         */
178        public Adapter createHardwareInducedFailureTypeAdapter() {
179                return null;
180        }
181 
182        /**
183         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.reliability.ExternalFailureOccurrenceDescription <em>External Failure Occurrence Description</em>}'.
184         * <!-- begin-user-doc -->
185         * This default implementation returns null so that we can easily ignore cases;
186         * it's useful to ignore a case when inheritance will catch all the cases anyway.
187         * <!-- end-user-doc -->
188         * @return the new adapter.
189         * @see de.uka.ipd.sdq.pcm.reliability.ExternalFailureOccurrenceDescription
190         * @generated
191         */
192        public Adapter createExternalFailureOccurrenceDescriptionAdapter() {
193                return null;
194        }
195 
196        /**
197         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.reliability.ResourceTimeoutFailureType <em>Resource Timeout Failure Type</em>}'.
198         * <!-- begin-user-doc -->
199         * This default implementation returns null so that we can easily ignore cases;
200         * it's useful to ignore a case when inheritance will catch all the cases anyway.
201         * <!-- end-user-doc -->
202         * @return the new adapter.
203         * @see de.uka.ipd.sdq.pcm.reliability.ResourceTimeoutFailureType
204         * @generated
205         */
206        public Adapter createResourceTimeoutFailureTypeAdapter() {
207                return null;
208        }
209 
210        /**
211         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.reliability.NetworkInducedFailureType <em>Network Induced Failure Type</em>}'.
212         * <!-- begin-user-doc -->
213         * This default implementation returns null so that we can easily ignore cases;
214         * it's useful to ignore a case when inheritance will catch all the cases anyway.
215         * <!-- end-user-doc -->
216         * @return the new adapter.
217         * @see de.uka.ipd.sdq.pcm.reliability.NetworkInducedFailureType
218         * @generated
219         */
220        public Adapter createNetworkInducedFailureTypeAdapter() {
221                return null;
222        }
223 
224        /**
225         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.reliability.InternalFailureOccurrenceDescription <em>Internal Failure Occurrence Description</em>}'.
226         * <!-- begin-user-doc -->
227         * This default implementation returns null so that we can easily ignore cases;
228         * it's useful to ignore a case when inheritance will catch all the cases anyway.
229         * <!-- end-user-doc -->
230         * @return the new adapter.
231         * @see de.uka.ipd.sdq.pcm.reliability.InternalFailureOccurrenceDescription
232         * @generated
233         */
234        public Adapter createInternalFailureOccurrenceDescriptionAdapter() {
235                return null;
236        }
237 
238        /**
239         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.reliability.SoftwareInducedFailureType <em>Software Induced Failure Type</em>}'.
240         * <!-- begin-user-doc -->
241         * This default implementation returns null so that we can easily ignore cases;
242         * it's useful to ignore a case when inheritance will catch all the cases anyway.
243         * <!-- end-user-doc -->
244         * @return the new adapter.
245         * @see de.uka.ipd.sdq.pcm.reliability.SoftwareInducedFailureType
246         * @generated
247         */
248        public Adapter createSoftwareInducedFailureTypeAdapter() {
249                return null;
250        }
251 
252        /**
253         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.reliability.FailureType <em>Failure Type</em>}'.
254         * <!-- begin-user-doc -->
255         * This default implementation returns null so that we can easily ignore cases;
256         * it's useful to ignore a case when inheritance will catch all the cases anyway.
257         * <!-- end-user-doc -->
258         * @return the new adapter.
259         * @see de.uka.ipd.sdq.pcm.reliability.FailureType
260         * @generated
261         */
262        public Adapter createFailureTypeAdapter() {
263                return null;
264        }
265 
266        /**
267         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'.
268         * <!-- begin-user-doc -->
269         * This default implementation returns null so that we can easily ignore cases;
270         * it's useful to ignore a case when inheritance will catch all the cases anyway.
271         * <!-- end-user-doc -->
272         * @return the new adapter.
273         * @see de.uka.ipd.sdq.identifier.Identifier
274         * @generated
275         */
276        public Adapter createIdentifierAdapter() {
277                return null;
278        }
279 
280        /**
281         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</em>}'.
282         * <!-- begin-user-doc -->
283         * This default implementation returns null so that we can easily ignore cases;
284         * it's useful to ignore a case when inheritance will catch all the cases anyway.
285         * <!-- end-user-doc -->
286         * @return the new adapter.
287         * @see de.uka.ipd.sdq.pcm.core.entity.NamedElement
288         * @generated
289         */
290        public Adapter createNamedElementAdapter() {
291                return null;
292        }
293 
294        /**
295         * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.Entity <em>Entity</em>}'.
296         * <!-- begin-user-doc -->
297         * This default implementation returns null so that we can easily ignore cases;
298         * it's useful to ignore a case when inheritance will catch all the cases anyway.
299         * <!-- end-user-doc -->
300         * @return the new adapter.
301         * @see de.uka.ipd.sdq.pcm.core.entity.Entity
302         * @generated
303         */
304        public Adapter createEntityAdapter() {
305                return null;
306        }
307 
308        /**
309         * Creates a new adapter for the default case.
310         * <!-- begin-user-doc -->
311         * This default implementation returns null.
312         * <!-- end-user-doc -->
313         * @return the new adapter.
314         * @generated
315         */
316        public Adapter createEObjectAdapter() {
317                return null;
318        }
319 
320} //ReliabilityAdapterFactory

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