1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.pcm.designdecision.GDoF.util; |
8 | |
9 | import de.uka.ipd.sdq.pcm.designdecision.GDoF.*; |
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.designdecision.GDoF.GDoFPackage |
24 | * @generated |
25 | */ |
26 | public class GDoFAdapterFactory extends AdapterFactoryImpl { |
27 | /** |
28 | * The cached model package. |
29 | * <!-- begin-user-doc --> |
30 | * <!-- end-user-doc --> |
31 | * @generated |
32 | */ |
33 | protected static GDoFPackage modelPackage; |
34 | |
35 | /** |
36 | * Creates an instance of the adapter factory. |
37 | * <!-- begin-user-doc --> |
38 | * <!-- end-user-doc --> |
39 | * @generated |
40 | */ |
41 | public GDoFAdapterFactory() { |
42 | if (modelPackage == null) { |
43 | modelPackage = GDoFPackage.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 GDoFSwitch<Adapter> modelSwitch = |
73 | new GDoFSwitch<Adapter>() { |
74 | @Override |
75 | public Adapter caseChangeableElementDescription(ChangeableElementDescription object) { |
76 | return createChangeableElementDescriptionAdapter(); |
77 | } |
78 | @Override |
79 | public Adapter caseValueRule(ValueRule object) { |
80 | return createValueRuleAdapter(); |
81 | } |
82 | @Override |
83 | public Adapter caseOCLRule(OCLRule object) { |
84 | return createOCLRuleAdapter(); |
85 | } |
86 | @Override |
87 | public Adapter caseHelperOCLDefinition(HelperOCLDefinition object) { |
88 | return createHelperOCLDefinitionAdapter(); |
89 | } |
90 | @Override |
91 | public Adapter caseStaticContextRule(StaticContextRule object) { |
92 | return createStaticContextRuleAdapter(); |
93 | } |
94 | @Override |
95 | public Adapter caseSelectionRule(SelectionRule object) { |
96 | return createSelectionRuleAdapter(); |
97 | } |
98 | @Override |
99 | public Adapter caseDoFRepository(DoFRepository object) { |
100 | return createDoFRepositoryAdapter(); |
101 | } |
102 | @Override |
103 | public Adapter caseInstanceSelectionRule(InstanceSelectionRule object) { |
104 | return createInstanceSelectionRuleAdapter(); |
105 | } |
106 | @Override |
107 | public Adapter caseStaticSelectionRule(StaticSelectionRule object) { |
108 | return createStaticSelectionRuleAdapter(); |
109 | } |
110 | @Override |
111 | public Adapter caseDegreeOfFreedom(DegreeOfFreedom object) { |
112 | return createDegreeOfFreedomAdapter(); |
113 | } |
114 | @Override |
115 | public Adapter defaultCase(EObject object) { |
116 | return createEObjectAdapter(); |
117 | } |
118 | }; |
119 | |
120 | /** |
121 | * Creates an adapter for the <code>target</code>. |
122 | * <!-- begin-user-doc --> |
123 | * <!-- end-user-doc --> |
124 | * @param target the object to adapt. |
125 | * @return the adapter for the <code>target</code>. |
126 | * @generated |
127 | */ |
128 | @Override |
129 | public Adapter createAdapter(Notifier target) { |
130 | return modelSwitch.doSwitch((EObject)target); |
131 | } |
132 | |
133 | |
134 | /** |
135 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.ChangeableElementDescription <em>Changeable Element Description</em>}'. |
136 | * <!-- begin-user-doc --> |
137 | * This default implementation returns null so that we can easily ignore cases; |
138 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
139 | * <!-- end-user-doc --> |
140 | * @return the new adapter. |
141 | * @see de.uka.ipd.sdq.pcm.designdecision.GDoF.ChangeableElementDescription |
142 | * @generated |
143 | */ |
144 | public Adapter createChangeableElementDescriptionAdapter() { |
145 | return null; |
146 | } |
147 | |
148 | /** |
149 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.ValueRule <em>Value Rule</em>}'. |
150 | * <!-- begin-user-doc --> |
151 | * This default implementation returns null so that we can easily ignore cases; |
152 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
153 | * <!-- end-user-doc --> |
154 | * @return the new adapter. |
155 | * @see de.uka.ipd.sdq.pcm.designdecision.GDoF.ValueRule |
156 | * @generated |
157 | */ |
158 | public Adapter createValueRuleAdapter() { |
159 | return null; |
160 | } |
161 | |
162 | /** |
163 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.OCLRule <em>OCL Rule</em>}'. |
164 | * <!-- begin-user-doc --> |
165 | * This default implementation returns null so that we can easily ignore cases; |
166 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
167 | * <!-- end-user-doc --> |
168 | * @return the new adapter. |
169 | * @see de.uka.ipd.sdq.pcm.designdecision.GDoF.OCLRule |
170 | * @generated |
171 | */ |
172 | public Adapter createOCLRuleAdapter() { |
173 | return null; |
174 | } |
175 | |
176 | /** |
177 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.HelperOCLDefinition <em>Helper OCL Definition</em>}'. |
178 | * <!-- begin-user-doc --> |
179 | * This default implementation returns null so that we can easily ignore cases; |
180 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
181 | * <!-- end-user-doc --> |
182 | * @return the new adapter. |
183 | * @see de.uka.ipd.sdq.pcm.designdecision.GDoF.HelperOCLDefinition |
184 | * @generated |
185 | */ |
186 | public Adapter createHelperOCLDefinitionAdapter() { |
187 | return null; |
188 | } |
189 | |
190 | /** |
191 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.StaticContextRule <em>Static Context Rule</em>}'. |
192 | * <!-- begin-user-doc --> |
193 | * This default implementation returns null so that we can easily ignore cases; |
194 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
195 | * <!-- end-user-doc --> |
196 | * @return the new adapter. |
197 | * @see de.uka.ipd.sdq.pcm.designdecision.GDoF.StaticContextRule |
198 | * @generated |
199 | */ |
200 | public Adapter createStaticContextRuleAdapter() { |
201 | return null; |
202 | } |
203 | |
204 | /** |
205 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.SelectionRule <em>Selection Rule</em>}'. |
206 | * <!-- begin-user-doc --> |
207 | * This default implementation returns null so that we can easily ignore cases; |
208 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
209 | * <!-- end-user-doc --> |
210 | * @return the new adapter. |
211 | * @see de.uka.ipd.sdq.pcm.designdecision.GDoF.SelectionRule |
212 | * @generated |
213 | */ |
214 | public Adapter createSelectionRuleAdapter() { |
215 | return null; |
216 | } |
217 | |
218 | /** |
219 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.DoFRepository <em>Do FRepository</em>}'. |
220 | * <!-- begin-user-doc --> |
221 | * This default implementation returns null so that we can easily ignore cases; |
222 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
223 | * <!-- end-user-doc --> |
224 | * @return the new adapter. |
225 | * @see de.uka.ipd.sdq.pcm.designdecision.GDoF.DoFRepository |
226 | * @generated |
227 | */ |
228 | public Adapter createDoFRepositoryAdapter() { |
229 | return null; |
230 | } |
231 | |
232 | /** |
233 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.InstanceSelectionRule <em>Instance Selection Rule</em>}'. |
234 | * <!-- begin-user-doc --> |
235 | * This default implementation returns null so that we can easily ignore cases; |
236 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
237 | * <!-- end-user-doc --> |
238 | * @return the new adapter. |
239 | * @see de.uka.ipd.sdq.pcm.designdecision.GDoF.InstanceSelectionRule |
240 | * @generated |
241 | */ |
242 | public Adapter createInstanceSelectionRuleAdapter() { |
243 | return null; |
244 | } |
245 | |
246 | /** |
247 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.StaticSelectionRule <em>Static Selection Rule</em>}'. |
248 | * <!-- begin-user-doc --> |
249 | * This default implementation returns null so that we can easily ignore cases; |
250 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
251 | * <!-- end-user-doc --> |
252 | * @return the new adapter. |
253 | * @see de.uka.ipd.sdq.pcm.designdecision.GDoF.StaticSelectionRule |
254 | * @generated |
255 | */ |
256 | public Adapter createStaticSelectionRuleAdapter() { |
257 | return null; |
258 | } |
259 | |
260 | /** |
261 | * Creates a new adapter for an object of class '{@link de.uka.ipd.sdq.pcm.designdecision.GDoF.DegreeOfFreedom <em>Degree Of Freedom</em>}'. |
262 | * <!-- begin-user-doc --> |
263 | * This default implementation returns null so that we can easily ignore cases; |
264 | * it's useful to ignore a case when inheritance will catch all the cases anyway. |
265 | * <!-- end-user-doc --> |
266 | * @return the new adapter. |
267 | * @see de.uka.ipd.sdq.pcm.designdecision.GDoF.DegreeOfFreedom |
268 | * @generated |
269 | */ |
270 | public Adapter createDegreeOfFreedomAdapter() { |
271 | return null; |
272 | } |
273 | |
274 | /** |
275 | * Creates a new adapter for the default case. |
276 | * <!-- begin-user-doc --> |
277 | * This default implementation returns null. |
278 | * <!-- end-user-doc --> |
279 | * @return the new adapter. |
280 | * @generated |
281 | */ |
282 | public Adapter createEObjectAdapter() { |
283 | return null; |
284 | } |
285 | |
286 | } //GDoFAdapterFactory |