1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.pcm.cost.util; |
8 | |
9 | import de.uka.ipd.sdq.pcm.cost.*; |
10 | |
11 | import org.eclipse.emf.common.notify.Adapter; |
12 | import org.eclipse.emf.common.notify.Notifier; |
13 | |
14 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
15 | |
16 | import org.eclipse.emf.ecore.EObject; |
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 de.uka.ipd.sdq.pcm.cost.costPackage |
24 | * @generated |
25 | */ |
26 | public class costAdapterFactory extends AdapterFactoryImpl { |
27 | /** |
28 | * The cached model package. |
29 | * <!-- begin-user-doc --> |
30 | * <!-- end-user-doc --> |
31 | * @generated |
32 | */ |
33 | protected static costPackage modelPackage; |
34 | |
35 | /** |
36 | * Creates an instance of the adapter factory. |
37 | * <!-- begin-user-doc --> |
38 | * <!-- end-user-doc --> |
39 | * @generated |
40 | */ |
41 | public costAdapterFactory() { |
42 | if (modelPackage == null) { |
43 | modelPackage = costPackage.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 costSwitch<Adapter> modelSwitch = |
73 | new costSwitch<Adapter>() { |
74 | @Override |
75 | public Adapter caseComponentCost(ComponentCost object) { |
76 | return createComponentCostAdapter(); |
77 | } |
78 | @Override |
79 | public Adapter caseCost(Cost object) { |
80 | return createCostAdapter(); |
81 | } |
82 | @Override |
83 | public Adapter caseFixedLinkingResourceCost(FixedLinkingResourceCost object) { |
84 | return createFixedLinkingResourceCostAdapter(); |
85 | } |
86 | @Override |
87 | public Adapter caseLinkingResourceCost(LinkingResourceCost object) { |
88 | return createLinkingResourceCostAdapter(); |
89 | } |
90 | @Override |
91 | public Adapter caseFixedProcessingResourceCost(FixedProcessingResourceCost object) { |
92 | return createFixedProcessingResourceCostAdapter(); |
93 | } |
94 | @Override |
95 | public Adapter caseProcessingResourceCost(ProcessingResourceCost object) { |
96 | return createProcessingResourceCostAdapter(); |
97 | } |
98 | @Override |
99 | public Adapter caseVariableCost(VariableCost object) { |
100 | return createVariableCostAdapter(); |
101 | } |
102 | @Override |
103 | public Adapter caseVariableLinkingResourceCost(VariableLinkingResourceCost object) { |
104 | return createVariableLinkingResourceCostAdapter(); |
105 | } |
106 | @Override |
107 | public Adapter caseVariableProcessingResourceCost(VariableProcessingResourceCost object) { |
108 | return createVariableProcessingResourceCostAdapter(); |
109 | } |
110 | @Override |
111 | public Adapter caseScalarFunction(ScalarFunction object) { |
112 | return createScalarFunctionAdapter(); |
113 | } |
114 | @Override |
115 | public Adapter caseCostRepository(CostRepository object) { |
116 | return createCostRepositoryAdapter(); |
117 | } |
118 | @Override |
119 | public Adapter caseComponentCostPerInstance(ComponentCostPerInstance object) { |
120 | return createComponentCostPerInstanceAdapter(); |
121 | } |
122 | @Override |
123 | public Adapter defaultCase(EObject object) { |
124 | return createEObjectAdapter(); |
125 | } |
126 | }; |
127 | |
128 | /** |
129 | * Creates an adapter for the <code>target</code>. |
130 | * <!-- begin-user-doc --> |
131 | * <!-- end-user-doc --> |
132 | * @param target the object to adapt. |
133 | * @return the adapter for the <code>target</code>. |
134 | * @generated |
135 | */ |
136 | @Override |
137 | public Adapter createAdapter(Notifier target) { |
138 | return modelSwitch.doSwitch((EObject)target); |
139 | } |
140 | |
141 | |
142 | /** |
143 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.ComponentCost <em>Component Cost</em>}'. |
144 | * <!-- begin-user-doc --> |
145 | * This default implementation returns null so that we can easily ignore cases; |
146 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
147 | * <!-- end-user-doc --> |
148 | * @return the new adapter. |
149 | * @see de.uka.ipd.sdq.pcm.cost.ComponentCost |
150 | * @generated |
151 | */ |
152 | public Adapter createComponentCostAdapter() { |
153 | return null; |
154 | } |
155 | |
156 | /** |
157 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.Cost <em>Cost</em>}'. |
158 | * <!-- begin-user-doc --> |
159 | * This default implementation returns null so that we can easily ignore cases; |
160 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
161 | * <!-- end-user-doc --> |
162 | * @return the new adapter. |
163 | * @see de.uka.ipd.sdq.pcm.cost.Cost |
164 | * @generated |
165 | */ |
166 | public Adapter createCostAdapter() { |
167 | return null; |
168 | } |
169 | |
170 | /** |
171 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.FixedLinkingResourceCost <em>Fixed Linking Resource Cost</em>}'. |
172 | * <!-- begin-user-doc --> |
173 | * This default implementation returns null so that we can easily ignore cases; |
174 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
175 | * <!-- end-user-doc --> |
176 | * @return the new adapter. |
177 | * @see de.uka.ipd.sdq.pcm.cost.FixedLinkingResourceCost |
178 | * @generated |
179 | */ |
180 | public Adapter createFixedLinkingResourceCostAdapter() { |
181 | return null; |
182 | } |
183 | |
184 | /** |
185 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.LinkingResourceCost <em>Linking Resource Cost</em>}'. |
186 | * <!-- begin-user-doc --> |
187 | * This default implementation returns null so that we can easily ignore cases; |
188 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
189 | * <!-- end-user-doc --> |
190 | * @return the new adapter. |
191 | * @see de.uka.ipd.sdq.pcm.cost.LinkingResourceCost |
192 | * @generated |
193 | */ |
194 | public Adapter createLinkingResourceCostAdapter() { |
195 | return null; |
196 | } |
197 | |
198 | /** |
199 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.FixedProcessingResourceCost <em>Fixed Processing Resource Cost</em>}'. |
200 | * <!-- begin-user-doc --> |
201 | * This default implementation returns null so that we can easily ignore cases; |
202 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
203 | * <!-- end-user-doc --> |
204 | * @return the new adapter. |
205 | * @see de.uka.ipd.sdq.pcm.cost.FixedProcessingResourceCost |
206 | * @generated |
207 | */ |
208 | public Adapter createFixedProcessingResourceCostAdapter() { |
209 | return null; |
210 | } |
211 | |
212 | /** |
213 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.ProcessingResourceCost <em>Processing Resource Cost</em>}'. |
214 | * <!-- begin-user-doc --> |
215 | * This default implementation returns null so that we can easily ignore cases; |
216 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
217 | * <!-- end-user-doc --> |
218 | * @return the new adapter. |
219 | * @see de.uka.ipd.sdq.pcm.cost.ProcessingResourceCost |
220 | * @generated |
221 | */ |
222 | public Adapter createProcessingResourceCostAdapter() { |
223 | return null; |
224 | } |
225 | |
226 | /** |
227 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.VariableCost <em>Variable Cost</em>}'. |
228 | * <!-- begin-user-doc --> |
229 | * This default implementation returns null so that we can easily ignore cases; |
230 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
231 | * <!-- end-user-doc --> |
232 | * @return the new adapter. |
233 | * @see de.uka.ipd.sdq.pcm.cost.VariableCost |
234 | * @generated |
235 | */ |
236 | public Adapter createVariableCostAdapter() { |
237 | return null; |
238 | } |
239 | |
240 | /** |
241 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.VariableLinkingResourceCost <em>Variable Linking Resource Cost</em>}'. |
242 | * <!-- begin-user-doc --> |
243 | * This default implementation returns null so that we can easily ignore cases; |
244 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
245 | * <!-- end-user-doc --> |
246 | * @return the new adapter. |
247 | * @see de.uka.ipd.sdq.pcm.cost.VariableLinkingResourceCost |
248 | * @generated |
249 | */ |
250 | public Adapter createVariableLinkingResourceCostAdapter() { |
251 | return null; |
252 | } |
253 | |
254 | /** |
255 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.VariableProcessingResourceCost <em>Variable Processing Resource Cost</em>}'. |
256 | * <!-- begin-user-doc --> |
257 | * This default implementation returns null so that we can easily ignore cases; |
258 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
259 | * <!-- end-user-doc --> |
260 | * @return the new adapter. |
261 | * @see de.uka.ipd.sdq.pcm.cost.VariableProcessingResourceCost |
262 | * @generated |
263 | */ |
264 | public Adapter createVariableProcessingResourceCostAdapter() { |
265 | return null; |
266 | } |
267 | |
268 | /** |
269 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.ScalarFunction <em>Scalar Function</em>}'. |
270 | * <!-- begin-user-doc --> |
271 | * This default implementation returns null so that we can easily ignore cases; |
272 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
273 | * <!-- end-user-doc --> |
274 | * @return the new adapter. |
275 | * @see de.uka.ipd.sdq.pcm.cost.ScalarFunction |
276 | * @generated |
277 | */ |
278 | public Adapter createScalarFunctionAdapter() { |
279 | return null; |
280 | } |
281 | |
282 | /** |
283 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.CostRepository <em>Cost Repository</em>}'. |
284 | * <!-- begin-user-doc --> |
285 | * This default implementation returns null so that we can easily ignore cases; |
286 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
287 | * <!-- end-user-doc --> |
288 | * @return the new adapter. |
289 | * @see de.uka.ipd.sdq.pcm.cost.CostRepository |
290 | * @generated |
291 | */ |
292 | public Adapter createCostRepositoryAdapter() { |
293 | return null; |
294 | } |
295 | |
296 | /** |
297 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.cost.ComponentCostPerInstance <em>Component Cost Per Instance</em>}'. |
298 | * <!-- begin-user-doc --> |
299 | * This default implementation returns null so that we can easily ignore cases; |
300 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
301 | * <!-- end-user-doc --> |
302 | * @return the new adapter. |
303 | * @see de.uka.ipd.sdq.pcm.cost.ComponentCostPerInstance |
304 | * @generated |
305 | */ |
306 | public Adapter createComponentCostPerInstanceAdapter() { |
307 | return null; |
308 | } |
309 | |
310 | /** |
311 | * Creates a new adapter for the default case. |
312 | * <!-- begin-user-doc --> |
313 | * This default implementation returns null. |
314 | * <!-- end-user-doc --> |
315 | * @return the new adapter. |
316 | * @generated |
317 | */ |
318 | public Adapter createEObjectAdapter() { |
319 | return null; |
320 | } |
321 | |
322 | } //costAdapterFactory |