KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Olj > provider > OljItemProviderAdapterFactory


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

7 package Olj.provider;
8
9 import Olj.util.OljAdapterFactory;
10
11 import java.util.ArrayList JavaDoc;
12 import java.util.Collection JavaDoc;
13
14 import org.eclipse.emf.common.notify.Adapter;
15 import org.eclipse.emf.common.notify.Notification;
16 import org.eclipse.emf.common.notify.Notifier;
17
18 import org.eclipse.emf.edit.provider.ChangeNotifier;
19 import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
20 import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
21 import org.eclipse.emf.edit.provider.IChangeNotifier;
22 import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
23 import org.eclipse.emf.edit.provider.IItemLabelProvider;
24 import org.eclipse.emf.edit.provider.IItemPropertySource;
25 import org.eclipse.emf.edit.provider.INotifyChangedListener;
26 import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
27 import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
28
29 /**
30  * This is the factory that is used to provide the interfaces needed to support Viewers.
31  * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
32  * The adapters also support Eclipse property sheets.
33  * Note that most of the adapters are shared among multiple instances.
34  * <!-- begin-user-doc -->
35  * <!-- end-user-doc -->
36  * @generated
37  */

38 public class OljItemProviderAdapterFactory extends OljAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier {
39     /**
40      * This keeps track of the root adapter factory that delegates to this adapter factory.
41      * <!-- begin-user-doc -->
42      * <!-- end-user-doc -->
43      * @generated
44      */

45     protected ComposedAdapterFactory parentAdapterFactory;
46
47     /**
48      * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
49      * <!-- begin-user-doc -->
50      * <!-- end-user-doc -->
51      * @generated
52      */

53     protected IChangeNotifier changeNotifier = new ChangeNotifier();
54
55     /**
56      * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
57      * <!-- begin-user-doc -->
58      * <!-- end-user-doc -->
59      * @generated
60      */

61     protected Collection JavaDoc supportedTypes = new ArrayList JavaDoc();
62
63     /**
64      * This constructs an instance.
65      * <!-- begin-user-doc -->
66      * <!-- end-user-doc -->
67      * @generated
68      */

69     public OljItemProviderAdapterFactory() {
70         supportedTypes.add(IStructuredItemContentProvider.class);
71         supportedTypes.add(ITreeItemContentProvider.class);
72         supportedTypes.add(IItemPropertySource.class);
73         supportedTypes.add(IEditingDomainItemProvider.class);
74         supportedTypes.add(IItemLabelProvider.class);
75     }
76
77     /**
78      * This keeps track of the one adapter used for all {@link Olj.ConstantColumnsType} instances.
79      * <!-- begin-user-doc -->
80      * <!-- end-user-doc -->
81      * @generated
82      */

83     protected ConstantColumnsTypeItemProvider constantColumnsTypeItemProvider;
84
85     /**
86      * This creates an adapter for a {@link Olj.ConstantColumnsType}.
87      * <!-- begin-user-doc -->
88      * <!-- end-user-doc -->
89      * @generated
90      */

91     public Adapter createConstantColumnsTypeAdapter() {
92         if (constantColumnsTypeItemProvider == null) {
93             constantColumnsTypeItemProvider = new ConstantColumnsTypeItemProvider(this);
94         }
95
96         return constantColumnsTypeItemProvider;
97     }
98
99     /**
100      * This keeps track of the one adapter used for all {@link Olj.ConstantColumnType} instances.
101      * <!-- begin-user-doc -->
102      * <!-- end-user-doc -->
103      * @generated
104      */

105     protected ConstantColumnTypeItemProvider constantColumnTypeItemProvider;
106
107     /**
108      * This creates an adapter for a {@link Olj.ConstantColumnType}.
109      * <!-- begin-user-doc -->
110      * <!-- end-user-doc -->
111      * @generated
112      */

113     public Adapter createConstantColumnTypeAdapter() {
114         if (constantColumnTypeItemProvider == null) {
115             constantColumnTypeItemProvider = new ConstantColumnTypeItemProvider(this);
116         }
117
118         return constantColumnTypeItemProvider;
119     }
120
121     /**
122      * This keeps track of the one adapter used for all {@link Olj.CopyTableType} instances.
123      * <!-- begin-user-doc -->
124      * <!-- end-user-doc -->
125      * @generated
126      */

127     protected CopyTableTypeItemProvider copyTableTypeItemProvider;
128
129     /**
130      * This creates an adapter for a {@link Olj.CopyTableType}.
131      * <!-- begin-user-doc -->
132      * <!-- end-user-doc -->
133      * @generated
134      */

135     public Adapter createCopyTableTypeAdapter() {
136         if (copyTableTypeItemProvider == null) {
137             copyTableTypeItemProvider = new CopyTableTypeItemProvider(this);
138         }
139
140         return copyTableTypeItemProvider;
141     }
142
143     /**
144      * This keeps track of the one adapter used for all {@link Olj.CounterColumnsType} instances.
145      * <!-- begin-user-doc -->
146      * <!-- end-user-doc -->
147      * @generated
148      */

149     protected CounterColumnsTypeItemProvider counterColumnsTypeItemProvider;
150
151     /**
152      * This creates an adapter for a {@link Olj.CounterColumnsType}.
153      * <!-- begin-user-doc -->
154      * <!-- end-user-doc -->
155      * @generated
156      */

157     public Adapter createCounterColumnsTypeAdapter() {
158         if (counterColumnsTypeItemProvider == null) {
159             counterColumnsTypeItemProvider = new CounterColumnsTypeItemProvider(this);
160         }
161
162         return counterColumnsTypeItemProvider;
163     }
164
165     /**
166      * This keeps track of the one adapter used for all {@link Olj.CounterColumnType} instances.
167      * <!-- begin-user-doc -->
168      * <!-- end-user-doc -->
169      * @generated
170      */

171     protected CounterColumnTypeItemProvider counterColumnTypeItemProvider;
172
173     /**
174      * This creates an adapter for a {@link Olj.CounterColumnType}.
175      * <!-- begin-user-doc -->
176      * <!-- end-user-doc -->
177      * @generated
178      */

179     public Adapter createCounterColumnTypeAdapter() {
180         if (counterColumnTypeItemProvider == null) {
181             counterColumnTypeItemProvider = new CounterColumnTypeItemProvider(this);
182         }
183
184         return counterColumnTypeItemProvider;
185     }
186
187     /**
188      * This keeps track of the one adapter used for all {@link Olj.DefinitionIncludeType} instances.
189      * <!-- begin-user-doc -->
190      * <!-- end-user-doc -->
191      * @generated
192      */

193     protected DefinitionIncludeTypeItemProvider definitionIncludeTypeItemProvider;
194
195     /**
196      * This creates an adapter for a {@link Olj.DefinitionIncludeType}.
197      * <!-- begin-user-doc -->
198      * <!-- end-user-doc -->
199      * @generated
200      */

201     public Adapter createDefinitionIncludeTypeAdapter() {
202         if (definitionIncludeTypeItemProvider == null) {
203             definitionIncludeTypeItemProvider = new DefinitionIncludeTypeItemProvider(this);
204         }
205
206         return definitionIncludeTypeItemProvider;
207     }
208
209     /**
210      * This keeps track of the one adapter used for all {@link Olj.DocumentRoot} instances.
211      * <!-- begin-user-doc -->
212      * <!-- end-user-doc -->
213      * @generated
214      */

215     protected DocumentRootItemProvider documentRootItemProvider;
216
217     /**
218      * This creates an adapter for a {@link Olj.DocumentRoot}.
219      * <!-- begin-user-doc -->
220      * <!-- end-user-doc -->
221      * @generated
222      */

223     public Adapter createDocumentRootAdapter() {
224         if (documentRootItemProvider == null) {
225             documentRootItemProvider = new DocumentRootItemProvider(this);
226         }
227
228         return documentRootItemProvider;
229     }
230
231     /**
232      * This keeps track of the one adapter used for all {@link Olj.EchoType} instances.
233      * <!-- begin-user-doc -->
234      * <!-- end-user-doc -->
235      * @generated
236      */

237     protected EchoTypeItemProvider echoTypeItemProvider;
238
239     /**
240      * This creates an adapter for a {@link Olj.EchoType}.
241      * <!-- begin-user-doc -->
242      * <!-- end-user-doc -->
243      * @generated
244      */

245     public Adapter createEchoTypeAdapter() {
246         if (echoTypeItemProvider == null) {
247             echoTypeItemProvider = new EchoTypeItemProvider(this);
248         }
249
250         return echoTypeItemProvider;
251     }
252
253     /**
254      * This keeps track of the one adapter used for all {@link Olj.ImportDefinitionType} instances.
255      * <!-- begin-user-doc -->
256      * <!-- end-user-doc -->
257      * @generated
258      */

259     protected ImportDefinitionTypeItemProvider importDefinitionTypeItemProvider;
260
261     /**
262      * This creates an adapter for a {@link Olj.ImportDefinitionType}.
263      * <!-- begin-user-doc -->
264      * <!-- end-user-doc -->
265      * @generated
266      */

267     public Adapter createImportDefinitionTypeAdapter() {
268         if (importDefinitionTypeItemProvider == null) {
269             importDefinitionTypeItemProvider = new ImportDefinitionTypeItemProvider(this);
270         }
271
272         return importDefinitionTypeItemProvider;
273     }
274
275     /**
276      * This keeps track of the one adapter used for all {@link Olj.IncludeType} instances.
277      * <!-- begin-user-doc -->
278      * <!-- end-user-doc -->
279      * @generated
280      */

281     protected IncludeTypeItemProvider includeTypeItemProvider;
282
283     /**
284      * This creates an adapter for a {@link Olj.IncludeType}.
285      * <!-- begin-user-doc -->
286      * <!-- end-user-doc -->
287      * @generated
288      */

289     public Adapter createIncludeTypeAdapter() {
290         if (includeTypeItemProvider == null) {
291             includeTypeItemProvider = new IncludeTypeItemProvider(this);
292         }
293
294         return includeTypeItemProvider;
295     }
296
297     /**
298      * This keeps track of the one adapter used for all {@link Olj.JavaScriptType} instances.
299      * <!-- begin-user-doc -->
300      * <!-- end-user-doc -->
301      * @generated
302      */

303     protected JavaScriptTypeItemProvider javaScriptTypeItemProvider;
304
305     /**
306      * This creates an adapter for a {@link Olj.JavaScriptType}.
307      * <!-- begin-user-doc -->
308      * <!-- end-user-doc -->
309      * @generated
310      */

311     public Adapter createJavaScriptTypeAdapter() {
312         if (javaScriptTypeItemProvider == null) {
313             javaScriptTypeItemProvider = new JavaScriptTypeItemProvider(this);
314         }
315
316         return javaScriptTypeItemProvider;
317     }
318
319     /**
320      * This keeps track of the one adapter used for all {@link Olj.JdbcDefaultParametersType} instances.
321      * <!-- begin-user-doc -->
322      * <!-- end-user-doc -->
323      * @generated
324      */

325     protected JdbcDefaultParametersTypeItemProvider jdbcDefaultParametersTypeItemProvider;
326
327     /**
328      * This creates an adapter for a {@link Olj.JdbcDefaultParametersType}.
329      * <!-- begin-user-doc -->
330      * <!-- end-user-doc -->
331      * @generated
332      */

333     public Adapter createJdbcDefaultParametersTypeAdapter() {
334         if (jdbcDefaultParametersTypeItemProvider == null) {
335             jdbcDefaultParametersTypeItemProvider = new JdbcDefaultParametersTypeItemProvider(this);
336         }
337
338         return jdbcDefaultParametersTypeItemProvider;
339     }
340
341     /**
342      * This keeps track of the one adapter used for all {@link Olj.JdbcParametersType} instances.
343      * <!-- begin-user-doc -->
344      * <!-- end-user-doc -->
345      * @generated
346      */

347     protected JdbcParametersTypeItemProvider jdbcParametersTypeItemProvider;
348
349     /**
350      * This creates an adapter for a {@link Olj.JdbcParametersType}.
351      * <!-- begin-user-doc -->
352      * <!-- end-user-doc -->
353      * @generated
354      */

355     public Adapter createJdbcParametersTypeAdapter() {
356         if (jdbcParametersTypeItemProvider == null) {
357             jdbcParametersTypeItemProvider = new JdbcParametersTypeItemProvider(this);
358         }
359
360         return jdbcParametersTypeItemProvider;
361     }
362
363     /**
364      * This keeps track of the one adapter used for all {@link Olj.JdbcSourceParametersType} instances.
365      * <!-- begin-user-doc -->
366      * <!-- end-user-doc -->
367      * @generated
368      */

369     protected JdbcSourceParametersTypeItemProvider jdbcSourceParametersTypeItemProvider;
370
371     /**
372      * This creates an adapter for a {@link Olj.JdbcSourceParametersType}.
373      * <!-- begin-user-doc -->
374      * <!-- end-user-doc -->
375      * @generated
376      */

377     public Adapter createJdbcSourceParametersTypeAdapter() {
378         if (jdbcSourceParametersTypeItemProvider == null) {
379             jdbcSourceParametersTypeItemProvider = new JdbcSourceParametersTypeItemProvider(this);
380         }
381
382         return jdbcSourceParametersTypeItemProvider;
383     }
384
385     /**
386      * This keeps track of the one adapter used for all {@link Olj.JdbcSourceParameterType} instances.
387      * <!-- begin-user-doc -->
388      * <!-- end-user-doc -->
389      * @generated
390      */

391     protected JdbcSourceParameterTypeItemProvider jdbcSourceParameterTypeItemProvider;
392
393     /**
394      * This creates an adapter for a {@link Olj.JdbcSourceParameterType}.
395      * <!-- begin-user-doc -->
396      * <!-- end-user-doc -->
397      * @generated
398      */

399     public Adapter createJdbcSourceParameterTypeAdapter() {
400         if (jdbcSourceParameterTypeItemProvider == null) {
401             jdbcSourceParameterTypeItemProvider = new JdbcSourceParameterTypeItemProvider(this);
402         }
403
404         return jdbcSourceParameterTypeItemProvider;
405     }
406
407     /**
408      * This keeps track of the one adapter used for all {@link Olj.JdbcSourceTargetParametersType} instances.
409      * <!-- begin-user-doc -->
410      * <!-- end-user-doc -->
411      * @generated
412      */

413     protected JdbcSourceTargetParametersTypeItemProvider jdbcSourceTargetParametersTypeItemProvider;
414
415     /**
416      * This creates an adapter for a {@link Olj.JdbcSourceTargetParametersType}.
417      * <!-- begin-user-doc -->
418      * <!-- end-user-doc -->
419      * @generated
420      */

421     public Adapter createJdbcSourceTargetParametersTypeAdapter() {
422         if (jdbcSourceTargetParametersTypeItemProvider == null) {
423             jdbcSourceTargetParametersTypeItemProvider = new JdbcSourceTargetParametersTypeItemProvider(this);
424         }
425
426         return jdbcSourceTargetParametersTypeItemProvider;
427     }
428
429     /**
430      * This keeps track of the one adapter used for all {@link Olj.JdbcTargetParametersType} instances.
431      * <!-- begin-user-doc -->
432      * <!-- end-user-doc -->
433      * @generated
434      */

435     protected JdbcTargetParametersTypeItemProvider jdbcTargetParametersTypeItemProvider;
436
437     /**
438      * This creates an adapter for a {@link Olj.JdbcTargetParametersType}.
439      * <!-- begin-user-doc -->
440      * <!-- end-user-doc -->
441      * @generated
442      */

443     public Adapter createJdbcTargetParametersTypeAdapter() {
444         if (jdbcTargetParametersTypeItemProvider == null) {
445             jdbcTargetParametersTypeItemProvider = new JdbcTargetParametersTypeItemProvider(this);
446         }
447
448         return jdbcTargetParametersTypeItemProvider;
449     }
450
451     /**
452      * This keeps track of the one adapter used for all {@link Olj.JdbcTargetParameterType} instances.
453      * <!-- begin-user-doc -->
454      * <!-- end-user-doc -->
455      * @generated
456      */

457     protected JdbcTargetParameterTypeItemProvider jdbcTargetParameterTypeItemProvider;
458
459     /**
460      * This creates an adapter for a {@link Olj.JdbcTargetParameterType}.
461      * <!-- begin-user-doc -->
462      * <!-- end-user-doc -->
463      * @generated
464      */

465     public Adapter createJdbcTargetParameterTypeAdapter() {
466         if (jdbcTargetParameterTypeItemProvider == null) {
467             jdbcTargetParameterTypeItemProvider = new JdbcTargetParameterTypeItemProvider(this);
468         }
469
470         return jdbcTargetParameterTypeItemProvider;
471     }
472
473     /**
474      * This keeps track of the one adapter used for all {@link Olj.LoaderJobType} instances.
475      * <!-- begin-user-doc -->
476      * <!-- end-user-doc -->
477      * @generated
478      */

479     protected LoaderJobTypeItemProvider loaderJobTypeItemProvider;
480
481     /**
482      * This creates an adapter for a {@link Olj.LoaderJobType}.
483      * <!-- begin-user-doc -->
484      * <!-- end-user-doc -->
485      * @generated
486      */

487     public Adapter createLoaderJobTypeAdapter() {
488         if (loaderJobTypeItemProvider == null) {
489             loaderJobTypeItemProvider = new LoaderJobTypeItemProvider(this);
490         }
491
492         return loaderJobTypeItemProvider;
493     }
494
495     /**
496      * This keeps track of the one adapter used for all {@link Olj.RelationColumnsType} instances.
497      * <!-- begin-user-doc -->
498      * <!-- end-user-doc -->
499      * @generated
500      */

501     protected RelationColumnsTypeItemProvider relationColumnsTypeItemProvider;
502
503     /**
504      * This creates an adapter for a {@link Olj.RelationColumnsType}.
505      * <!-- begin-user-doc -->
506      * <!-- end-user-doc -->
507      * @generated
508      */

509     public Adapter createRelationColumnsTypeAdapter() {
510         if (relationColumnsTypeItemProvider == null) {
511             relationColumnsTypeItemProvider = new RelationColumnsTypeItemProvider(this);
512         }
513
514         return relationColumnsTypeItemProvider;
515     }
516
517     /**
518      * This keeps track of the one adapter used for all {@link Olj.RelationColumnType} instances.
519      * <!-- begin-user-doc -->
520      * <!-- end-user-doc -->
521      * @generated
522      */

523     protected RelationColumnTypeItemProvider relationColumnTypeItemProvider;
524
525     /**
526      * This creates an adapter for a {@link Olj.RelationColumnType}.
527      * <!-- begin-user-doc -->
528      * <!-- end-user-doc -->
529      * @generated
530      */

531     public Adapter createRelationColumnTypeAdapter() {
532         if (relationColumnTypeItemProvider == null) {
533             relationColumnTypeItemProvider = new RelationColumnTypeItemProvider(this);
534         }
535
536         return relationColumnTypeItemProvider;
537     }
538
539     /**
540      * This keeps track of the one adapter used for all {@link Olj.RestartCounterType} instances.
541      * <!-- begin-user-doc -->
542      * <!-- end-user-doc -->
543      * @generated
544      */

545     protected RestartCounterTypeItemProvider restartCounterTypeItemProvider;
546
547     /**
548      * This creates an adapter for a {@link Olj.RestartCounterType}.
549      * <!-- begin-user-doc -->
550      * <!-- end-user-doc -->
551      * @generated
552      */

553     public Adapter createRestartCounterTypeAdapter() {
554         if (restartCounterTypeItemProvider == null) {
555             restartCounterTypeItemProvider = new RestartCounterTypeItemProvider(this);
556         }
557
558         return restartCounterTypeItemProvider;
559     }
560
561     /**
562      * This keeps track of the one adapter used for all {@link Olj.SortColumnsType} instances.
563      * <!-- begin-user-doc -->
564      * <!-- end-user-doc -->
565      * @generated
566      */

567     protected SortColumnsTypeItemProvider sortColumnsTypeItemProvider;
568
569     /**
570      * This creates an adapter for a {@link Olj.SortColumnsType}.
571      * <!-- begin-user-doc -->
572      * <!-- end-user-doc -->
573      * @generated
574      */

575     public Adapter createSortColumnsTypeAdapter() {
576         if (sortColumnsTypeItemProvider == null) {
577             sortColumnsTypeItemProvider = new SortColumnsTypeItemProvider(this);
578         }
579
580         return sortColumnsTypeItemProvider;
581     }
582
583     /**
584      * This keeps track of the one adapter used for all {@link Olj.SortColumnType} instances.
585      * <!-- begin-user-doc -->
586      * <!-- end-user-doc -->
587      * @generated
588      */

589     protected SortColumnTypeItemProvider sortColumnTypeItemProvider;
590
591     /**
592      * This creates an adapter for a {@link Olj.SortColumnType}.
593      * <!-- begin-user-doc -->
594      * <!-- end-user-doc -->
595      * @generated
596      */

597     public Adapter createSortColumnTypeAdapter() {
598         if (sortColumnTypeItemProvider == null) {
599             sortColumnTypeItemProvider = new SortColumnTypeItemProvider(this);
600         }
601
602         return sortColumnTypeItemProvider;
603     }
604
605     /**
606      * This keeps track of the one adapter used for all {@link Olj.SourceColumnsType} instances.
607      * <!-- begin-user-doc -->
608      * <!-- end-user-doc -->
609      * @generated
610      */

611     protected SourceColumnsTypeItemProvider sourceColumnsTypeItemProvider;
612
613     /**
614      * This creates an adapter for a {@link Olj.SourceColumnsType}.
615      * <!-- begin-user-doc -->
616      * <!-- end-user-doc -->
617      * @generated
618      */

619     public Adapter createSourceColumnsTypeAdapter() {
620         if (sourceColumnsTypeItemProvider == null) {
621             sourceColumnsTypeItemProvider = new SourceColumnsTypeItemProvider(this);
622         }
623
624         return sourceColumnsTypeItemProvider;
625     }
626
627     /**
628      * This keeps track of the one adapter used for all {@link Olj.SourceColumnType} instances.
629      * <!-- begin-user-doc -->
630      * <!-- end-user-doc -->
631      * @generated
632      */

633     protected SourceColumnTypeItemProvider sourceColumnTypeItemProvider;
634
635     /**
636      * This creates an adapter for a {@link Olj.SourceColumnType}.
637      * <!-- begin-user-doc -->
638      * <!-- end-user-doc -->
639      * @generated
640      */

641     public Adapter createSourceColumnTypeAdapter() {
642         if (sourceColumnTypeItemProvider == null) {
643             sourceColumnTypeItemProvider = new SourceColumnTypeItemProvider(this);
644         }
645
646         return sourceColumnTypeItemProvider;
647     }
648
649     /**
650      * This keeps track of the one adapter used for all {@link Olj.SqlStmtType} instances.
651      * <!-- begin-user-doc -->
652      * <!-- end-user-doc -->
653      * @generated
654      */

655     protected SqlStmtTypeItemProvider sqlStmtTypeItemProvider;
656
657     /**
658      * This creates an adapter for a {@link Olj.SqlStmtType}.
659      * <!-- begin-user-doc -->
660      * <!-- end-user-doc -->
661      * @generated
662      */

663     public Adapter createSqlStmtTypeAdapter() {
664         if (sqlStmtTypeItemProvider == null) {
665             sqlStmtTypeItemProvider = new SqlStmtTypeItemProvider(this);
666         }
667
668         return sqlStmtTypeItemProvider;
669     }
670
671     /**
672      * This keeps track of the one adapter used for all {@link Olj.SqlType} instances.
673      * <!-- begin-user-doc -->
674      * <!-- end-user-doc -->
675      * @generated
676      */

677     protected SqlTypeItemProvider sqlTypeItemProvider;
678
679     /**
680      * This creates an adapter for a {@link Olj.SqlType}.
681      * <!-- begin-user-doc -->
682      * <!-- end-user-doc -->
683      * @generated
684      */

685     public Adapter createSqlTypeAdapter() {
686         if (sqlTypeItemProvider == null) {
687             sqlTypeItemProvider = new SqlTypeItemProvider(this);
688         }
689
690         return sqlTypeItemProvider;
691     }
692
693     /**
694      * This keeps track of the one adapter used for all {@link Olj.SubCounterColumnType} instances.
695      * <!-- begin-user-doc -->
696      * <!-- end-user-doc -->
697      * @generated
698      */

699     protected SubCounterColumnTypeItemProvider subCounterColumnTypeItemProvider;
700
701     /**
702      * This creates an adapter for a {@link Olj.SubCounterColumnType}.
703      * <!-- begin-user-doc -->
704      * <!-- end-user-doc -->
705      * @generated
706      */

707     public Adapter createSubCounterColumnTypeAdapter() {
708         if (subCounterColumnTypeItemProvider == null) {
709             subCounterColumnTypeItemProvider = new SubCounterColumnTypeItemProvider(this);
710         }
711
712         return subCounterColumnTypeItemProvider;
713     }
714
715     /**
716      * This keeps track of the one adapter used for all {@link Olj.SubCounterKeyColumnType} instances.
717      * <!-- begin-user-doc -->
718      * <!-- end-user-doc -->
719      * @generated
720      */

721     protected SubCounterKeyColumnTypeItemProvider subCounterKeyColumnTypeItemProvider;
722
723     /**
724      * This creates an adapter for a {@link Olj.SubCounterKeyColumnType}.
725      * <!-- begin-user-doc -->
726      * <!-- end-user-doc -->
727      * @generated
728      */

729     public Adapter createSubCounterKeyColumnTypeAdapter() {
730         if (subCounterKeyColumnTypeItemProvider == null) {
731             subCounterKeyColumnTypeItemProvider = new SubCounterKeyColumnTypeItemProvider(this);
732         }
733
734         return subCounterKeyColumnTypeItemProvider;
735     }
736
737     /**
738      * This keeps track of the one adapter used for all {@link Olj.TablesType} instances.
739      * <!-- begin-user-doc -->
740      * <!-- end-user-doc -->
741      * @generated
742      */

743     protected TablesTypeItemProvider tablesTypeItemProvider;
744
745     /**
746      * This creates an adapter for a {@link Olj.TablesType}.
747      * <!-- begin-user-doc -->
748      * <!-- end-user-doc -->
749      * @generated
750      */

751     public Adapter createTablesTypeAdapter() {
752         if (tablesTypeItemProvider == null) {
753             tablesTypeItemProvider = new TablesTypeItemProvider(this);
754         }
755
756         return tablesTypeItemProvider;
757     }
758
759     /**
760      * This keeps track of the one adapter used for all {@link Olj.TableType} instances.
761      * <!-- begin-user-doc -->
762      * <!-- end-user-doc -->
763      * @generated
764      */

765     protected TableTypeItemProvider tableTypeItemProvider;
766
767     /**
768      * This creates an adapter for a {@link Olj.TableType}.
769      * <!-- begin-user-doc -->
770      * <!-- end-user-doc -->
771      * @generated
772      */

773     public Adapter createTableTypeAdapter() {
774         if (tableTypeItemProvider == null) {
775             tableTypeItemProvider = new TableTypeItemProvider(this);
776         }
777
778         return tableTypeItemProvider;
779     }
780
781     /**
782      * This keeps track of the one adapter used for all {@link Olj.TargetColumnsType} instances.
783      * <!-- begin-user-doc -->
784      * <!-- end-user-doc -->
785      * @generated
786      */

787     protected TargetColumnsTypeItemProvider targetColumnsTypeItemProvider;
788
789     /**
790      * This creates an adapter for a {@link Olj.TargetColumnsType}.
791      * <!-- begin-user-doc -->
792      * <!-- end-user-doc -->
793      * @generated
794      */

795     public Adapter createTargetColumnsTypeAdapter() {
796         if (targetColumnsTypeItemProvider == null) {
797             targetColumnsTypeItemProvider = new TargetColumnsTypeItemProvider(this);
798         }
799
800         return targetColumnsTypeItemProvider;
801     }
802
803     /**
804      * This keeps track of the one adapter used for all {@link Olj.TargetColumnType} instances.
805      * <!-- begin-user-doc -->
806      * <!-- end-user-doc -->
807      * @generated
808      */

809     protected TargetColumnTypeItemProvider targetColumnTypeItemProvider;
810
811     /**
812      * This creates an adapter for a {@link Olj.TargetColumnType}.
813      * <!-- begin-user-doc -->
814      * <!-- end-user-doc -->
815      * @generated
816      */

817     public Adapter createTargetColumnTypeAdapter() {
818         if (targetColumnTypeItemProvider == null) {
819             targetColumnTypeItemProvider = new TargetColumnTypeItemProvider(this);
820         }
821
822         return targetColumnTypeItemProvider;
823     }
824
825     /**
826      * This keeps track of the one adapter used for all {@link Olj.TimeStampColumnType} instances.
827      * <!-- begin-user-doc -->
828      * <!-- end-user-doc -->
829      * @generated
830      */

831     protected TimeStampColumnTypeItemProvider timeStampColumnTypeItemProvider;
832
833     /**
834      * This creates an adapter for a {@link Olj.TimeStampColumnType}.
835      * <!-- begin-user-doc -->
836      * <!-- end-user-doc -->
837      * @generated
838      */

839     public Adapter createTimeStampColumnTypeAdapter() {
840         if (timeStampColumnTypeItemProvider == null) {
841             timeStampColumnTypeItemProvider = new TimeStampColumnTypeItemProvider(this);
842         }
843
844         return timeStampColumnTypeItemProvider;
845     }
846
847     /**
848      * This keeps track of the one adapter used for all {@link Olj.TransformationsType} instances.
849      * <!-- begin-user-doc -->
850      * <!-- end-user-doc -->
851      * @generated
852      */

853     protected TransformationsTypeItemProvider transformationsTypeItemProvider;
854
855     /**
856      * This creates an adapter for a {@link Olj.TransformationsType}.
857      * <!-- begin-user-doc -->
858      * <!-- end-user-doc -->
859      * @generated
860      */

861     public Adapter createTransformationsTypeAdapter() {
862         if (transformationsTypeItemProvider == null) {
863             transformationsTypeItemProvider = new TransformationsTypeItemProvider(this);
864         }
865
866         return transformationsTypeItemProvider;
867     }
868
869     /**
870      * This keeps track of the one adapter used for all {@link Olj.TransformationType} instances.
871      * <!-- begin-user-doc -->
872      * <!-- end-user-doc -->
873      * @generated
874      */

875     protected TransformationTypeItemProvider transformationTypeItemProvider;
876
877     /**
878      * This creates an adapter for a {@link Olj.TransformationType}.
879      * <!-- begin-user-doc -->
880      * <!-- end-user-doc -->
881      * @generated
882      */

883     public Adapter createTransformationTypeAdapter() {
884         if (transformationTypeItemProvider == null) {
885             transformationTypeItemProvider = new TransformationTypeItemProvider(this);
886         }
887
888         return transformationTypeItemProvider;
889     }
890
891     /**
892      * This keeps track of the one adapter used for all {@link Olj.UserIDColumnType} instances.
893      * <!-- begin-user-doc -->
894      * <!-- end-user-doc -->
895      * @generated
896      */

897     protected UserIDColumnTypeItemProvider userIDColumnTypeItemProvider;
898
899     /**
900      * This creates an adapter for a {@link Olj.UserIDColumnType}.
901      * <!-- begin-user-doc -->
902      * <!-- end-user-doc -->
903      * @generated
904      */

905     public Adapter createUserIDColumnTypeAdapter() {
906         if (userIDColumnTypeItemProvider == null) {
907             userIDColumnTypeItemProvider = new UserIDColumnTypeItemProvider(this);
908         }
909
910         return userIDColumnTypeItemProvider;
911     }
912
913     /**
914      * This keeps track of the one adapter used for all {@link Olj.ValueColumnsType} instances.
915      * <!-- begin-user-doc -->
916      * <!-- end-user-doc -->
917      * @generated
918      */

919     protected ValueColumnsTypeItemProvider valueColumnsTypeItemProvider;
920
921     /**
922      * This creates an adapter for a {@link Olj.ValueColumnsType}.
923      * <!-- begin-user-doc -->
924      * <!-- end-user-doc -->
925      * @generated
926      */

927     public Adapter createValueColumnsTypeAdapter() {
928         if (valueColumnsTypeItemProvider == null) {
929             valueColumnsTypeItemProvider = new ValueColumnsTypeItemProvider(this);
930         }
931
932         return valueColumnsTypeItemProvider;
933     }
934
935     /**
936      * This keeps track of the one adapter used for all {@link Olj.ValueColumnType} instances.
937      * <!-- begin-user-doc -->
938      * <!-- end-user-doc -->
939      * @generated
940      */

941     protected ValueColumnTypeItemProvider valueColumnTypeItemProvider;
942
943     /**
944      * This creates an adapter for a {@link Olj.ValueColumnType}.
945      * <!-- begin-user-doc -->
946      * <!-- end-user-doc -->
947      * @generated
948      */

949     public Adapter createValueColumnTypeAdapter() {
950         if (valueColumnTypeItemProvider == null) {
951             valueColumnTypeItemProvider = new ValueColumnTypeItemProvider(this);
952         }
953
954         return valueColumnTypeItemProvider;
955     }
956
957     /**
958      * This keeps track of the one adapter used for all {@link Olj.VariableColumnsType} instances.
959      * <!-- begin-user-doc -->
960      * <!-- end-user-doc -->
961      * @generated
962      */

963     protected VariableColumnsTypeItemProvider variableColumnsTypeItemProvider;
964
965     /**
966      * This creates an adapter for a {@link Olj.VariableColumnsType}.
967      * <!-- begin-user-doc -->
968      * <!-- end-user-doc -->
969      * @generated
970      */

971     public Adapter createVariableColumnsTypeAdapter() {
972         if (variableColumnsTypeItemProvider == null) {
973             variableColumnsTypeItemProvider = new VariableColumnsTypeItemProvider(this);
974         }
975
976         return variableColumnsTypeItemProvider;
977     }
978
979     /**
980      * This keeps track of the one adapter used for all {@link Olj.VariableColumnType} instances.
981      * <!-- begin-user-doc -->
982      * <!-- end-user-doc -->
983      * @generated
984      */

985     protected VariableColumnTypeItemProvider variableColumnTypeItemProvider;
986
987     /**
988      * This creates an adapter for a {@link Olj.VariableColumnType}.
989      * <!-- begin-user-doc -->
990      * <!-- end-user-doc -->
991      * @generated
992      */

993     public Adapter createVariableColumnTypeAdapter() {
994         if (variableColumnTypeItemProvider == null) {
995             variableColumnTypeItemProvider = new VariableColumnTypeItemProvider(this);
996         }
997
998         return variableColumnTypeItemProvider;
999     }
1000
1001    /**
1002     * This keeps track of the one adapter used for all {@link Olj.VariablesType} instances.
1003     * <!-- begin-user-doc -->
1004     * <!-- end-user-doc -->
1005     * @generated
1006     */

1007    protected VariablesTypeItemProvider variablesTypeItemProvider;
1008
1009    /**
1010     * This creates an adapter for a {@link Olj.VariablesType}.
1011     * <!-- begin-user-doc -->
1012     * <!-- end-user-doc -->
1013     * @generated
1014     */

1015    public Adapter createVariablesTypeAdapter() {
1016        if (variablesTypeItemProvider == null) {
1017            variablesTypeItemProvider = new VariablesTypeItemProvider(this);
1018        }
1019
1020        return variablesTypeItemProvider;
1021    }
1022
1023    /**
1024     * This keeps track of the one adapter used for all {@link Olj.VariableType} instances.
1025     * <!-- begin-user-doc -->
1026     * <!-- end-user-doc -->
1027     * @generated
1028     */

1029    protected VariableTypeItemProvider variableTypeItemProvider;
1030
1031    /**
1032     * This creates an adapter for a {@link Olj.VariableType}.
1033     * <!-- begin-user-doc -->
1034     * <!-- end-user-doc -->
1035     * @generated
1036     */

1037    public Adapter createVariableTypeAdapter() {
1038        if (variableTypeItemProvider == null) {
1039            variableTypeItemProvider = new VariableTypeItemProvider(this);
1040        }
1041
1042        return variableTypeItemProvider;
1043    }
1044
1045    /**
1046     * This returns the root adapter factory that contains this factory.
1047     * <!-- begin-user-doc -->
1048     * <!-- end-user-doc -->
1049     * @generated
1050     */

1051    public ComposeableAdapterFactory getRootAdapterFactory() {
1052        return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
1053    }
1054
1055    /**
1056     * This sets the composed adapter factory that contains this factory.
1057     * <!-- begin-user-doc -->
1058     * <!-- end-user-doc -->
1059     * @generated
1060     */

1061    public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
1062        this.parentAdapterFactory = parentAdapterFactory;
1063    }
1064
1065    /**
1066     * <!-- begin-user-doc -->
1067     * <!-- end-user-doc -->
1068     * @generated
1069     */

1070    public boolean isFactoryForType(Object JavaDoc type) {
1071        return supportedTypes.contains(type) || super.isFactoryForType(type);
1072    }
1073
1074    /**
1075     * This implementation substitutes the factory itself as the key for the adapter.
1076     * <!-- begin-user-doc -->
1077     * <!-- end-user-doc -->
1078     * @generated
1079     */

1080    public Adapter adapt(Notifier notifier, Object JavaDoc type) {
1081        return super.adapt(notifier, this);
1082    }
1083
1084    /**
1085     * <!-- begin-user-doc -->
1086     * <!-- end-user-doc -->
1087     * @generated
1088     */

1089    public Object JavaDoc adapt(Object JavaDoc object, Object JavaDoc type) {
1090        if (isFactoryForType(type)) {
1091            Object JavaDoc adapter = super.adapt(object, type);
1092            if (!(type instanceof Class JavaDoc) || (((Class JavaDoc)type).isInstance(adapter))) {
1093                return adapter;
1094            }
1095        }
1096
1097        return null;
1098    }
1099
1100    /**
1101     * This adds a listener.
1102     * <!-- begin-user-doc -->
1103     * <!-- end-user-doc -->
1104     * @generated
1105     */

1106    public void addListener(INotifyChangedListener notifyChangedListener) {
1107        changeNotifier.addListener(notifyChangedListener);
1108    }
1109
1110    /**
1111     * This removes a listener.
1112     * <!-- begin-user-doc -->
1113     * <!-- end-user-doc -->
1114     * @generated
1115     */

1116    public void removeListener(INotifyChangedListener notifyChangedListener) {
1117        changeNotifier.removeListener(notifyChangedListener);
1118    }
1119
1120    /**
1121     * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
1122     * <!-- begin-user-doc -->
1123     * <!-- end-user-doc -->
1124     * @generated
1125     */

1126    public void fireNotifyChanged(Notification notification) {
1127        changeNotifier.fireNotifyChanged(notification);
1128
1129        if (parentAdapterFactory != null) {
1130            parentAdapterFactory.fireNotifyChanged(notification);
1131        }
1132    }
1133
1134}
1135
Popular Tags