EMMA Coverage Report (generated Thu Jan 20 11:39:44 EST 2011)
[all classes][com.hammurapi.eventbus.snapshot.util]

COVERAGE SUMMARY FOR SOURCE FILE [SnapshotAdapterFactory.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SnapshotAdapterFactory0%   (0/1)0%   (0/18)0%   (0/70)0%   (0/27)
SnapshotAdapterFactory (): void 0%   (0/1)0%   (0/13)0%   (0/6)
createAdapter (Notifier): Adapter 0%   (0/1)0%   (0/7)0%   (0/1)
createCompositeEventAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createDerivationAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createEObjectAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createEventAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createExtractorAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createHandlerAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createJoinEntryAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createJoinInputAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createJoinInputCollectorAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createJoinNodeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createPredicateAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createPredicateNodeAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createPredicateNodeOutputAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createSnapshotAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createSnapshotElementAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
isFactoryForType (Object): boolean 0%   (0/1)0%   (0/20)0%   (0/5)
     
class SnapshotAdapterFactory$10%   (0/1)0%   (0/16)0%   (0/66)0%   (0/17)
SnapshotAdapterFactory$1 (SnapshotAdapterFactory): void 0%   (0/1)0%   (0/6)0%   (0/2)
caseCompositeEvent (CompositeEvent): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseDerivation (Derivation): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseEvent (Event): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseExtractor (Extractor): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseHandler (Handler): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseJoinEntry (JoinEntry): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseJoinInput (JoinInput): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseJoinInputCollector (JoinInputCollector): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseJoinNode (JoinNode): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
casePredicate (Predicate): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
casePredicateNode (PredicateNode): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
casePredicateNodeOutput (PredicateNodeOutput): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseSnapshot (Snapshot): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseSnapshotElement (SnapshotElement): 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 com.hammurapi.eventbus.snapshot.util;
8 
9import com.hammurapi.eventbus.snapshot.*;
10 
11import org.eclipse.emf.common.notify.Adapter;
12import org.eclipse.emf.common.notify.Notifier;
13 
14import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
15 
16import org.eclipse.emf.ecore.EObject;
17 
18/**
19 * <!-- begin-user-doc -->
20 * The <b>Adapter Factory</b> for the model.
21 * It provides an adapter <code>createXXX</code> method for each class of the model.
22 * <!-- end-user-doc -->
23 * @see com.hammurapi.eventbus.snapshot.SnapshotPackage
24 * @generated
25 */
26public class SnapshotAdapterFactory extends AdapterFactoryImpl {
27        /**
28         * The cached model package.
29         * <!-- begin-user-doc -->
30         * <!-- end-user-doc -->
31         * @generated
32         */
33        protected static SnapshotPackage modelPackage;
34 
35        /**
36         * Creates an instance of the adapter factory.
37         * <!-- begin-user-doc -->
38         * <!-- end-user-doc -->
39         * @generated
40         */
41        public SnapshotAdapterFactory() {
42                if (modelPackage == null) {
43                        modelPackage = SnapshotPackage.eINSTANCE;
44                }
45        }
46 
47        /**
48         * Returns whether this factory is applicable for the type of the object.
49         * <!-- begin-user-doc -->
50         * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
51         * <!-- end-user-doc -->
52         * @return whether this factory is applicable for the type of the object.
53         * @generated
54         */
55        @Override
56        public boolean isFactoryForType(Object object) {
57                if (object == modelPackage) {
58                        return true;
59                }
60                if (object instanceof EObject) {
61                        return ((EObject)object).eClass().getEPackage() == modelPackage;
62                }
63                return false;
64        }
65 
66        /**
67         * The switch that delegates to the <code>createXXX</code> methods.
68         * <!-- begin-user-doc -->
69         * <!-- end-user-doc -->
70         * @generated
71         */
72        protected SnapshotSwitch<Adapter> modelSwitch =
73                new SnapshotSwitch<Adapter>() {
74                        @Override
75                        public Adapter caseSnapshot(Snapshot object) {
76                                return createSnapshotAdapter();
77                        }
78                        @Override
79                        public Adapter caseSnapshotElement(SnapshotElement object) {
80                                return createSnapshotElementAdapter();
81                        }
82                        @Override
83                        public Adapter caseHandler(Handler object) {
84                                return createHandlerAdapter();
85                        }
86                        @Override
87                        public Adapter caseDerivation(Derivation object) {
88                                return createDerivationAdapter();
89                        }
90                        @Override
91                        public Adapter caseEvent(Event object) {
92                                return createEventAdapter();
93                        }
94                        @Override
95                        public Adapter casePredicateNode(PredicateNode object) {
96                                return createPredicateNodeAdapter();
97                        }
98                        @Override
99                        public Adapter casePredicateNodeOutput(PredicateNodeOutput object) {
100                                return createPredicateNodeOutputAdapter();
101                        }
102                        @Override
103                        public Adapter caseJoinInput(JoinInput object) {
104                                return createJoinInputAdapter();
105                        }
106                        @Override
107                        public Adapter caseJoinNode(JoinNode object) {
108                                return createJoinNodeAdapter();
109                        }
110                        @Override
111                        public Adapter caseJoinInputCollector(JoinInputCollector object) {
112                                return createJoinInputCollectorAdapter();
113                        }
114                        @Override
115                        public Adapter caseJoinEntry(JoinEntry object) {
116                                return createJoinEntryAdapter();
117                        }
118                        @Override
119                        public Adapter caseExtractor(Extractor object) {
120                                return createExtractorAdapter();
121                        }
122                        @Override
123                        public Adapter casePredicate(Predicate object) {
124                                return createPredicateAdapter();
125                        }
126                        @Override
127                        public Adapter caseCompositeEvent(CompositeEvent object) {
128                                return createCompositeEventAdapter();
129                        }
130                        @Override
131                        public Adapter defaultCase(EObject object) {
132                                return createEObjectAdapter();
133                        }
134                };
135 
136        /**
137         * Creates an adapter for the <code>target</code>.
138         * <!-- begin-user-doc -->
139         * <!-- end-user-doc -->
140         * @param target the object to adapt.
141         * @return the adapter for the <code>target</code>.
142         * @generated
143         */
144        @Override
145        public Adapter createAdapter(Notifier target) {
146                return modelSwitch.doSwitch((EObject)target);
147        }
148 
149 
150        /**
151         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Snapshot <em>Snapshot</em>}'.
152         * <!-- begin-user-doc -->
153         * This default implementation returns null so that we can easily ignore cases;
154         * it's useful to ignore a case when inheritance will catch all the cases anyway.
155         * <!-- end-user-doc -->
156         * @return the new adapter.
157         * @see com.hammurapi.eventbus.snapshot.Snapshot
158         * @generated
159         */
160        public Adapter createSnapshotAdapter() {
161                return null;
162        }
163 
164        /**
165         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.SnapshotElement <em>Element</em>}'.
166         * <!-- begin-user-doc -->
167         * This default implementation returns null so that we can easily ignore cases;
168         * it's useful to ignore a case when inheritance will catch all the cases anyway.
169         * <!-- end-user-doc -->
170         * @return the new adapter.
171         * @see com.hammurapi.eventbus.snapshot.SnapshotElement
172         * @generated
173         */
174        public Adapter createSnapshotElementAdapter() {
175                return null;
176        }
177 
178        /**
179         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Handler <em>Handler</em>}'.
180         * <!-- begin-user-doc -->
181         * This default implementation returns null so that we can easily ignore cases;
182         * it's useful to ignore a case when inheritance will catch all the cases anyway.
183         * <!-- end-user-doc -->
184         * @return the new adapter.
185         * @see com.hammurapi.eventbus.snapshot.Handler
186         * @generated
187         */
188        public Adapter createHandlerAdapter() {
189                return null;
190        }
191 
192        /**
193         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Derivation <em>Derivation</em>}'.
194         * <!-- begin-user-doc -->
195         * This default implementation returns null so that we can easily ignore cases;
196         * it's useful to ignore a case when inheritance will catch all the cases anyway.
197         * <!-- end-user-doc -->
198         * @return the new adapter.
199         * @see com.hammurapi.eventbus.snapshot.Derivation
200         * @generated
201         */
202        public Adapter createDerivationAdapter() {
203                return null;
204        }
205 
206        /**
207         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Event <em>Event</em>}'.
208         * <!-- begin-user-doc -->
209         * This default implementation returns null so that we can easily ignore cases;
210         * it's useful to ignore a case when inheritance will catch all the cases anyway.
211         * <!-- end-user-doc -->
212         * @return the new adapter.
213         * @see com.hammurapi.eventbus.snapshot.Event
214         * @generated
215         */
216        public Adapter createEventAdapter() {
217                return null;
218        }
219 
220        /**
221         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.PredicateNode <em>Predicate Node</em>}'.
222         * <!-- begin-user-doc -->
223         * This default implementation returns null so that we can easily ignore cases;
224         * it's useful to ignore a case when inheritance will catch all the cases anyway.
225         * <!-- end-user-doc -->
226         * @return the new adapter.
227         * @see com.hammurapi.eventbus.snapshot.PredicateNode
228         * @generated
229         */
230        public Adapter createPredicateNodeAdapter() {
231                return null;
232        }
233 
234        /**
235         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.PredicateNodeOutput <em>Predicate Node Output</em>}'.
236         * <!-- begin-user-doc -->
237         * This default implementation returns null so that we can easily ignore cases;
238         * it's useful to ignore a case when inheritance will catch all the cases anyway.
239         * <!-- end-user-doc -->
240         * @return the new adapter.
241         * @see com.hammurapi.eventbus.snapshot.PredicateNodeOutput
242         * @generated
243         */
244        public Adapter createPredicateNodeOutputAdapter() {
245                return null;
246        }
247 
248        /**
249         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.JoinInput <em>Join Input</em>}'.
250         * <!-- begin-user-doc -->
251         * This default implementation returns null so that we can easily ignore cases;
252         * it's useful to ignore a case when inheritance will catch all the cases anyway.
253         * <!-- end-user-doc -->
254         * @return the new adapter.
255         * @see com.hammurapi.eventbus.snapshot.JoinInput
256         * @generated
257         */
258        public Adapter createJoinInputAdapter() {
259                return null;
260        }
261 
262        /**
263         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.JoinNode <em>Join Node</em>}'.
264         * <!-- begin-user-doc -->
265         * This default implementation returns null so that we can easily ignore cases;
266         * it's useful to ignore a case when inheritance will catch all the cases anyway.
267         * <!-- end-user-doc -->
268         * @return the new adapter.
269         * @see com.hammurapi.eventbus.snapshot.JoinNode
270         * @generated
271         */
272        public Adapter createJoinNodeAdapter() {
273                return null;
274        }
275 
276        /**
277         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.JoinInputCollector <em>Join Input Collector</em>}'.
278         * <!-- begin-user-doc -->
279         * This default implementation returns null so that we can easily ignore cases;
280         * it's useful to ignore a case when inheritance will catch all the cases anyway.
281         * <!-- end-user-doc -->
282         * @return the new adapter.
283         * @see com.hammurapi.eventbus.snapshot.JoinInputCollector
284         * @generated
285         */
286        public Adapter createJoinInputCollectorAdapter() {
287                return null;
288        }
289 
290        /**
291         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.JoinEntry <em>Join Entry</em>}'.
292         * <!-- begin-user-doc -->
293         * This default implementation returns null so that we can easily ignore cases;
294         * it's useful to ignore a case when inheritance will catch all the cases anyway.
295         * <!-- end-user-doc -->
296         * @return the new adapter.
297         * @see com.hammurapi.eventbus.snapshot.JoinEntry
298         * @generated
299         */
300        public Adapter createJoinEntryAdapter() {
301                return null;
302        }
303 
304        /**
305         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Extractor <em>Extractor</em>}'.
306         * <!-- begin-user-doc -->
307         * This default implementation returns null so that we can easily ignore cases;
308         * it's useful to ignore a case when inheritance will catch all the cases anyway.
309         * <!-- end-user-doc -->
310         * @return the new adapter.
311         * @see com.hammurapi.eventbus.snapshot.Extractor
312         * @generated
313         */
314        public Adapter createExtractorAdapter() {
315                return null;
316        }
317 
318        /**
319         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.Predicate <em>Predicate</em>}'.
320         * <!-- begin-user-doc -->
321         * This default implementation returns null so that we can easily ignore cases;
322         * it's useful to ignore a case when inheritance will catch all the cases anyway.
323         * <!-- end-user-doc -->
324         * @return the new adapter.
325         * @see com.hammurapi.eventbus.snapshot.Predicate
326         * @generated
327         */
328        public Adapter createPredicateAdapter() {
329                return null;
330        }
331 
332        /**
333         * Creates a new adapter for an object of class '{@link com.hammurapi.eventbus.snapshot.CompositeEvent <em>Composite Event</em>}'.
334         * <!-- begin-user-doc -->
335         * This default implementation returns null so that we can easily ignore cases;
336         * it's useful to ignore a case when inheritance will catch all the cases anyway.
337         * <!-- end-user-doc -->
338         * @return the new adapter.
339         * @see com.hammurapi.eventbus.snapshot.CompositeEvent
340         * @generated
341         */
342        public Adapter createCompositeEventAdapter() {
343                return null;
344        }
345 
346        /**
347         * Creates a new adapter for the default case.
348         * <!-- begin-user-doc -->
349         * This default implementation returns null.
350         * <!-- end-user-doc -->
351         * @return the new adapter.
352         * @generated
353         */
354        public Adapter createEObjectAdapter() {
355                return null;
356        }
357 
358} //SnapshotAdapterFactory

[all classes][com.hammurapi.eventbus.snapshot.util]
EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov