Modidy a package name of nemo
[nemo.git] / nemo-tools / eclipse-plugin / nemo-editor / org.opendaylight.nemo.tool.eclipse.plugin.editor / src-gen / org / opendaylight / nemo / tool / eclipse / plugin / editor / util / EditorAdapterFactory.java
1 /**
2  */
3 package org.opendaylight.nemo.tool.eclipse.plugin.editor.util;
4
5 import org.eclipse.emf.common.notify.Adapter;
6 import org.eclipse.emf.common.notify.Notifier;
7
8 import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
9
10 import org.eclipse.emf.ecore.EObject;
11
12 import org.opendaylight.nemo.tool.eclipse.plugin.editor.*;
13
14 /**
15  * <!-- begin-user-doc -->
16  * The <b>Adapter Factory</b> for the model.
17  * It provides an adapter <code>createXXX</code> method for each class of the model.
18  * <!-- end-user-doc -->
19  * @see org.opendaylight.nemo.tool.eclipse.plugin.editor.EditorPackage
20  * @generated
21  */
22 public class EditorAdapterFactory extends AdapterFactoryImpl
23 {
24   /**
25    * The cached model package.
26    * <!-- begin-user-doc -->
27    * <!-- end-user-doc -->
28    * @generated
29    */
30   protected static EditorPackage modelPackage;
31
32   /**
33    * Creates an instance of the adapter factory.
34    * <!-- begin-user-doc -->
35    * <!-- end-user-doc -->
36    * @generated
37    */
38   public EditorAdapterFactory()
39   {
40     if (modelPackage == null)
41     {
42       modelPackage = EditorPackage.eINSTANCE;
43     }
44   }
45
46   /**
47    * Returns whether this factory is applicable for the type of the object.
48    * <!-- begin-user-doc -->
49    * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
50    * <!-- end-user-doc -->
51    * @return whether this factory is applicable for the type of the object.
52    * @generated
53    */
54   @Override
55   public boolean isFactoryForType(Object object)
56   {
57     if (object == modelPackage)
58     {
59       return true;
60     }
61     if (object instanceof EObject)
62     {
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 EditorSwitch<Adapter> modelSwitch =
75     new EditorSwitch<Adapter>()
76     {
77       @Override
78       public Adapter caseModel(Model object)
79       {
80         return createModelAdapter();
81       }
82       @Override
83       public Adapter caseSentence(Sentence object)
84       {
85         return createSentenceAdapter();
86       }
87       @Override
88       public Adapter caseNode(Node object)
89       {
90         return createNodeAdapter();
91       }
92       @Override
93       public Adapter caseNodeModel(NodeModel object)
94       {
95         return createNodeModelAdapter();
96       }
97       @Override
98       public Adapter caseNodeOperating(NodeOperating object)
99       {
100         return createNodeOperatingAdapter();
101       }
102       @Override
103       public Adapter caseConnection(Connection object)
104       {
105         return createConnectionAdapter();
106       }
107       @Override
108       public Adapter caseConnectionUpdate(ConnectionUpdate object)
109       {
110         return createConnectionUpdateAdapter();
111       }
112       @Override
113       public Adapter caseFlow(Flow object)
114       {
115         return createFlowAdapter();
116       }
117       @Override
118       public Adapter caseFlowUpdate(FlowUpdate object)
119       {
120         return createFlowUpdateAdapter();
121       }
122       @Override
123       public Adapter caseOperation(Operation object)
124       {
125         return createOperationAdapter();
126       }
127       @Override
128       public Adapter defaultCase(EObject object)
129       {
130         return createEObjectAdapter();
131       }
132     };
133
134   /**
135    * Creates an adapter for the <code>target</code>.
136    * <!-- begin-user-doc -->
137    * <!-- end-user-doc -->
138    * @param target the object to adapt.
139    * @return the adapter for the <code>target</code>.
140    * @generated
141    */
142   @Override
143   public Adapter createAdapter(Notifier target)
144   {
145     return modelSwitch.doSwitch((EObject)target);
146   }
147
148
149   /**
150    * Creates a new adapter for an object of class '{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.Model <em>Model</em>}'.
151    * <!-- begin-user-doc -->
152    * This default implementation returns null so that we can easily ignore cases;
153    * it's useful to ignore a case when inheritance will catch all the cases anyway.
154    * <!-- end-user-doc -->
155    * @return the new adapter.
156    * @see org.opendaylight.nemo.tool.eclipse.plugin.editor.Model
157    * @generated
158    */
159   public Adapter createModelAdapter()
160   {
161     return null;
162   }
163
164   /**
165    * Creates a new adapter for an object of class '{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.Sentence <em>Sentence</em>}'.
166    * <!-- begin-user-doc -->
167    * This default implementation returns null so that we can easily ignore cases;
168    * it's useful to ignore a case when inheritance will catch all the cases anyway.
169    * <!-- end-user-doc -->
170    * @return the new adapter.
171    * @see org.opendaylight.nemo.tool.eclipse.plugin.editor.Sentence
172    * @generated
173    */
174   public Adapter createSentenceAdapter()
175   {
176     return null;
177   }
178
179   /**
180    * Creates a new adapter for an object of class '{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.Node <em>Node</em>}'.
181    * <!-- begin-user-doc -->
182    * This default implementation returns null so that we can easily ignore cases;
183    * it's useful to ignore a case when inheritance will catch all the cases anyway.
184    * <!-- end-user-doc -->
185    * @return the new adapter.
186    * @see org.opendaylight.nemo.tool.eclipse.plugin.editor.Node
187    * @generated
188    */
189   public Adapter createNodeAdapter()
190   {
191     return null;
192   }
193
194   /**
195    * Creates a new adapter for an object of class '{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.NodeModel <em>Node Model</em>}'.
196    * <!-- begin-user-doc -->
197    * This default implementation returns null so that we can easily ignore cases;
198    * it's useful to ignore a case when inheritance will catch all the cases anyway.
199    * <!-- end-user-doc -->
200    * @return the new adapter.
201    * @see org.opendaylight.nemo.tool.eclipse.plugin.editor.NodeModel
202    * @generated
203    */
204   public Adapter createNodeModelAdapter()
205   {
206     return null;
207   }
208
209   /**
210    * Creates a new adapter for an object of class '{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.NodeOperating <em>Node Operating</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 org.opendaylight.nemo.tool.eclipse.plugin.editor.NodeOperating
217    * @generated
218    */
219   public Adapter createNodeOperatingAdapter()
220   {
221     return null;
222   }
223
224   /**
225    * Creates a new adapter for an object of class '{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.Connection <em>Connection</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 org.opendaylight.nemo.tool.eclipse.plugin.editor.Connection
232    * @generated
233    */
234   public Adapter createConnectionAdapter()
235   {
236     return null;
237   }
238
239   /**
240    * Creates a new adapter for an object of class '{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.ConnectionUpdate <em>Connection Update</em>}'.
241    * <!-- begin-user-doc -->
242    * This default implementation returns null so that we can easily ignore cases;
243    * it's useful to ignore a case when inheritance will catch all the cases anyway.
244    * <!-- end-user-doc -->
245    * @return the new adapter.
246    * @see org.opendaylight.nemo.tool.eclipse.plugin.editor.ConnectionUpdate
247    * @generated
248    */
249   public Adapter createConnectionUpdateAdapter()
250   {
251     return null;
252   }
253
254   /**
255    * Creates a new adapter for an object of class '{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.Flow <em>Flow</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 org.opendaylight.nemo.tool.eclipse.plugin.editor.Flow
262    * @generated
263    */
264   public Adapter createFlowAdapter()
265   {
266     return null;
267   }
268
269   /**
270    * Creates a new adapter for an object of class '{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.FlowUpdate <em>Flow Update</em>}'.
271    * <!-- begin-user-doc -->
272    * This default implementation returns null so that we can easily ignore cases;
273    * it's useful to ignore a case when inheritance will catch all the cases anyway.
274    * <!-- end-user-doc -->
275    * @return the new adapter.
276    * @see org.opendaylight.nemo.tool.eclipse.plugin.editor.FlowUpdate
277    * @generated
278    */
279   public Adapter createFlowUpdateAdapter()
280   {
281     return null;
282   }
283
284   /**
285    * Creates a new adapter for an object of class '{@link org.opendaylight.nemo.tool.eclipse.plugin.editor.Operation <em>Operation</em>}'.
286    * <!-- begin-user-doc -->
287    * This default implementation returns null so that we can easily ignore cases;
288    * it's useful to ignore a case when inheritance will catch all the cases anyway.
289    * <!-- end-user-doc -->
290    * @return the new adapter.
291    * @see org.opendaylight.nemo.tool.eclipse.plugin.editor.Operation
292    * @generated
293    */
294   public Adapter createOperationAdapter()
295   {
296     return null;
297   }
298
299   /**
300    * Creates a new adapter for the default case.
301    * <!-- begin-user-doc -->
302    * This default implementation returns null.
303    * <!-- end-user-doc -->
304    * @return the new adapter.
305    * @generated
306    */
307   public Adapter createEObjectAdapter()
308   {
309     return null;
310   }
311
312 } //EditorAdapterFactory