1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.subsystem.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.composition.ComposedStructure; |
15 | import de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity; |
16 | import de.uka.ipd.sdq.pcm.core.entity.Entity; |
17 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity; |
18 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity; |
19 | import de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity; |
20 | import de.uka.ipd.sdq.pcm.core.entity.NamedElement; |
21 | import de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity; |
22 | import de.uka.ipd.sdq.pcm.repository.RepositoryComponent; |
23 | import de.uka.ipd.sdq.pcm.subsystem.*; |
24 | import de.uka.ipd.sdq.pcm.subsystem.SubSystem; |
25 | import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage; |
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.subsystem.SubsystemPackage |
33 | * @generated |
34 | */ |
35 | public class SubsystemAdapterFactory 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 SubsystemPackage modelPackage; |
50 | |
51 | /** |
52 | * Creates an instance of the adapter factory. |
53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> |
55 | * @generated |
56 | */ |
57 | public SubsystemAdapterFactory() { |
58 | if (modelPackage == null) { |
59 | modelPackage = SubsystemPackage.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 SubsystemSwitch<Adapter> modelSwitch = |
89 | new SubsystemSwitch<Adapter>() { |
90 | @Override |
91 | public Adapter caseSubSystem(SubSystem object) { |
92 | return createSubSystemAdapter(); |
93 | } |
94 | @Override |
95 | public Adapter caseIdentifier(Identifier object) { |
96 | return createIdentifierAdapter(); |
97 | } |
98 | @Override |
99 | public Adapter caseNamedElement(NamedElement object) { |
100 | return createNamedElementAdapter(); |
101 | } |
102 | @Override |
103 | public Adapter caseEntity(Entity object) { |
104 | return createEntityAdapter(); |
105 | } |
106 | @Override |
107 | public Adapter caseComposedStructure(ComposedStructure object) { |
108 | return createComposedStructureAdapter(); |
109 | } |
110 | @Override |
111 | public Adapter caseInterfaceProvidingEntity(InterfaceProvidingEntity object) { |
112 | return createInterfaceProvidingEntityAdapter(); |
113 | } |
114 | @Override |
115 | public Adapter caseResourceInterfaceRequiringEntity(ResourceInterfaceRequiringEntity object) { |
116 | return createResourceInterfaceRequiringEntityAdapter(); |
117 | } |
118 | @Override |
119 | public Adapter caseInterfaceRequiringEntity(InterfaceRequiringEntity object) { |
120 | return createInterfaceRequiringEntityAdapter(); |
121 | } |
122 | @Override |
123 | public Adapter caseInterfaceProvidingRequiringEntity(InterfaceProvidingRequiringEntity object) { |
124 | return createInterfaceProvidingRequiringEntityAdapter(); |
125 | } |
126 | @Override |
127 | public Adapter caseComposedProvidingRequiringEntity(ComposedProvidingRequiringEntity object) { |
128 | return createComposedProvidingRequiringEntityAdapter(); |
129 | } |
130 | @Override |
131 | public Adapter caseRepositoryComponent(RepositoryComponent object) { |
132 | return createRepositoryComponentAdapter(); |
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.subsystem.SubSystem <em>Sub System</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.subsystem.SubSystem |
162 | * @generated |
163 | */ |
164 | public Adapter createSubSystemAdapter() { |
165 | return null; |
166 | } |
167 | |
168 | /** |
169 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</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.identifier.Identifier |
176 | * @generated |
177 | */ |
178 | public Adapter createIdentifierAdapter() { |
179 | return null; |
180 | } |
181 | |
182 | /** |
183 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</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.core.entity.NamedElement |
190 | * @generated |
191 | */ |
192 | public Adapter createNamedElementAdapter() { |
193 | return null; |
194 | } |
195 | |
196 | /** |
197 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.Entity <em>Entity</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.core.entity.Entity |
204 | * @generated |
205 | */ |
206 | public Adapter createEntityAdapter() { |
207 | return null; |
208 | } |
209 | |
210 | /** |
211 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.ComposedStructure <em>Composed Structure</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.core.composition.ComposedStructure |
218 | * @generated |
219 | */ |
220 | public Adapter createComposedStructureAdapter() { |
221 | return null; |
222 | } |
223 | |
224 | /** |
225 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity <em>Interface Providing Entity</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.core.entity.InterfaceProvidingEntity |
232 | * @generated |
233 | */ |
234 | public Adapter createInterfaceProvidingEntityAdapter() { |
235 | return null; |
236 | } |
237 | |
238 | /** |
239 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity <em>Interface Requiring Entity</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.core.entity.InterfaceRequiringEntity |
246 | * @generated |
247 | */ |
248 | public Adapter createInterfaceRequiringEntityAdapter() { |
249 | return null; |
250 | } |
251 | |
252 | /** |
253 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity <em>Resource Interface Requiring Entity</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.ResourceInterfaceRequiringEntity |
260 | * @generated |
261 | */ |
262 | public Adapter createResourceInterfaceRequiringEntityAdapter() { |
263 | return null; |
264 | } |
265 | |
266 | /** |
267 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity <em>Interface Providing Requiring 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.InterfaceProvidingRequiringEntity |
274 | * @generated |
275 | */ |
276 | public Adapter createInterfaceProvidingRequiringEntityAdapter() { |
277 | return null; |
278 | } |
279 | |
280 | /** |
281 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity <em>Composed Providing Requiring 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.ComposedProvidingRequiringEntity |
288 | * @generated |
289 | */ |
290 | public Adapter createComposedProvidingRequiringEntityAdapter() { |
291 | return null; |
292 | } |
293 | |
294 | /** |
295 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.repository.RepositoryComponent <em>Component</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.repository.RepositoryComponent |
302 | * @generated |
303 | */ |
304 | public Adapter createRepositoryComponentAdapter() { |
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 | } //SubsystemAdapterFactory |