EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][scheduler.util]

COVERAGE SUMMARY FOR SOURCE FILE [SchedulerAdapterFactory.java]

nameclass, %method, %block, %line, %
SchedulerAdapterFactory.java0%   (0/2)0%   (0/10)0%   (0/64)0%   (0/19)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SchedulerAdapterFactory0%   (0/1)0%   (0/6)0%   (0/46)0%   (0/15)
SchedulerAdapterFactory (): 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)
createSchedulerLibraryAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createSystemConfigurationAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
isFactoryForType (Object): boolean 0%   (0/1)0%   (0/20)0%   (0/5)
     
class SchedulerAdapterFactory$10%   (0/1)0%   (0/4)0%   (0/18)0%   (0/5)
SchedulerAdapterFactory$1 (SchedulerAdapterFactory): void 0%   (0/1)0%   (0/6)0%   (0/2)
caseSchedulerLibrary (SchedulerLibrary): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseSystemConfiguration (SystemConfiguration): 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 scheduler.util;
8 
9import org.eclipse.emf.common.notify.Adapter;
10import org.eclipse.emf.common.notify.Notifier;
11 
12import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
13 
14import org.eclipse.emf.ecore.EObject;
15 
16import scheduler.*;
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 scheduler.SchedulerPackage
24 * @generated
25 */
26public class SchedulerAdapterFactory extends AdapterFactoryImpl {
27        /**
28         * The cached model package.
29         * <!-- begin-user-doc -->
30         * <!-- end-user-doc -->
31         * @generated
32         */
33        protected static SchedulerPackage modelPackage;
34 
35        /**
36         * Creates an instance of the adapter factory.
37         * <!-- begin-user-doc -->
38         * <!-- end-user-doc -->
39         * @generated
40         */
41        public SchedulerAdapterFactory() {
42                if (modelPackage == null) {
43                        modelPackage = SchedulerPackage.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 SchedulerSwitch<Adapter> modelSwitch =
73                new SchedulerSwitch<Adapter>() {
74                        @Override
75                        public Adapter caseSchedulerLibrary(SchedulerLibrary object) {
76                                return createSchedulerLibraryAdapter();
77                        }
78                        @Override
79                        public Adapter caseSystemConfiguration(SystemConfiguration object) {
80                                return createSystemConfigurationAdapter();
81                        }
82                        @Override
83                        public Adapter defaultCase(EObject object) {
84                                return createEObjectAdapter();
85                        }
86                };
87 
88        /**
89         * Creates an adapter for the <code>target</code>.
90         * <!-- begin-user-doc -->
91         * <!-- end-user-doc -->
92         * @param target the object to adapt.
93         * @return the adapter for the <code>target</code>.
94         * @generated
95         */
96        @Override
97        public Adapter createAdapter(Notifier target) {
98                return modelSwitch.doSwitch((EObject)target);
99        }
100 
101 
102        /**
103         * Creates a new adapter for an object of class '{@link scheduler.SchedulerLibrary <em>Library</em>}'.
104         * <!-- begin-user-doc -->
105         * This default implementation returns null so that we can easily ignore cases;
106         * it's useful to ignore a case when inheritance will catch all the cases anyway.
107         * <!-- end-user-doc -->
108         * @return the new adapter.
109         * @see scheduler.SchedulerLibrary
110         * @generated
111         */
112        public Adapter createSchedulerLibraryAdapter() {
113                return null;
114        }
115 
116        /**
117         * Creates a new adapter for an object of class '{@link scheduler.SystemConfiguration <em>System Configuration</em>}'.
118         * <!-- begin-user-doc -->
119         * This default implementation returns null so that we can easily ignore cases;
120         * it's useful to ignore a case when inheritance will catch all the cases anyway.
121         * <!-- end-user-doc -->
122         * @return the new adapter.
123         * @see scheduler.SystemConfiguration
124         * @generated
125         */
126        public Adapter createSystemConfigurationAdapter() {
127                return null;
128        }
129 
130        /**
131         * Creates a new adapter for the default case.
132         * <!-- begin-user-doc -->
133         * This default implementation returns null.
134         * <!-- end-user-doc -->
135         * @return the new adapter.
136         * @generated
137         */
138        public Adapter createEObjectAdapter() {
139                return null;
140        }
141 
142} //SchedulerAdapterFactory

[all classes][scheduler.util]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov