KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > dods > editor > Doml > util > DomlAdapterFactory


1 /**
2  * <copyright>
3  * </copyright>
4  *
5  * $Id$
6  */

7 package org.enhydra.dods.editor.Doml.util;
8
9 import org.eclipse.emf.common.notify.Adapter;
10 import org.eclipse.emf.common.notify.Notifier;
11
12 import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
13
14 import org.eclipse.emf.ecore.EObject;
15
16 import org.enhydra.dods.editor.Doml.*;
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 org.enhydra.dods.editor.Doml.DomlPackage
24  * @generated
25  */

26 public class DomlAdapterFactory extends AdapterFactoryImpl {
27     /**
28      * The cached model package.
29      * <!-- begin-user-doc -->
30      * <!-- end-user-doc -->
31      * @generated
32      */

33     protected static DomlPackage modelPackage;
34
35     /**
36      * Creates an instance of the adapter factory.
37      * <!-- begin-user-doc -->
38      * <!-- end-user-doc -->
39      * @generated
40      */

41     public DomlAdapterFactory() {
42         if (modelPackage == null) {
43             modelPackage = DomlPackage.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     public boolean isFactoryForType(Object JavaDoc object) {
56         if (object == modelPackage) {
57             return true;
58         }
59         if (object instanceof EObject) {
60             return ((EObject)object).eClass().getEPackage() == modelPackage;
61         }
62         return false;
63     }
64
65     /**
66      * The switch the delegates to the <code>createXXX</code> methods.
67      * <!-- begin-user-doc -->
68      * <!-- end-user-doc -->
69      * @generated
70      */

71     protected DomlSwitch modelSwitch =
72         new DomlSwitch() {
73             public Object JavaDoc caseColumnType(ColumnType object) {
74                 return createColumnTypeAdapter();
75             }
76             public Object JavaDoc caseDatabaseType(DatabaseType object) {
77                 return createDatabaseTypeAdapter();
78             }
79             public Object JavaDoc caseDocumentRoot(DocumentRoot object) {
80                 return createDocumentRootAdapter();
81             }
82             public Object JavaDoc caseDomlType(DomlType object) {
83                 return createDomlTypeAdapter();
84             }
85             public Object JavaDoc caseIndexColumnType(IndexColumnType object) {
86                 return createIndexColumnTypeAdapter();
87             }
88             public Object JavaDoc caseIndexType(IndexType object) {
89                 return createIndexTypeAdapter();
90             }
91             public Object JavaDoc casePackageType(PackageType object) {
92                 return createPackageTypeAdapter();
93             }
94             public Object JavaDoc caseReferenceObjectType(ReferenceObjectType object) {
95                 return createReferenceObjectTypeAdapter();
96             }
97             public Object JavaDoc caseTableType(TableType object) {
98                 return createTableTypeAdapter();
99             }
100             public Object JavaDoc caseTypeType(TypeType object) {
101                 return createTypeTypeAdapter();
102             }
103             public Object JavaDoc defaultCase(EObject object) {
104                 return createEObjectAdapter();
105             }
106         };
107
108     /**
109      * Creates an adapter for the <code>target</code>.
110      * <!-- begin-user-doc -->
111      * <!-- end-user-doc -->
112      * @param target the object to adapt.
113      * @return the adapter for the <code>target</code>.
114      * @generated
115      */

116     public Adapter createAdapter(Notifier target) {
117         return (Adapter)modelSwitch.doSwitch((EObject)target);
118     }
119
120
121     /**
122      * Creates a new adapter for an object of class '{@link org.enhydra.dods.editor.Doml.ColumnType <em>Column Type</em>}'.
123      * <!-- begin-user-doc -->
124      * This default implementation returns null so that we can easily ignore cases;
125      * it's useful to ignore a case when inheritance will catch all the cases anyway.
126      * <!-- end-user-doc -->
127      * @return the new adapter.
128      * @see org.enhydra.dods.editor.Doml.ColumnType
129      * @generated
130      */

131     public Adapter createColumnTypeAdapter() {
132         return null;
133     }
134
135     /**
136      * Creates a new adapter for an object of class '{@link org.enhydra.dods.editor.Doml.DatabaseType <em>Database Type</em>}'.
137      * <!-- begin-user-doc -->
138      * This default implementation returns null so that we can easily ignore cases;
139      * it's useful to ignore a case when inheritance will catch all the cases anyway.
140      * <!-- end-user-doc -->
141      * @return the new adapter.
142      * @see org.enhydra.dods.editor.Doml.DatabaseType
143      * @generated
144      */

145     public Adapter createDatabaseTypeAdapter() {
146         return null;
147     }
148
149     /**
150      * Creates a new adapter for an object of class '{@link org.enhydra.dods.editor.Doml.DocumentRoot <em>Document Root</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.enhydra.dods.editor.Doml.DocumentRoot
157      * @generated
158      */

159     public Adapter createDocumentRootAdapter() {
160         return null;
161     }
162
163     /**
164      * Creates a new adapter for an object of class '{@link org.enhydra.dods.editor.Doml.DomlType <em>Type</em>}'.
165      * <!-- begin-user-doc -->
166      * This default implementation returns null so that we can easily ignore cases;
167      * it's useful to ignore a case when inheritance will catch all the cases anyway.
168      * <!-- end-user-doc -->
169      * @return the new adapter.
170      * @see org.enhydra.dods.editor.Doml.DomlType
171      * @generated
172      */

173     public Adapter createDomlTypeAdapter() {
174         return null;
175     }
176
177     /**
178      * Creates a new adapter for an object of class '{@link org.enhydra.dods.editor.Doml.IndexColumnType <em>Index Column Type</em>}'.
179      * <!-- begin-user-doc -->
180      * This default implementation returns null so that we can easily ignore cases;
181      * it's useful to ignore a case when inheritance will catch all the cases anyway.
182      * <!-- end-user-doc -->
183      * @return the new adapter.
184      * @see org.enhydra.dods.editor.Doml.IndexColumnType
185      * @generated
186      */

187     public Adapter createIndexColumnTypeAdapter() {
188         return null;
189     }
190
191     /**
192      * Creates a new adapter for an object of class '{@link org.enhydra.dods.editor.Doml.IndexType <em>Index Type</em>}'.
193      * <!-- begin-user-doc -->
194      * This default implementation returns null so that we can easily ignore cases;
195      * it's useful to ignore a case when inheritance will catch all the cases anyway.
196      * <!-- end-user-doc -->
197      * @return the new adapter.
198      * @see org.enhydra.dods.editor.Doml.IndexType
199      * @generated
200      */

201     public Adapter createIndexTypeAdapter() {
202         return null;
203     }
204
205     /**
206      * Creates a new adapter for an object of class '{@link org.enhydra.dods.editor.Doml.PackageType <em>Package Type</em>}'.
207      * <!-- begin-user-doc -->
208      * This default implementation returns null so that we can easily ignore cases;
209      * it's useful to ignore a case when inheritance will catch all the cases anyway.
210      * <!-- end-user-doc -->
211      * @return the new adapter.
212      * @see org.enhydra.dods.editor.Doml.PackageType
213      * @generated
214      */

215     public Adapter createPackageTypeAdapter() {
216         return null;
217     }
218
219     /**
220      * Creates a new adapter for an object of class '{@link org.enhydra.dods.editor.Doml.ReferenceObjectType <em>Reference Object Type</em>}'.
221      * <!-- begin-user-doc -->
222      * This default implementation returns null so that we can easily ignore cases;
223      * it's useful to ignore a case when inheritance will catch all the cases anyway.
224      * <!-- end-user-doc -->
225      * @return the new adapter.
226      * @see org.enhydra.dods.editor.Doml.ReferenceObjectType
227      * @generated
228      */

229     public Adapter createReferenceObjectTypeAdapter() {
230         return null;
231     }
232
233     /**
234      * Creates a new adapter for an object of class '{@link org.enhydra.dods.editor.Doml.TableType <em>Table Type</em>}'.
235      * <!-- begin-user-doc -->
236      * This default implementation returns null so that we can easily ignore cases;
237      * it's useful to ignore a case when inheritance will catch all the cases anyway.
238      * <!-- end-user-doc -->
239      * @return the new adapter.
240      * @see org.enhydra.dods.editor.Doml.TableType
241      * @generated
242      */

243     public Adapter createTableTypeAdapter() {
244         return null;
245     }
246
247     /**
248      * Creates a new adapter for an object of class '{@link org.enhydra.dods.editor.Doml.TypeType <em>Type Type</em>}'.
249      * <!-- begin-user-doc -->
250      * This default implementation returns null so that we can easily ignore cases;
251      * it's useful to ignore a case when inheritance will catch all the cases anyway.
252      * <!-- end-user-doc -->
253      * @return the new adapter.
254      * @see org.enhydra.dods.editor.Doml.TypeType
255      * @generated
256      */

257     public Adapter createTypeTypeAdapter() {
258         return null;
259     }
260
261     /**
262      * Creates a new adapter for the default case.
263      * <!-- begin-user-doc -->
264      * This default implementation returns null.
265      * <!-- end-user-doc -->
266      * @return the new adapter.
267      * @generated
268      */

269     public Adapter createEObjectAdapter() {
270         return null;
271     }
272
273 } //DomlAdapterFactory
274
Popular Tags