1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package edu.kit.ipd.sdq.completionfeaturemodel.util; |
8 | |
9 | import org.eclipse.emf.common.notify.Adapter; |
10 | import org.eclipse.emf.common.notify.Notifier; |
11 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
12 | import org.eclipse.emf.ecore.EObject; |
13 | |
14 | import de.uka.ipd.sdq.featuremodel.ChildRelation; |
15 | import de.uka.ipd.sdq.featuremodel.Feature; |
16 | import de.uka.ipd.sdq.featuremodel.FeatureDiagram; |
17 | import de.uka.ipd.sdq.featuremodel.FeatureGroup; |
18 | import de.uka.ipd.sdq.featuremodel.NamedElement; |
19 | import de.uka.ipd.sdq.featuremodel.Simple; |
20 | import de.uka.ipd.sdq.identifier.Identifier; |
21 | import edu.kit.ipd.sdq.completionfeaturemodel.*; |
22 | import edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeature; |
23 | import edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeatureDiagram; |
24 | import edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeatureGroup; |
25 | import edu.kit.ipd.sdq.completionfeaturemodel.CompletionSimple; |
26 | import edu.kit.ipd.sdq.completionfeaturemodel.DisambiguationRule; |
27 | import edu.kit.ipd.sdq.completionfeaturemodel.completionfeaturemodelPackage; |
28 | |
29 | /** |
30 | * <!-- begin-user-doc --> |
31 | * The <b>Adapter Factory</b> for the model. |
32 | * It provides an adapter <code>createXXX</code> method for each class of the model. |
33 | * <!-- end-user-doc --> |
34 | * @see edu.kit.ipd.sdq.completionfeaturemodel.completionfeaturemodelPackage |
35 | * @generated |
36 | */ |
37 | public class completionfeaturemodelAdapterFactory extends AdapterFactoryImpl { |
38 | /** |
39 | * The cached model package. |
40 | * <!-- begin-user-doc --> |
41 | * <!-- end-user-doc --> |
42 | * @generated |
43 | */ |
44 | protected static completionfeaturemodelPackage modelPackage; |
45 | |
46 | /** |
47 | * Creates an instance of the adapter factory. |
48 | * <!-- begin-user-doc --> |
49 | * <!-- end-user-doc --> |
50 | * @generated |
51 | */ |
52 | public completionfeaturemodelAdapterFactory() { |
53 | if (modelPackage == null) { |
54 | modelPackage = completionfeaturemodelPackage.eINSTANCE; |
55 | } |
56 | } |
57 | |
58 | /** |
59 | * Returns whether this factory is applicable for the type of the object. |
60 | * <!-- begin-user-doc --> |
61 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. |
62 | * <!-- end-user-doc --> |
63 | * @return whether this factory is applicable for the type of the object. |
64 | * @generated |
65 | */ |
66 | @Override |
67 | public boolean isFactoryForType(Object object) { |
68 | if (object == modelPackage) { |
69 | return true; |
70 | } |
71 | if (object instanceof EObject) { |
72 | return ((EObject)object).eClass().getEPackage() == modelPackage; |
73 | } |
74 | return false; |
75 | } |
76 | |
77 | /** |
78 | * The switch that delegates to the <code>createXXX</code> methods. |
79 | * <!-- begin-user-doc --> |
80 | * <!-- end-user-doc --> |
81 | * @generated |
82 | */ |
83 | protected completionfeaturemodelSwitch<Adapter> modelSwitch = |
84 | new completionfeaturemodelSwitch<Adapter>() { |
85 | @Override |
86 | public Adapter caseCompletionFeature(CompletionFeature object) { |
87 | return createCompletionFeatureAdapter(); |
88 | } |
89 | @Override |
90 | public Adapter caseDisambiguationRule(DisambiguationRule object) { |
91 | return createDisambiguationRuleAdapter(); |
92 | } |
93 | @Override |
94 | public Adapter caseCompletionFeatureDiagram(CompletionFeatureDiagram object) { |
95 | return createCompletionFeatureDiagramAdapter(); |
96 | } |
97 | @Override |
98 | public Adapter caseCompletionSimple(CompletionSimple object) { |
99 | return createCompletionSimpleAdapter(); |
100 | } |
101 | @Override |
102 | public Adapter caseCompletionFeatureGroup(CompletionFeatureGroup object) { |
103 | return createCompletionFeatureGroupAdapter(); |
104 | } |
105 | @Override |
106 | public Adapter caseIdentifier(Identifier object) { |
107 | return createIdentifierAdapter(); |
108 | } |
109 | @Override |
110 | public Adapter caseNamedElement(NamedElement object) { |
111 | return createNamedElementAdapter(); |
112 | } |
113 | @Override |
114 | public Adapter caseFeature(Feature object) { |
115 | return createFeatureAdapter(); |
116 | } |
117 | @Override |
118 | public Adapter caseFeatureDiagram(FeatureDiagram object) { |
119 | return createFeatureDiagramAdapter(); |
120 | } |
121 | @Override |
122 | public Adapter caseChildRelation(ChildRelation object) { |
123 | return createChildRelationAdapter(); |
124 | } |
125 | @Override |
126 | public Adapter caseSimple(Simple object) { |
127 | return createSimpleAdapter(); |
128 | } |
129 | @Override |
130 | public Adapter caseFeatureGroup(FeatureGroup object) { |
131 | return createFeatureGroupAdapter(); |
132 | } |
133 | @Override |
134 | public Adapter defaultCase(EObject object) { |
135 | return createEObjectAdapter(); |
136 | } |
137 | }; |
138 | |
139 | /** |
140 | * Creates an adapter for the <code>target</code>. |
141 | * <!-- begin-user-doc --> |
142 | * <!-- end-user-doc --> |
143 | * @param target the object to adapt. |
144 | * @return the adapter for the <code>target</code>. |
145 | * @generated |
146 | */ |
147 | @Override |
148 | public Adapter createAdapter(Notifier target) { |
149 | return modelSwitch.doSwitch((EObject)target); |
150 | } |
151 | |
152 | |
153 | /** |
154 | * Creates a new adapter for an object of class '{@link edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeature <em>Completion Feature</em>}'. |
155 | * <!-- begin-user-doc --> |
156 | * This default implementation returns null so that we can easily ignore cases; |
157 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
158 | * <!-- end-user-doc --> |
159 | * @return the new adapter. |
160 | * @see edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeature |
161 | * @generated |
162 | */ |
163 | public Adapter createCompletionFeatureAdapter() { |
164 | return null; |
165 | } |
166 | |
167 | /** |
168 | * Creates a new adapter for an object of class '{@link edu.kit.ipd.sdq.completionfeaturemodel.DisambiguationRule <em>Disambiguation Rule</em>}'. |
169 | * <!-- begin-user-doc --> |
170 | * This default implementation returns null so that we can easily ignore cases; |
171 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
172 | * <!-- end-user-doc --> |
173 | * @return the new adapter. |
174 | * @see edu.kit.ipd.sdq.completionfeaturemodel.DisambiguationRule |
175 | * @generated |
176 | */ |
177 | public Adapter createDisambiguationRuleAdapter() { |
178 | return null; |
179 | } |
180 | |
181 | /** |
182 | * Creates a new adapter for an object of class '{@link edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeatureDiagram <em>Completion Feature Diagram</em>}'. |
183 | * <!-- begin-user-doc --> |
184 | * This default implementation returns null so that we can easily ignore cases; |
185 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
186 | * <!-- end-user-doc --> |
187 | * @return the new adapter. |
188 | * @see edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeatureDiagram |
189 | * @generated |
190 | */ |
191 | public Adapter createCompletionFeatureDiagramAdapter() { |
192 | return null; |
193 | } |
194 | |
195 | /** |
196 | * Creates a new adapter for an object of class '{@link edu.kit.ipd.sdq.completionfeaturemodel.CompletionSimple <em>Completion Simple</em>}'. |
197 | * <!-- begin-user-doc --> |
198 | * This default implementation returns null so that we can easily ignore cases; |
199 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
200 | * <!-- end-user-doc --> |
201 | * @return the new adapter. |
202 | * @see edu.kit.ipd.sdq.completionfeaturemodel.CompletionSimple |
203 | * @generated |
204 | */ |
205 | public Adapter createCompletionSimpleAdapter() { |
206 | return null; |
207 | } |
208 | |
209 | /** |
210 | * Creates a new adapter for an object of class '{@link edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeatureGroup <em>Completion Feature Group</em>}'. |
211 | * <!-- begin-user-doc --> |
212 | * This default implementation returns null so that we can easily ignore cases; |
213 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
214 | * <!-- end-user-doc --> |
215 | * @return the new adapter. |
216 | * @see edu.kit.ipd.sdq.completionfeaturemodel.CompletionFeatureGroup |
217 | * @generated |
218 | */ |
219 | public Adapter createCompletionFeatureGroupAdapter() { |
220 | return null; |
221 | } |
222 | |
223 | /** |
224 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.identifier.Identifier <em>Identifier</em>}'. |
225 | * <!-- begin-user-doc --> |
226 | * This default implementation returns null so that we can easily ignore cases; |
227 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
228 | * <!-- end-user-doc --> |
229 | * @return the new adapter. |
230 | * @see de.uka.ipd.sdq.identifier.Identifier |
231 | * @generated |
232 | */ |
233 | public Adapter createIdentifierAdapter() { |
234 | return null; |
235 | } |
236 | |
237 | /** |
238 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.NamedElement <em>Named Element</em>}'. |
239 | * <!-- begin-user-doc --> |
240 | * This default implementation returns null so that we can easily ignore cases; |
241 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
242 | * <!-- end-user-doc --> |
243 | * @return the new adapter. |
244 | * @see de.uka.ipd.sdq.featuremodel.NamedElement |
245 | * @generated |
246 | */ |
247 | public Adapter createNamedElementAdapter() { |
248 | return null; |
249 | } |
250 | |
251 | /** |
252 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.Feature <em>Feature</em>}'. |
253 | * <!-- begin-user-doc --> |
254 | * This default implementation returns null so that we can easily ignore cases; |
255 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
256 | * <!-- end-user-doc --> |
257 | * @return the new adapter. |
258 | * @see de.uka.ipd.sdq.featuremodel.Feature |
259 | * @generated |
260 | */ |
261 | public Adapter createFeatureAdapter() { |
262 | return null; |
263 | } |
264 | |
265 | /** |
266 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.FeatureDiagram <em>Feature Diagram</em>}'. |
267 | * <!-- begin-user-doc --> |
268 | * This default implementation returns null so that we can easily ignore cases; |
269 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
270 | * <!-- end-user-doc --> |
271 | * @return the new adapter. |
272 | * @see de.uka.ipd.sdq.featuremodel.FeatureDiagram |
273 | * @generated |
274 | */ |
275 | public Adapter createFeatureDiagramAdapter() { |
276 | return null; |
277 | } |
278 | |
279 | /** |
280 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.ChildRelation <em>Child Relation</em>}'. |
281 | * <!-- begin-user-doc --> |
282 | * This default implementation returns null so that we can easily ignore cases; |
283 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
284 | * <!-- end-user-doc --> |
285 | * @return the new adapter. |
286 | * @see de.uka.ipd.sdq.featuremodel.ChildRelation |
287 | * @generated |
288 | */ |
289 | public Adapter createChildRelationAdapter() { |
290 | return null; |
291 | } |
292 | |
293 | /** |
294 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.Simple <em>Simple</em>}'. |
295 | * <!-- begin-user-doc --> |
296 | * This default implementation returns null so that we can easily ignore cases; |
297 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
298 | * <!-- end-user-doc --> |
299 | * @return the new adapter. |
300 | * @see de.uka.ipd.sdq.featuremodel.Simple |
301 | * @generated |
302 | */ |
303 | public Adapter createSimpleAdapter() { |
304 | return null; |
305 | } |
306 | |
307 | /** |
308 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.featuremodel.FeatureGroup <em>Feature Group</em>}'. |
309 | * <!-- begin-user-doc --> |
310 | * This default implementation returns null so that we can easily ignore cases; |
311 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
312 | * <!-- end-user-doc --> |
313 | * @return the new adapter. |
314 | * @see de.uka.ipd.sdq.featuremodel.FeatureGroup |
315 | * @generated |
316 | */ |
317 | public Adapter createFeatureGroupAdapter() { |
318 | return null; |
319 | } |
320 | |
321 | /** |
322 | * Creates a new adapter for the default case. |
323 | * <!-- begin-user-doc --> |
324 | * This default implementation returns null. |
325 | * <!-- end-user-doc --> |
326 | * @return the new adapter. |
327 | * @generated |
328 | */ |
329 | public Adapter createEObjectAdapter() { |
330 | return null; |
331 | } |
332 | |
333 | } //completionfeaturemodelAdapterFactory |