EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.repository.provider]

COVERAGE SUMMARY FOR SOURCE FILE [RepositoryItemProviderAdapterFactory.java]

nameclass, %method, %block, %line, %
RepositoryItemProviderAdapterFactory.java0%   (0/1)0%   (0/35)0%   (0/563)0%   (0/128)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class RepositoryItemProviderAdapterFactory0%   (0/1)0%   (0/35)0%   (0/563)0%   (0/128)
RepositoryItemProviderAdapterFactory (): void 0%   (0/1)0%   (0/38)0%   (0/9)
adapt (Notifier, Object): Adapter 0%   (0/1)0%   (0/5)0%   (0/1)
adapt (Object, Object): Object 0%   (0/1)0%   (0/21)0%   (0/5)
addListener (INotifyChangedListener): void 0%   (0/1)0%   (0/5)0%   (0/2)
createBasicComponentAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createCollectionDataTypeAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createCompleteComponentTypeAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createCompositeComponentAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createCompositeDataTypeAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createEventGroupAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createEventTypeAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createExceptionTypeAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createInfrastructureInterfaceAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createInfrastructureProvidedRoleAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createInfrastructureRequiredRoleAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createInfrastructureSignatureAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createInnerDeclarationAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createOperationInterfaceAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createOperationProvidedRoleAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createOperationRequiredRoleAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createOperationSignatureAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createParameterAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createPassiveResourceAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createPrimitiveDataTypeAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createProvidesComponentTypeAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createRepositoryAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createRequiredCharacterisationAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createSinkRoleAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
createSourceRoleAdapter (): Adapter 0%   (0/1)0%   (0/12)0%   (0/3)
dispose (): void 0%   (0/1)0%   (0/151)0%   (0/26)
fireNotifyChanged (Notification): void 0%   (0/1)0%   (0/12)0%   (0/4)
getRootAdapterFactory (): ComposeableAdapterFactory 0%   (0/1)0%   (0/9)0%   (0/1)
isFactoryForType (Object): boolean 0%   (0/1)0%   (0/13)0%   (0/1)
removeListener (INotifyChangedListener): void 0%   (0/1)0%   (0/5)0%   (0/2)
setParentAdapterFactory (ComposedAdapterFactory): void 0%   (0/1)0%   (0/4)0%   (0/2)

1/**
2 * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany
3 *
4 * $Id$
5 */
6package de.uka.ipd.sdq.pcm.repository.provider;
7 
8import java.util.ArrayList;
9import java.util.Collection;
10 
11import org.eclipse.emf.common.notify.Adapter;
12import org.eclipse.emf.common.notify.Notification;
13import org.eclipse.emf.common.notify.Notifier;
14import org.eclipse.emf.edit.provider.ChangeNotifier;
15import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
16import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
17import org.eclipse.emf.edit.provider.IChangeNotifier;
18import org.eclipse.emf.edit.provider.IDisposable;
19import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
20import org.eclipse.emf.edit.provider.IItemLabelProvider;
21import org.eclipse.emf.edit.provider.IItemPropertySource;
22import org.eclipse.emf.edit.provider.INotifyChangedListener;
23import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
24import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
25 
26import de.uka.ipd.sdq.pcm.repository.util.RepositoryAdapterFactory;
27 
28/**
29 * This is the factory that is used to provide the interfaces needed to support Viewers.
30 * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
31 * The adapters also support Eclipse property sheets.
32 * Note that most of the adapters are shared among multiple instances.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @generated
36 */
37public class RepositoryItemProviderAdapterFactory extends RepositoryAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
38        /**
39         * <!-- begin-user-doc -->
40         * <!-- end-user-doc -->
41         * @generated
42         */
43        public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany";
44 
45        /**
46         * This keeps track of the root adapter factory that delegates to this adapter factory.
47         * <!-- begin-user-doc -->
48         * <!-- end-user-doc -->
49         * @generated
50         */
51        protected ComposedAdapterFactory parentAdapterFactory;
52 
53        /**
54         * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
55         * <!-- begin-user-doc -->
56         * <!-- end-user-doc -->
57         * @generated
58         */
59        protected IChangeNotifier changeNotifier = new ChangeNotifier();
60 
61        /**
62         * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
63         * <!-- begin-user-doc -->
64         * <!-- end-user-doc -->
65         * @generated
66         */
67        protected Collection<Object> supportedTypes = new ArrayList<Object>();
68 
69        /**
70         * This constructs an instance.
71         * <!-- begin-user-doc -->
72         * <!-- end-user-doc -->
73         * @generated
74         */
75        public RepositoryItemProviderAdapterFactory() {
76                supportedTypes.add(IEditingDomainItemProvider.class);
77                supportedTypes.add(IStructuredItemContentProvider.class);
78                supportedTypes.add(ITreeItemContentProvider.class);
79                supportedTypes.add(IItemLabelProvider.class);
80                supportedTypes.add(IItemPropertySource.class);
81        }
82 
83        /**
84         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.Repository} instances.
85         * <!-- begin-user-doc -->
86         * <!-- end-user-doc -->
87         * @generated
88         */
89        protected RepositoryItemProvider repositoryItemProvider;
90 
91        /**
92         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.Repository}.
93         * <!-- begin-user-doc -->
94         * <!-- end-user-doc -->
95         * @generated
96         */
97        @Override
98        public Adapter createRepositoryAdapter() {
99                if (repositoryItemProvider == null) {
100                        repositoryItemProvider = new RepositoryItemProvider(this);
101                }
102 
103                return repositoryItemProvider;
104        }
105 
106        /**
107         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.RequiredCharacterisation} instances.
108         * <!-- begin-user-doc -->
109         * <!-- end-user-doc -->
110         * @generated
111         */
112        protected RequiredCharacterisationItemProvider requiredCharacterisationItemProvider;
113 
114        /**
115         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.RequiredCharacterisation}.
116         * <!-- begin-user-doc -->
117         * <!-- end-user-doc -->
118         * @generated
119         */
120        @Override
121        public Adapter createRequiredCharacterisationAdapter() {
122                if (requiredCharacterisationItemProvider == null) {
123                        requiredCharacterisationItemProvider = new RequiredCharacterisationItemProvider(this);
124                }
125 
126                return requiredCharacterisationItemProvider;
127        }
128 
129        /**
130         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.Parameter} instances.
131         * <!-- begin-user-doc -->
132         * <!-- end-user-doc -->
133         * @generated
134         */
135        protected ParameterItemProvider parameterItemProvider;
136 
137        /**
138         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.Parameter}.
139         * <!-- begin-user-doc -->
140         * <!-- end-user-doc -->
141         * @generated
142         */
143        @Override
144        public Adapter createParameterAdapter() {
145                if (parameterItemProvider == null) {
146                        parameterItemProvider = new ParameterItemProvider(this);
147                }
148 
149                return parameterItemProvider;
150        }
151 
152        /**
153         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.OperationInterface} instances.
154         * <!-- begin-user-doc -->
155         * <!-- end-user-doc -->
156         * @generated
157         */
158        protected OperationInterfaceItemProvider operationInterfaceItemProvider;
159 
160        /**
161         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.OperationInterface}.
162         * <!-- begin-user-doc -->
163         * <!-- end-user-doc -->
164         * @generated
165         */
166        @Override
167        public Adapter createOperationInterfaceAdapter() {
168                if (operationInterfaceItemProvider == null) {
169                        operationInterfaceItemProvider = new OperationInterfaceItemProvider(this);
170                }
171 
172                return operationInterfaceItemProvider;
173        }
174 
175        /**
176         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.OperationSignature} instances.
177         * <!-- begin-user-doc -->
178         * <!-- end-user-doc -->
179         * @generated
180         */
181        protected OperationSignatureItemProvider operationSignatureItemProvider;
182 
183        /**
184         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.OperationSignature}.
185         * <!-- begin-user-doc -->
186         * <!-- end-user-doc -->
187         * @generated
188         */
189        @Override
190        public Adapter createOperationSignatureAdapter() {
191                if (operationSignatureItemProvider == null) {
192                        operationSignatureItemProvider = new OperationSignatureItemProvider(this);
193                }
194 
195                return operationSignatureItemProvider;
196        }
197 
198        /**
199         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.ExceptionType} instances.
200         * <!-- begin-user-doc -->
201         * <!-- end-user-doc -->
202         * @generated
203         */
204        protected ExceptionTypeItemProvider exceptionTypeItemProvider;
205 
206        /**
207         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.ExceptionType}.
208         * <!-- begin-user-doc -->
209         * <!-- end-user-doc -->
210         * @generated
211         */
212        @Override
213        public Adapter createExceptionTypeAdapter() {
214                if (exceptionTypeItemProvider == null) {
215                        exceptionTypeItemProvider = new ExceptionTypeItemProvider(this);
216                }
217 
218                return exceptionTypeItemProvider;
219        }
220 
221        /**
222         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.OperationRequiredRole} instances.
223         * <!-- begin-user-doc -->
224         * <!-- end-user-doc -->
225         * @generated
226         */
227        protected OperationRequiredRoleItemProvider operationRequiredRoleItemProvider;
228 
229        /**
230         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.OperationRequiredRole}.
231         * <!-- begin-user-doc -->
232         * <!-- end-user-doc -->
233         * @generated
234         */
235        @Override
236        public Adapter createOperationRequiredRoleAdapter() {
237                if (operationRequiredRoleItemProvider == null) {
238                        operationRequiredRoleItemProvider = new OperationRequiredRoleItemProvider(this);
239                }
240 
241                return operationRequiredRoleItemProvider;
242        }
243 
244        /**
245         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.SinkRole} instances.
246         * <!-- begin-user-doc -->
247         * <!-- end-user-doc -->
248         * @generated
249         */
250        protected SinkRoleItemProvider sinkRoleItemProvider;
251 
252        /**
253         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.SinkRole}.
254         * <!-- begin-user-doc -->
255         * <!-- end-user-doc -->
256         * @generated
257         */
258        @Override
259        public Adapter createSinkRoleAdapter() {
260                if (sinkRoleItemProvider == null) {
261                        sinkRoleItemProvider = new SinkRoleItemProvider(this);
262                }
263 
264                return sinkRoleItemProvider;
265        }
266 
267        /**
268         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.EventGroup} instances.
269         * <!-- begin-user-doc -->
270         * <!-- end-user-doc -->
271         * @generated
272         */
273        protected EventGroupItemProvider eventGroupItemProvider;
274 
275        /**
276         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.EventGroup}.
277         * <!-- begin-user-doc -->
278         * <!-- end-user-doc -->
279         * @generated
280         */
281        @Override
282        public Adapter createEventGroupAdapter() {
283                if (eventGroupItemProvider == null) {
284                        eventGroupItemProvider = new EventGroupItemProvider(this);
285                }
286 
287                return eventGroupItemProvider;
288        }
289 
290        /**
291         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.EventType} instances.
292         * <!-- begin-user-doc -->
293         * <!-- end-user-doc -->
294         * @generated
295         */
296        protected EventTypeItemProvider eventTypeItemProvider;
297 
298        /**
299         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.EventType}.
300         * <!-- begin-user-doc -->
301         * <!-- end-user-doc -->
302         * @generated
303         */
304        @Override
305        public Adapter createEventTypeAdapter() {
306                if (eventTypeItemProvider == null) {
307                        eventTypeItemProvider = new EventTypeItemProvider(this);
308                }
309 
310                return eventTypeItemProvider;
311        }
312 
313        /**
314         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.SourceRole} instances.
315         * <!-- begin-user-doc -->
316         * <!-- end-user-doc -->
317         * @generated
318         */
319        protected SourceRoleItemProvider sourceRoleItemProvider;
320 
321        /**
322         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.SourceRole}.
323         * <!-- begin-user-doc -->
324         * <!-- end-user-doc -->
325         * @generated
326         */
327        @Override
328        public Adapter createSourceRoleAdapter() {
329                if (sourceRoleItemProvider == null) {
330                        sourceRoleItemProvider = new SourceRoleItemProvider(this);
331                }
332 
333                return sourceRoleItemProvider;
334        }
335 
336        /**
337         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.InfrastructureProvidedRole} instances.
338         * <!-- begin-user-doc -->
339         * <!-- end-user-doc -->
340         * @generated
341         */
342        protected InfrastructureProvidedRoleItemProvider infrastructureProvidedRoleItemProvider;
343 
344        /**
345         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.InfrastructureProvidedRole}.
346         * <!-- begin-user-doc -->
347         * <!-- end-user-doc -->
348         * @generated
349         */
350        @Override
351        public Adapter createInfrastructureProvidedRoleAdapter() {
352                if (infrastructureProvidedRoleItemProvider == null) {
353                        infrastructureProvidedRoleItemProvider = new InfrastructureProvidedRoleItemProvider(this);
354                }
355 
356                return infrastructureProvidedRoleItemProvider;
357        }
358 
359        /**
360         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.BasicComponent} instances.
361         * <!-- begin-user-doc -->
362         * <!-- end-user-doc -->
363         * @generated
364         */
365        protected BasicComponentItemProvider basicComponentItemProvider;
366 
367        /**
368         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.BasicComponent}.
369         * <!-- begin-user-doc -->
370         * <!-- end-user-doc -->
371         * @generated
372         */
373        @Override
374        public Adapter createBasicComponentAdapter() {
375                if (basicComponentItemProvider == null) {
376                        basicComponentItemProvider = new BasicComponentItemProvider(this);
377                }
378 
379                return basicComponentItemProvider;
380        }
381 
382        /**
383         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.CompleteComponentType} instances.
384         * <!-- begin-user-doc -->
385         * <!-- end-user-doc -->
386         * @generated
387         */
388        protected CompleteComponentTypeItemProvider completeComponentTypeItemProvider;
389 
390        /**
391         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.CompleteComponentType}.
392         * <!-- begin-user-doc -->
393         * <!-- end-user-doc -->
394         * @generated
395         */
396        @Override
397        public Adapter createCompleteComponentTypeAdapter() {
398                if (completeComponentTypeItemProvider == null) {
399                        completeComponentTypeItemProvider = new CompleteComponentTypeItemProvider(this);
400                }
401 
402                return completeComponentTypeItemProvider;
403        }
404 
405        /**
406         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.ProvidesComponentType} instances.
407         * <!-- begin-user-doc -->
408         * <!-- end-user-doc -->
409         * @generated
410         */
411        protected ProvidesComponentTypeItemProvider providesComponentTypeItemProvider;
412 
413        /**
414         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.ProvidesComponentType}.
415         * <!-- begin-user-doc -->
416         * <!-- end-user-doc -->
417         * @generated
418         */
419        @Override
420        public Adapter createProvidesComponentTypeAdapter() {
421                if (providesComponentTypeItemProvider == null) {
422                        providesComponentTypeItemProvider = new ProvidesComponentTypeItemProvider(this);
423                }
424 
425                return providesComponentTypeItemProvider;
426        }
427 
428        /**
429         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.OperationProvidedRole} instances.
430         * <!-- begin-user-doc -->
431         * <!-- end-user-doc -->
432         * @generated
433         */
434        protected OperationProvidedRoleItemProvider operationProvidedRoleItemProvider;
435 
436        /**
437         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.OperationProvidedRole}.
438         * <!-- begin-user-doc -->
439         * <!-- end-user-doc -->
440         * @generated
441         */
442        @Override
443        public Adapter createOperationProvidedRoleAdapter() {
444                if (operationProvidedRoleItemProvider == null) {
445                        operationProvidedRoleItemProvider = new OperationProvidedRoleItemProvider(this);
446                }
447 
448                return operationProvidedRoleItemProvider;
449        }
450 
451        /**
452         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.PassiveResource} instances.
453         * <!-- begin-user-doc -->
454         * <!-- end-user-doc -->
455         * @generated
456         */
457        protected PassiveResourceItemProvider passiveResourceItemProvider;
458 
459        /**
460         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.PassiveResource}.
461         * <!-- begin-user-doc -->
462         * <!-- end-user-doc -->
463         * @generated
464         */
465        @Override
466        public Adapter createPassiveResourceAdapter() {
467                if (passiveResourceItemProvider == null) {
468                        passiveResourceItemProvider = new PassiveResourceItemProvider(this);
469                }
470 
471                return passiveResourceItemProvider;
472        }
473 
474        /**
475         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.CompositeDataType} instances.
476         * <!-- begin-user-doc -->
477         * <!-- end-user-doc -->
478         * @generated
479         */
480        protected CompositeDataTypeItemProvider compositeDataTypeItemProvider;
481 
482        /**
483         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.CompositeDataType}.
484         * <!-- begin-user-doc -->
485         * <!-- end-user-doc -->
486         * @generated
487         */
488        @Override
489        public Adapter createCompositeDataTypeAdapter() {
490                if (compositeDataTypeItemProvider == null) {
491                        compositeDataTypeItemProvider = new CompositeDataTypeItemProvider(this);
492                }
493 
494                return compositeDataTypeItemProvider;
495        }
496 
497        /**
498         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.InnerDeclaration} instances.
499         * <!-- begin-user-doc -->
500         * <!-- end-user-doc -->
501         * @generated
502         */
503        protected InnerDeclarationItemProvider innerDeclarationItemProvider;
504 
505        /**
506         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.InnerDeclaration}.
507         * <!-- begin-user-doc -->
508         * <!-- end-user-doc -->
509         * @generated
510         */
511        @Override
512        public Adapter createInnerDeclarationAdapter() {
513                if (innerDeclarationItemProvider == null) {
514                        innerDeclarationItemProvider = new InnerDeclarationItemProvider(this);
515                }
516 
517                return innerDeclarationItemProvider;
518        }
519 
520        /**
521         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.InfrastructureSignature} instances.
522         * <!-- begin-user-doc -->
523         * <!-- end-user-doc -->
524         * @generated
525         */
526        protected InfrastructureSignatureItemProvider infrastructureSignatureItemProvider;
527 
528        /**
529         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.InfrastructureSignature}.
530         * <!-- begin-user-doc -->
531         * <!-- end-user-doc -->
532         * @generated
533         */
534        @Override
535        public Adapter createInfrastructureSignatureAdapter() {
536                if (infrastructureSignatureItemProvider == null) {
537                        infrastructureSignatureItemProvider = new InfrastructureSignatureItemProvider(this);
538                }
539 
540                return infrastructureSignatureItemProvider;
541        }
542 
543        /**
544         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.InfrastructureRequiredRole} instances.
545         * <!-- begin-user-doc -->
546         * <!-- end-user-doc -->
547         * @generated
548         */
549        protected InfrastructureRequiredRoleItemProvider infrastructureRequiredRoleItemProvider;
550 
551        /**
552         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.InfrastructureRequiredRole}.
553         * <!-- begin-user-doc -->
554         * <!-- end-user-doc -->
555         * @generated
556         */
557        @Override
558        public Adapter createInfrastructureRequiredRoleAdapter() {
559                if (infrastructureRequiredRoleItemProvider == null) {
560                        infrastructureRequiredRoleItemProvider = new InfrastructureRequiredRoleItemProvider(this);
561                }
562 
563                return infrastructureRequiredRoleItemProvider;
564        }
565 
566        /**
567         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.InfrastructureInterface} instances.
568         * <!-- begin-user-doc -->
569         * <!-- end-user-doc -->
570         * @generated
571         */
572        protected InfrastructureInterfaceItemProvider infrastructureInterfaceItemProvider;
573 
574        /**
575         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.InfrastructureInterface}.
576         * <!-- begin-user-doc -->
577         * <!-- end-user-doc -->
578         * @generated
579         */
580        @Override
581        public Adapter createInfrastructureInterfaceAdapter() {
582                if (infrastructureInterfaceItemProvider == null) {
583                        infrastructureInterfaceItemProvider = new InfrastructureInterfaceItemProvider(this);
584                }
585 
586                return infrastructureInterfaceItemProvider;
587        }
588 
589        /**
590         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.CompositeComponent} instances.
591         * <!-- begin-user-doc -->
592         * <!-- end-user-doc -->
593         * @generated
594         */
595        protected CompositeComponentItemProvider compositeComponentItemProvider;
596 
597        /**
598         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.CompositeComponent}.
599         * <!-- begin-user-doc -->
600         * <!-- end-user-doc -->
601         * @generated
602         */
603        @Override
604        public Adapter createCompositeComponentAdapter() {
605                if (compositeComponentItemProvider == null) {
606                        compositeComponentItemProvider = new CompositeComponentItemProvider(this);
607                }
608 
609                return compositeComponentItemProvider;
610        }
611 
612        /**
613         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.PrimitiveDataType} instances.
614         * <!-- begin-user-doc -->
615         * <!-- end-user-doc -->
616         * @generated
617         */
618        protected PrimitiveDataTypeItemProvider primitiveDataTypeItemProvider;
619 
620        /**
621         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.PrimitiveDataType}.
622         * <!-- begin-user-doc -->
623         * <!-- end-user-doc -->
624         * @generated
625         */
626        @Override
627        public Adapter createPrimitiveDataTypeAdapter() {
628                if (primitiveDataTypeItemProvider == null) {
629                        primitiveDataTypeItemProvider = new PrimitiveDataTypeItemProvider(this);
630                }
631 
632                return primitiveDataTypeItemProvider;
633        }
634 
635        /**
636         * This keeps track of the one adapter used for all {@link de.uka.ipd.sdq.pcm.repository.CollectionDataType} instances.
637         * <!-- begin-user-doc -->
638         * <!-- end-user-doc -->
639         * @generated
640         */
641        protected CollectionDataTypeItemProvider collectionDataTypeItemProvider;
642 
643        /**
644         * This creates an adapter for a {@link de.uka.ipd.sdq.pcm.repository.CollectionDataType}.
645         * <!-- begin-user-doc -->
646         * <!-- end-user-doc -->
647         * @generated
648         */
649        @Override
650        public Adapter createCollectionDataTypeAdapter() {
651                if (collectionDataTypeItemProvider == null) {
652                        collectionDataTypeItemProvider = new CollectionDataTypeItemProvider(this);
653                }
654 
655                return collectionDataTypeItemProvider;
656        }
657 
658        /**
659         * This returns the root adapter factory that contains this factory.
660         * <!-- begin-user-doc -->
661         * <!-- end-user-doc -->
662         * @generated
663         */
664        public ComposeableAdapterFactory getRootAdapterFactory() {
665                return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
666        }
667 
668        /**
669         * This sets the composed adapter factory that contains this factory.
670         * <!-- begin-user-doc -->
671         * <!-- end-user-doc -->
672         * @generated
673         */
674        public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
675                this.parentAdapterFactory = parentAdapterFactory;
676        }
677 
678        /**
679         * <!-- begin-user-doc -->
680         * <!-- end-user-doc -->
681         * @generated
682         */
683        @Override
684        public boolean isFactoryForType(Object type) {
685                return supportedTypes.contains(type) || super.isFactoryForType(type);
686        }
687 
688        /**
689         * This implementation substitutes the factory itself as the key for the adapter.
690         * <!-- begin-user-doc -->
691         * <!-- end-user-doc -->
692         * @generated
693         */
694        @Override
695        public Adapter adapt(Notifier notifier, Object type) {
696                return super.adapt(notifier, this);
697        }
698 
699        /**
700         * <!-- begin-user-doc -->
701         * <!-- end-user-doc -->
702         * @generated
703         */
704        @Override
705        public Object adapt(Object object, Object type) {
706                if (isFactoryForType(type)) {
707                        Object adapter = super.adapt(object, type);
708                        if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
709                                return adapter;
710                        }
711                }
712 
713                return null;
714        }
715 
716        /**
717         * This adds a listener.
718         * <!-- begin-user-doc -->
719         * <!-- end-user-doc -->
720         * @generated
721         */
722        public void addListener(INotifyChangedListener notifyChangedListener) {
723                changeNotifier.addListener(notifyChangedListener);
724        }
725 
726        /**
727         * This removes a listener.
728         * <!-- begin-user-doc -->
729         * <!-- end-user-doc -->
730         * @generated
731         */
732        public void removeListener(INotifyChangedListener notifyChangedListener) {
733                changeNotifier.removeListener(notifyChangedListener);
734        }
735 
736        /**
737         * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
738         * <!-- begin-user-doc -->
739         * <!-- end-user-doc -->
740         * @generated
741         */
742        public void fireNotifyChanged(Notification notification) {
743                changeNotifier.fireNotifyChanged(notification);
744 
745                if (parentAdapterFactory != null) {
746                        parentAdapterFactory.fireNotifyChanged(notification);
747                }
748        }
749 
750        /**
751         * This disposes all of the item providers created by this factory. 
752         * <!-- begin-user-doc -->
753         * <!-- end-user-doc -->
754         * @generated
755         */
756        public void dispose() {
757                if (passiveResourceItemProvider != null) passiveResourceItemProvider.dispose();
758                if (basicComponentItemProvider != null) basicComponentItemProvider.dispose();
759                if (parameterItemProvider != null) parameterItemProvider.dispose();
760                if (repositoryItemProvider != null) repositoryItemProvider.dispose();
761                if (requiredCharacterisationItemProvider != null) requiredCharacterisationItemProvider.dispose();
762                if (eventGroupItemProvider != null) eventGroupItemProvider.dispose();
763                if (eventTypeItemProvider != null) eventTypeItemProvider.dispose();
764                if (exceptionTypeItemProvider != null) exceptionTypeItemProvider.dispose();
765                if (infrastructureSignatureItemProvider != null) infrastructureSignatureItemProvider.dispose();
766                if (infrastructureInterfaceItemProvider != null) infrastructureInterfaceItemProvider.dispose();
767                if (infrastructureRequiredRoleItemProvider != null) infrastructureRequiredRoleItemProvider.dispose();
768                if (operationSignatureItemProvider != null) operationSignatureItemProvider.dispose();
769                if (operationInterfaceItemProvider != null) operationInterfaceItemProvider.dispose();
770                if (operationRequiredRoleItemProvider != null) operationRequiredRoleItemProvider.dispose();
771                if (sourceRoleItemProvider != null) sourceRoleItemProvider.dispose();
772                if (sinkRoleItemProvider != null) sinkRoleItemProvider.dispose();
773                if (operationProvidedRoleItemProvider != null) operationProvidedRoleItemProvider.dispose();
774                if (infrastructureProvidedRoleItemProvider != null) infrastructureProvidedRoleItemProvider.dispose();
775                if (completeComponentTypeItemProvider != null) completeComponentTypeItemProvider.dispose();
776                if (providesComponentTypeItemProvider != null) providesComponentTypeItemProvider.dispose();
777                if (compositeComponentItemProvider != null) compositeComponentItemProvider.dispose();
778                if (primitiveDataTypeItemProvider != null) primitiveDataTypeItemProvider.dispose();
779                if (collectionDataTypeItemProvider != null) collectionDataTypeItemProvider.dispose();
780                if (compositeDataTypeItemProvider != null) compositeDataTypeItemProvider.dispose();
781                if (innerDeclarationItemProvider != null) innerDeclarationItemProvider.dispose();
782        }
783 
784}

[all classes][de.uka.ipd.sdq.pcm.repository.provider]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov