1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.system.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.system.SystemPackage; |
23 | |
24 | /** |
25 | * <!-- begin-user-doc --> |
26 | * The <b>Adapter Factory</b> for the model. |
27 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
28 | * <!-- end-user-doc --> |
29 | * @see de.uka.ipd.sdq.pcm.system.SystemPackage |
30 | * @generated |
31 | */ |
32 | public class SystemAdapterFactory extends AdapterFactoryImpl { |
33 | /** |
34 | * <!-- begin-user-doc --> |
35 | * <!-- end-user-doc --> |
36 | * @generated |
37 | */ |
38 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
39 | |
40 | /** |
41 | * The cached model package. |
42 | * <!-- begin-user-doc --> |
43 | * <!-- end-user-doc --> |
44 | * @generated |
45 | */ |
46 | protected static SystemPackage modelPackage; |
47 | |
48 | /** |
49 | * Creates an instance of the adapter factory. |
50 | * <!-- begin-user-doc --> |
51 | * <!-- end-user-doc --> |
52 | * @generated |
53 | */ |
54 | public SystemAdapterFactory() { |
55 | if (modelPackage == null) { |
56 | modelPackage = SystemPackage.eINSTANCE; |
57 | } |
58 | } |
59 | |
60 | /** |
61 | * Returns whether this factory is applicable for the type of the object. |
62 | * <!-- begin-user-doc --> |
63 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
64 | * <!-- end-user-doc --> |
65 | * @return whether this factory is applicable for the type of the object. |
66 | * @generated |
67 | */ |
68 | @Override |
69 | public boolean isFactoryForType(Object object) { |
70 | if (object == modelPackage) { |
71 | return true; |
72 | } |
73 | if (object instanceof EObject) { |
74 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
75 | } |
76 | return false; |
77 | } |
78 | |
79 | /** |
80 | * The switch that delegates to the <code>createXXX</code> methods. |
81 | * <!-- begin-user-doc --> |
82 | * <!-- end-user-doc --> |
83 | * @generated |
84 | */ |
85 | protected SystemSwitch<Adapter> modelSwitch = |
86 | new SystemSwitch<Adapter>() { |
87 | @Override |
88 | public Adapter caseSystem(de.uka.ipd.sdq.pcm.system.System object) { |
89 | return createSystemAdapter(); |
90 | } |
91 | @Override |
92 | public Adapter caseIdentifier(Identifier object) { |
93 | return createIdentifierAdapter(); |
94 | } |
95 | @Override |
96 | public Adapter caseNamedElement(NamedElement object) { |
97 | return createNamedElementAdapter(); |
98 | } |
99 | @Override |
100 | public Adapter caseEntity(Entity object) { |
101 | return createEntityAdapter(); |
102 | } |
103 | @Override |
104 | public Adapter caseComposedStructure(ComposedStructure object) { |
105 | return createComposedStructureAdapter(); |
106 | } |
107 | @Override |
108 | public Adapter caseInterfaceProvidingEntity(InterfaceProvidingEntity object) { |
109 | return createInterfaceProvidingEntityAdapter(); |
110 | } |
111 | @Override |
112 | public Adapter caseResourceInterfaceRequiringEntity(ResourceInterfaceRequiringEntity object) { |
113 | return createResourceInterfaceRequiringEntityAdapter(); |
114 | } |
115 | @Override |
116 | public Adapter caseInterfaceRequiringEntity(InterfaceRequiringEntity object) { |
117 | return createInterfaceRequiringEntityAdapter(); |
118 | } |
119 | @Override |
120 | public Adapter caseInterfaceProvidingRequiringEntity(InterfaceProvidingRequiringEntity object) { |
121 | return createInterfaceProvidingRequiringEntityAdapter(); |
122 | } |
123 | @Override |
124 | public Adapter caseComposedProvidingRequiringEntity(ComposedProvidingRequiringEntity object) { |
125 | return createComposedProvidingRequiringEntityAdapter(); |
126 | } |
127 | @Override |
128 | public Adapter defaultCase(EObject object) { |
129 | return createEObjectAdapter(); |
130 | } |
131 | }; |
132 | |
133 | /** |
134 | * Creates an adapter for the <code>target</code>. |
135 | * <!-- begin-user-doc --> |
136 | * <!-- end-user-doc --> |
137 | * @param target the object to adapt. |
138 | * @return the adapter for the <code>target</code>. |
139 | * @generated |
140 | */ |
141 | @Override |
142 | public Adapter createAdapter(Notifier target) { |
143 | return modelSwitch.doSwitch((EObject)target); |
144 | } |
145 | |
146 | |
147 | /** |
148 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.system.System <em>System</em>}'. |
149 | * <!-- begin-user-doc --> |
150 | * This default implementation returns null so that we can easily ignore cases; |
151 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
152 | * <!-- end-user-doc --> |
153 | * @return the new adapter. |
154 | * @see de.uka.ipd.sdq.pcm.system.System |
155 | * @generated |
156 | */ |
157 | public Adapter createSystemAdapter() { |
158 | return null; |
159 | } |
160 | |
161 | /** |
162 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'. |
163 | * <!-- begin-user-doc --> |
164 | * This default implementation returns null so that we can easily ignore cases; |
165 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
166 | * <!-- end-user-doc --> |
167 | * @return the new adapter. |
168 | * @see de.uka.ipd.sdq.identifier.Identifier |
169 | * @generated |
170 | */ |
171 | public Adapter createIdentifierAdapter() { |
172 | return null; |
173 | } |
174 | |
175 | /** |
176 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.NamedElement <em>Named Element</em>}'. |
177 | * <!-- begin-user-doc --> |
178 | * This default implementation returns null so that we can easily ignore cases; |
179 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
180 | * <!-- end-user-doc --> |
181 | * @return the new adapter. |
182 | * @see de.uka.ipd.sdq.pcm.core.entity.NamedElement |
183 | * @generated |
184 | */ |
185 | public Adapter createNamedElementAdapter() { |
186 | return null; |
187 | } |
188 | |
189 | /** |
190 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.Entity <em>Entity</em>}'. |
191 | * <!-- begin-user-doc --> |
192 | * This default implementation returns null so that we can easily ignore cases; |
193 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
194 | * <!-- end-user-doc --> |
195 | * @return the new adapter. |
196 | * @see de.uka.ipd.sdq.pcm.core.entity.Entity |
197 | * @generated |
198 | */ |
199 | public Adapter createEntityAdapter() { |
200 | return null; |
201 | } |
202 | |
203 | /** |
204 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.composition.ComposedStructure <em>Composed Structure</em>}'. |
205 | * <!-- begin-user-doc --> |
206 | * This default implementation returns null so that we can easily ignore cases; |
207 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
208 | * <!-- end-user-doc --> |
209 | * @return the new adapter. |
210 | * @see de.uka.ipd.sdq.pcm.core.composition.ComposedStructure |
211 | * @generated |
212 | */ |
213 | public Adapter createComposedStructureAdapter() { |
214 | return null; |
215 | } |
216 | |
217 | /** |
218 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity <em>Interface Providing Entity</em>}'. |
219 | * <!-- begin-user-doc --> |
220 | * This default implementation returns null so that we can easily ignore cases; |
221 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
222 | * <!-- end-user-doc --> |
223 | * @return the new adapter. |
224 | * @see de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingEntity |
225 | * @generated |
226 | */ |
227 | public Adapter createInterfaceProvidingEntityAdapter() { |
228 | return null; |
229 | } |
230 | |
231 | /** |
232 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity <em>Interface Requiring Entity</em>}'. |
233 | * <!-- begin-user-doc --> |
234 | * This default implementation returns null so that we can easily ignore cases; |
235 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
236 | * <!-- end-user-doc --> |
237 | * @return the new adapter. |
238 | * @see de.uka.ipd.sdq.pcm.core.entity.InterfaceRequiringEntity |
239 | * @generated |
240 | */ |
241 | public Adapter createInterfaceRequiringEntityAdapter() { |
242 | return null; |
243 | } |
244 | |
245 | /** |
246 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity <em>Resource Interface Requiring Entity</em>}'. |
247 | * <!-- begin-user-doc --> |
248 | * This default implementation returns null so that we can easily ignore cases; |
249 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
250 | * <!-- end-user-doc --> |
251 | * @return the new adapter. |
252 | * @see de.uka.ipd.sdq.pcm.core.entity.ResourceInterfaceRequiringEntity |
253 | * @generated |
254 | */ |
255 | public Adapter createResourceInterfaceRequiringEntityAdapter() { |
256 | return null; |
257 | } |
258 | |
259 | /** |
260 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity <em>Interface Providing Requiring Entity</em>}'. |
261 | * <!-- begin-user-doc --> |
262 | * This default implementation returns null so that we can easily ignore cases; |
263 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
264 | * <!-- end-user-doc --> |
265 | * @return the new adapter. |
266 | * @see de.uka.ipd.sdq.pcm.core.entity.InterfaceProvidingRequiringEntity |
267 | * @generated |
268 | */ |
269 | public Adapter createInterfaceProvidingRequiringEntityAdapter() { |
270 | return null; |
271 | } |
272 | |
273 | /** |
274 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity <em>Composed Providing Requiring Entity</em>}'. |
275 | * <!-- begin-user-doc --> |
276 | * This default implementation returns null so that we can easily ignore cases; |
277 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
278 | * <!-- end-user-doc --> |
279 | * @return the new adapter. |
280 | * @see de.uka.ipd.sdq.pcm.core.entity.ComposedProvidingRequiringEntity |
281 | * @generated |
282 | */ |
283 | public Adapter createComposedProvidingRequiringEntityAdapter() { |
284 | return null; |
285 | } |
286 | |
287 | /** |
288 | * Creates a new adapter for the default case. |
289 | * <!-- begin-user-doc --> |
290 | * This default implementation returns null. |
291 | * <!-- end-user-doc --> |
292 | * @return the new adapter. |
293 | * @generated |
294 | */ |
295 | public Adapter createEObjectAdapter() { |
296 | return null; |
297 | } |
298 | |
299 | } //SystemAdapterFactory |