1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.resourcetype.util; |
7 | |
8 | import org.eclipse.emf.common.notify.Adapter; |
9 | import org.eclipse.emf.common.notify.Notifier; |
10 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
11 | import org.eclipse.emf.ecore.EObject; |
12 | |
13 | import de.uka.ipd.sdq.identifier.Identifier; |
14 | import de.uka.ipd.sdq.pcm.core.entity.Entity; |
15 | import de.uka.ipd.sdq.pcm.core.entity.NamedElement; |
16 | import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceProvidingEntity; |
17 | import de.uka.ipd.sdq.pcm.resourcetype.*; |
18 | import de.uka.ipd.sdq.pcm.resourcetype.CommunicationLinkResourceType; |
19 | import de.uka.ipd.sdq.pcm.resourcetype.ProcessingResourceType; |
20 | import de.uka.ipd.sdq.pcm.resourcetype.ResourceInterface; |
21 | import de.uka.ipd.sdq.pcm.resourcetype.ResourceRepository; |
22 | import de.uka.ipd.sdq.pcm.resourcetype.ResourceSignature; |
23 | import de.uka.ipd.sdq.pcm.resourcetype.ResourceType; |
24 | import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage; |
25 | import de.uka.ipd.sdq.units.UnitCarryingElement; |
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.resourcetype.ResourcetypePackage |
33 | * @generated |
34 | */ |
35 | public class ResourcetypeAdapterFactory 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 ResourcetypePackage modelPackage; |
50 | |
51 | /** |
52 | * Creates an instance of the adapter factory. |
53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> |
55 | * @generated |
56 | */ |
57 | public ResourcetypeAdapterFactory() { |
58 | if (modelPackage == null) { |
59 | modelPackage = ResourcetypePackage.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 ResourcetypeSwitch<Adapter> modelSwitch = |
89 | new ResourcetypeSwitch<Adapter>() { |
90 | @Override |
91 | public Adapter caseResourceSignature(ResourceSignature object) { |
92 | return createResourceSignatureAdapter(); |
93 | } |
94 | @Override |
95 | public Adapter caseProcessingResourceType(ProcessingResourceType object) { |
96 | return createProcessingResourceTypeAdapter(); |
97 | } |
98 | @Override |
99 | public Adapter caseResourceType(ResourceType object) { |
100 | return createResourceTypeAdapter(); |
101 | } |
102 | @Override |
103 | public Adapter caseResourceRepository(ResourceRepository object) { |
104 | return createResourceRepositoryAdapter(); |
105 | } |
106 | @Override |
107 | public Adapter caseCommunicationLinkResourceType(CommunicationLinkResourceType object) { |
108 | return createCommunicationLinkResourceTypeAdapter(); |
109 | } |
110 | @Override |
111 | public Adapter caseResourceInterface(ResourceInterface object) { |
112 | return createResourceInterfaceAdapter(); |
113 | } |
114 | @Override |
115 | public Adapter caseIdentifier(Identifier object) { |
116 | return createIdentifierAdapter(); |
117 | } |
118 | @Override |
119 | public Adapter caseNamedElement(NamedElement object) { |
120 | return createNamedElementAdapter(); |
121 | } |
122 | @Override |
123 | public Adapter caseEntity(Entity object) { |
124 | return createEntityAdapter(); |
125 | } |
126 | @Override |
127 | public Adapter caseUnitCarryingElement(UnitCarryingElement object) { |
128 | return createUnitCarryingElementAdapter(); |
129 | } |
130 | @Override |
131 | public Adapter caseResourceInterfaceProvidingEntity(ResourceInterfaceProvidingEntity object) { |
132 | return createResourceInterfaceProvidingEntityAdapter(); |
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.resourcetype.ResourceSignature <em>Resource Signature</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.resourcetype.ResourceSignature |
162 | * @generated |
163 | */ |
164 | public Adapter createResourceSignatureAdapter() { |
165 | return null; |
166 | } |
167 | |
168 | /** |
169 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resourcetype.ResourceType <em>Resource 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.resourcetype.ResourceType |
176 | * @generated |
177 | */ |
178 | public Adapter createResourceTypeAdapter() { |
179 | return null; |
180 | } |
181 | |
182 | /** |
183 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resourcetype.ResourceRepository <em>Resource Repository</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.resourcetype.ResourceRepository |
190 | * @generated |
191 | */ |
192 | public Adapter createResourceRepositoryAdapter() { |
193 | return null; |
194 | } |
195 | |
196 | /** |
197 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resourcetype.CommunicationLinkResourceType <em>Communication Link Resource 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.resourcetype.CommunicationLinkResourceType |
204 | * @generated |
205 | */ |
206 | public Adapter createCommunicationLinkResourceTypeAdapter() { |
207 | return null; |
208 | } |
209 | |
210 | /** |
211 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resourcetype.ResourceInterface <em>Resource Interface</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.resourcetype.ResourceInterface |
218 | * @generated |
219 | */ |
220 | public Adapter createResourceInterfaceAdapter() { |
221 | return null; |
222 | } |
223 | |
224 | /** |
225 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.resourcetype.ProcessingResourceType <em>Processing Resource Type</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.resourcetype.ProcessingResourceType |
232 | * @generated |
233 | */ |
234 | public Adapter createProcessingResourceTypeAdapter() { |
235 | return null; |
236 | } |
237 | |
238 | /** |
239 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</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.identifier.Identifier |
246 | * @generated |
247 | */ |
248 | public Adapter createIdentifierAdapter() { |
249 | return null; |
250 | } |
251 | |
252 | /** |
253 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</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.core.entity.NamedElement |
260 | * @generated |
261 | */ |
262 | public Adapter createNamedElementAdapter() { |
263 | return null; |
264 | } |
265 | |
266 | /** |
267 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.Entity <em>Entity</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.pcm.core.entity.Entity |
274 | * @generated |
275 | */ |
276 | public Adapter createEntityAdapter() { |
277 | return null; |
278 | } |
279 | |
280 | /** |
281 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceProvidingEntity <em>Resource Interface Providing Entity</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.ResourceInterfaceProvidingEntity |
288 | * @generated |
289 | */ |
290 | public Adapter createResourceInterfaceProvidingEntityAdapter() { |
291 | return null; |
292 | } |
293 | |
294 | /** |
295 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.units.UnitCarryingElement <em>Unit Carrying Element</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.units.UnitCarryingElement |
302 | * @generated |
303 | */ |
304 | public Adapter createUnitCarryingElementAdapter() { |
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 | } //ResourcetypeAdapterFactory |