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

COVERAGE SUMMARY FOR SOURCE FILE [CopyExceptionAdapterFactory.java]

nameclass, %method, %block, %line, %
CopyExceptionAdapterFactory.java0%   (0/2)0%   (0/18)0%   (0/88)0%   (0/27)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CopyExceptionAdapterFactory0%   (0/1)0%   (0/10)0%   (0/54)0%   (0/19)
CopyExceptionAdapterFactory (): void 0%   (0/1)0%   (0/13)0%   (0/6)
createAdapter (Notifier): Adapter 0%   (0/1)0%   (0/7)0%   (0/1)
createDeletionExceptionAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createEObjectAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createExceptionAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createImportAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createModelAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createReferenceExceptionAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
createReplacementExceptionAdapter (): Adapter 0%   (0/1)0%   (0/2)0%   (0/1)
isFactoryForType (Object): boolean 0%   (0/1)0%   (0/20)0%   (0/5)
     
class CopyExceptionAdapterFactory$10%   (0/1)0%   (0/8)0%   (0/34)0%   (0/9)
CopyExceptionAdapterFactory$1 (CopyExceptionAdapterFactory): void 0%   (0/1)0%   (0/6)0%   (0/2)
caseDeletionException (DeletionException): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseException (Exception): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseImport (Import): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseModel (Model): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseReferenceException (ReferenceException): Adapter 0%   (0/1)0%   (0/4)0%   (0/1)
caseReplacementException (ReplacementException): 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 copyException.util;
8 
9import copyException.CopyExceptionPackage;
10import copyException.DeletionException;
11import copyException.Import;
12import copyException.Model;
13import copyException.ReferenceException;
14import copyException.ReplacementException;
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 copyException.CopyExceptionPackage
29 * @generated
30 */
31public class CopyExceptionAdapterFactory extends AdapterFactoryImpl {
32        /**
33         * The cached model package.
34         * <!-- begin-user-doc -->
35         * <!-- end-user-doc -->
36         * @generated
37         */
38        protected static CopyExceptionPackage modelPackage;
39 
40        /**
41         * Creates an instance of the adapter factory.
42         * <!-- begin-user-doc -->
43         * <!-- end-user-doc -->
44         * @generated
45         */
46        public CopyExceptionAdapterFactory() {
47                if (modelPackage == null) {
48                        modelPackage = CopyExceptionPackage.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 CopyExceptionSwitch<Adapter> modelSwitch =
78                new CopyExceptionSwitch<Adapter>() {
79                        @Override
80                        public Adapter caseModel(Model object) {
81                                return createModelAdapter();
82                        }
83                        @Override
84                        public Adapter caseImport(Import object) {
85                                return createImportAdapter();
86                        }
87                        @Override
88                        public Adapter caseException(copyException.Exception object) {
89                                return createExceptionAdapter();
90                        }
91                        @Override
92                        public Adapter caseDeletionException(DeletionException object) {
93                                return createDeletionExceptionAdapter();
94                        }
95                        @Override
96                        public Adapter caseReplacementException(ReplacementException object) {
97                                return createReplacementExceptionAdapter();
98                        }
99                        @Override
100                        public Adapter caseReferenceException(ReferenceException object) {
101                                return createReferenceExceptionAdapter();
102                        }
103                        @Override
104                        public Adapter defaultCase(EObject object) {
105                                return createEObjectAdapter();
106                        }
107                };
108 
109        /**
110         * Creates an adapter for the <code>target</code>.
111         * <!-- begin-user-doc -->
112         * <!-- end-user-doc -->
113         * @param target the object to adapt.
114         * @return the adapter for the <code>target</code>.
115         * @generated
116         */
117        @Override
118        public Adapter createAdapter(Notifier target) {
119                return modelSwitch.doSwitch((EObject)target);
120        }
121 
122 
123        /**
124         * Creates a new adapter for an object of class '{@link copyException.Model <em>Model</em>}'.
125         * <!-- begin-user-doc -->
126         * This default implementation returns null so that we can easily ignore cases;
127         * it's useful to ignore a case when inheritance will catch all the cases anyway.
128         * <!-- end-user-doc -->
129         * @return the new adapter.
130         * @see copyException.Model
131         * @generated
132         */
133        public Adapter createModelAdapter() {
134                return null;
135        }
136 
137        /**
138         * Creates a new adapter for an object of class '{@link copyException.Import <em>Import</em>}'.
139         * <!-- begin-user-doc -->
140         * This default implementation returns null so that we can easily ignore cases;
141         * it's useful to ignore a case when inheritance will catch all the cases anyway.
142         * <!-- end-user-doc -->
143         * @return the new adapter.
144         * @see copyException.Import
145         * @generated
146         */
147        public Adapter createImportAdapter() {
148                return null;
149        }
150 
151        /**
152         * Creates a new adapter for an object of class '{@link copyException.Exception <em>Exception</em>}'.
153         * <!-- begin-user-doc -->
154         * This default implementation returns null so that we can easily ignore cases;
155         * it's useful to ignore a case when inheritance will catch all the cases anyway.
156         * <!-- end-user-doc -->
157         * @return the new adapter.
158         * @see copyException.Exception
159         * @generated
160         */
161        public Adapter createExceptionAdapter() {
162                return null;
163        }
164 
165        /**
166         * Creates a new adapter for an object of class '{@link copyException.DeletionException <em>Deletion Exception</em>}'.
167         * <!-- begin-user-doc -->
168         * This default implementation returns null so that we can easily ignore cases;
169         * it's useful to ignore a case when inheritance will catch all the cases anyway.
170         * <!-- end-user-doc -->
171         * @return the new adapter.
172         * @see copyException.DeletionException
173         * @generated
174         */
175        public Adapter createDeletionExceptionAdapter() {
176                return null;
177        }
178 
179        /**
180         * Creates a new adapter for an object of class '{@link copyException.ReplacementException <em>Replacement Exception</em>}'.
181         * <!-- begin-user-doc -->
182         * This default implementation returns null so that we can easily ignore cases;
183         * it's useful to ignore a case when inheritance will catch all the cases anyway.
184         * <!-- end-user-doc -->
185         * @return the new adapter.
186         * @see copyException.ReplacementException
187         * @generated
188         */
189        public Adapter createReplacementExceptionAdapter() {
190                return null;
191        }
192 
193        /**
194         * Creates a new adapter for an object of class '{@link copyException.ReferenceException <em>Reference Exception</em>}'.
195         * <!-- begin-user-doc -->
196         * This default implementation returns null so that we can easily ignore cases;
197         * it's useful to ignore a case when inheritance will catch all the cases anyway.
198         * <!-- end-user-doc -->
199         * @return the new adapter.
200         * @see copyException.ReferenceException
201         * @generated
202         */
203        public Adapter createReferenceExceptionAdapter() {
204                return null;
205        }
206 
207        /**
208         * Creates a new adapter for the default case.
209         * <!-- begin-user-doc -->
210         * This default implementation returns null.
211         * <!-- end-user-doc -->
212         * @return the new adapter.
213         * @generated
214         */
215        public Adapter createEObjectAdapter() {
216                return null;
217        }
218 
219} //CopyExceptionAdapterFactory

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