1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.pipesandfilters.util; |
8 | |
9 | import de.uka.ipd.sdq.identifier.Identifier; |
10 | |
11 | import de.uka.ipd.sdq.pipesandfilters.*; |
12 | |
13 | import org.eclipse.emf.common.notify.Adapter; |
14 | import org.eclipse.emf.common.notify.Notifier; |
15 | |
16 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
17 | |
18 | import org.eclipse.emf.ecore.EObject; |
19 | |
20 | /** |
21 | * <!-- begin-user-doc --> |
22 | * The <b>Adapter Factory</b> for the model. |
23 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
24 | * <!-- end-user-doc --> |
25 | * @see de.uka.ipd.sdq.pipesandfilters.pipesandfiltersPackage |
26 | * @generated |
27 | */ |
28 | public class pipesandfiltersAdapterFactory extends AdapterFactoryImpl { |
29 | /** |
30 | * The cached model package. |
31 | * <!-- begin-user-doc --> |
32 | * <!-- end-user-doc --> |
33 | * @generated |
34 | */ |
35 | protected static pipesandfiltersPackage modelPackage; |
36 | |
37 | /** |
38 | * Creates an instance of the adapter factory. |
39 | * <!-- begin-user-doc --> |
40 | * <!-- end-user-doc --> |
41 | * @generated |
42 | */ |
43 | public pipesandfiltersAdapterFactory() { |
44 | if (modelPackage == null) { |
45 | modelPackage = pipesandfiltersPackage.eINSTANCE; |
46 | } |
47 | } |
48 | |
49 | /** |
50 | * Returns whether this factory is applicable for the type of the object. |
51 | * <!-- begin-user-doc --> |
52 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
53 | * <!-- end-user-doc --> |
54 | * @return whether this factory is applicable for the type of the object. |
55 | * @generated |
56 | */ |
57 | @Override |
58 | public boolean isFactoryForType(Object object) { |
59 | if (object == modelPackage) { |
60 | return true; |
61 | } |
62 | if (object instanceof EObject) { |
63 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
64 | } |
65 | return false; |
66 | } |
67 | |
68 | /** |
69 | * The switch that delegates to the <code>createXXX</code> methods. |
70 | * <!-- begin-user-doc --> |
71 | * <!-- end-user-doc --> |
72 | * @generated |
73 | */ |
74 | protected pipesandfiltersSwitch<Adapter> modelSwitch = |
75 | new pipesandfiltersSwitch<Adapter>() { |
76 | @Override |
77 | public Adapter casePipeElement(PipeElement object) { |
78 | return createPipeElementAdapter(); |
79 | } |
80 | @Override |
81 | public Adapter caseFilter(Filter object) { |
82 | return createFilterAdapter(); |
83 | } |
84 | @Override |
85 | public Adapter caseRecorder(Recorder object) { |
86 | return createRecorderAdapter(); |
87 | } |
88 | @Override |
89 | public Adapter caseAggregationRecorder(AggregationRecorder object) { |
90 | return createAggregationRecorderAdapter(); |
91 | } |
92 | @Override |
93 | public Adapter caseWriter(Writer object) { |
94 | return createWriterAdapter(); |
95 | } |
96 | @Override |
97 | public Adapter caseRawRecorder(RawRecorder object) { |
98 | return createRawRecorderAdapter(); |
99 | } |
100 | @Override |
101 | public Adapter caseSimpleWarmUpFilter(SimpleWarmUpFilter object) { |
102 | return createSimpleWarmUpFilterAdapter(); |
103 | } |
104 | @Override |
105 | public Adapter caseSlidingMeanRecorder(SlidingMeanRecorder object) { |
106 | return createSlidingMeanRecorderAdapter(); |
107 | } |
108 | @Override |
109 | public Adapter caseEDP2Writer(EDP2Writer object) { |
110 | return createEDP2WriterAdapter(); |
111 | } |
112 | @Override |
113 | public Adapter casePipesAndFiltersRepository(PipesAndFiltersRepository object) { |
114 | return createPipesAndFiltersRepositoryAdapter(); |
115 | } |
116 | @Override |
117 | public Adapter caseIdentifier(Identifier object) { |
118 | return createIdentifierAdapter(); |
119 | } |
120 | @Override |
121 | public Adapter defaultCase(EObject object) { |
122 | return createEObjectAdapter(); |
123 | } |
124 | }; |
125 | |
126 | /** |
127 | * Creates an adapter for the <code>target</code>. |
128 | * <!-- begin-user-doc --> |
129 | * <!-- end-user-doc --> |
130 | * @param target the object to adapt. |
131 | * @return the adapter for the <code>target</code>. |
132 | * @generated |
133 | */ |
134 | @Override |
135 | public Adapter createAdapter(Notifier target) { |
136 | return modelSwitch.doSwitch((EObject)target); |
137 | } |
138 | |
139 | |
140 | /** |
141 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pipesandfilters.PipeElement <em>Pipe Element</em>}'. |
142 | * <!-- begin-user-doc --> |
143 | * This default implementation returns null so that we can easily ignore cases; |
144 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
145 | * <!-- end-user-doc --> |
146 | * @return the new adapter. |
147 | * @see de.uka.ipd.sdq.pipesandfilters.PipeElement |
148 | * @generated |
149 | */ |
150 | public Adapter createPipeElementAdapter() { |
151 | return null; |
152 | } |
153 | |
154 | /** |
155 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pipesandfilters.Filter <em>Filter</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.pipesandfilters.Filter |
162 | * @generated |
163 | */ |
164 | public Adapter createFilterAdapter() { |
165 | return null; |
166 | } |
167 | |
168 | /** |
169 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pipesandfilters.Recorder <em>Recorder</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.pipesandfilters.Recorder |
176 | * @generated |
177 | */ |
178 | public Adapter createRecorderAdapter() { |
179 | return null; |
180 | } |
181 | |
182 | /** |
183 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pipesandfilters.AggregationRecorder <em>Aggregation Recorder</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.pipesandfilters.AggregationRecorder |
190 | * @generated |
191 | */ |
192 | public Adapter createAggregationRecorderAdapter() { |
193 | return null; |
194 | } |
195 | |
196 | /** |
197 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pipesandfilters.Writer <em>Writer</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.pipesandfilters.Writer |
204 | * @generated |
205 | */ |
206 | public Adapter createWriterAdapter() { |
207 | return null; |
208 | } |
209 | |
210 | /** |
211 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pipesandfilters.RawRecorder <em>Raw Recorder</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.pipesandfilters.RawRecorder |
218 | * @generated |
219 | */ |
220 | public Adapter createRawRecorderAdapter() { |
221 | return null; |
222 | } |
223 | |
224 | /** |
225 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pipesandfilters.SimpleWarmUpFilter <em>Simple Warm Up Filter</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.pipesandfilters.SimpleWarmUpFilter |
232 | * @generated |
233 | */ |
234 | public Adapter createSimpleWarmUpFilterAdapter() { |
235 | return null; |
236 | } |
237 | |
238 | /** |
239 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pipesandfilters.SlidingMeanRecorder <em>Sliding Mean Recorder</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.pipesandfilters.SlidingMeanRecorder |
246 | * @generated |
247 | */ |
248 | public Adapter createSlidingMeanRecorderAdapter() { |
249 | return null; |
250 | } |
251 | |
252 | /** |
253 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pipesandfilters.EDP2Writer <em>EDP2 Writer</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.pipesandfilters.EDP2Writer |
260 | * @generated |
261 | */ |
262 | public Adapter createEDP2WriterAdapter() { |
263 | return null; |
264 | } |
265 | |
266 | /** |
267 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pipesandfilters.PipesAndFiltersRepository <em>Pipes And Filters Repository</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.pipesandfilters.PipesAndFiltersRepository |
274 | * @generated |
275 | */ |
276 | public Adapter createPipesAndFiltersRepositoryAdapter() { |
277 | return null; |
278 | } |
279 | |
280 | /** |
281 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</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.identifier.Identifier |
288 | * @generated |
289 | */ |
290 | public Adapter createIdentifierAdapter() { |
291 | return null; |
292 | } |
293 | |
294 | /** |
295 | * Creates a new adapter for the default case. |
296 | * <!-- begin-user-doc --> |
297 | * This default implementation returns null. |
298 | * <!-- end-user-doc --> |
299 | * @return the new adapter. |
300 | * @generated |
301 | */ |
302 | public Adapter createEObjectAdapter() { |
303 | return null; |
304 | } |
305 | |
306 | } //pipesandfiltersAdapterFactory |