Class QualityModelItemProviderAdapterFactory
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- org.palladiosimulator.qualitymodel.util.QualityModelAdapterFactory
-
- org.palladiosimulator.qualitymodel.provider.QualityModelItemProviderAdapterFactory
-
- All Implemented Interfaces:
AdapterFactory
,ComposeableAdapterFactory
,IChangeNotifier
,IDisposable
public class QualityModelItemProviderAdapterFactory extends QualityModelAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable
This is the factory that is used to provide the interfaces needed to support Viewers. The adapters generated by this factory convert EMF adapter notifications into calls tofireNotifyChanged
. The adapters also support Eclipse property sheets. Note that most of the adapters are shared among multiple instances.- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description protected IChangeNotifier
changeNotifier
This is used to implementIChangeNotifier
.protected MappingEntryItemProvider
mappingEntryItemProvider
This keeps track of the one adapter used for allMappingEntry
instances.protected MappingItemProvider
mappingItemProvider
This keeps track of the one adapter used for allMapping
instances.protected MappingRepositoryItemProvider
mappingRepositoryItemProvider
This keeps track of the one adapter used for allMappingRepository
instances.protected NqrItemProvider
nqrItemProvider
This keeps track of the one adapter used for allNqr
instances.protected NqrRepositoryItemProvider
nqrRepositoryItemProvider
This keeps track of the one adapter used for allNqrRepository
instances.protected ComposedAdapterFactory
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.protected QuantityReductionItemProvider
quantityReductionItemProvider
This keeps track of the one adapter used for allQuantityReduction
instances.protected ReasoningComponentItemProvider
reasoningComponentItemProvider
This keeps track of the one adapter used for allReasoningComponent
instances.protected ReasoningItemProvider
reasoningItemProvider
This keeps track of the one adapter used for allReasoning
instances.protected ReasoningRepositoryItemProvider
reasoningRepositoryItemProvider
This keeps track of the one adapter used for allReasoningRepository
instances.protected ReasoningSystemItemProvider
reasoningSystemItemProvider
This keeps track of the one adapter used for allReasoningSystem
instances.protected StatisticReductionItemProvider
statisticReductionItemProvider
This keeps track of the one adapter used for allStatisticReduction
instances.protected Collection
supportedTypes
This keeps track of all the supported types checked byisFactoryForType
.protected TransformationItemProvider
transformationItemProvider
This keeps track of the one adapter used for allTransformation
instances.protected TransformationRepositoryItemProvider
transformationRepositoryItemProvider
This keeps track of the one adapter used for allTransformationRepository
instances.-
Fields inherited from class org.palladiosimulator.qualitymodel.util.QualityModelAdapterFactory
modelPackage, modelSwitch
-
-
Constructor Summary
Constructors Constructor Description QualityModelItemProviderAdapterFactory()
This constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
adapt(Object object, Object type)
Adapter
adapt(Notifier notifier, Object type)
This implementation substitutes the factory itself as the key for the adapter.void
addListener(INotifyChangedListener notifyChangedListener)
This adds a listener.Adapter
createMappingAdapter()
This creates an adapter for aMapping
.Adapter
createMappingEntryAdapter()
This creates an adapter for aMappingEntry
.Adapter
createMappingRepositoryAdapter()
This creates an adapter for aMappingRepository
.Adapter
createNqrAdapter()
This creates an adapter for aNqr
.Adapter
createNqrRepositoryAdapter()
This creates an adapter for aNqrRepository
.Adapter
createQuantityReductionAdapter()
This creates an adapter for aQuantityReduction
.Adapter
createReasoningAdapter()
This creates an adapter for aReasoning
.Adapter
createReasoningComponentAdapter()
This creates an adapter for aReasoningComponent
.Adapter
createReasoningRepositoryAdapter()
This creates an adapter for aReasoningRepository
.Adapter
createReasoningSystemAdapter()
This creates an adapter for aReasoningSystem
.Adapter
createStatisticReductionAdapter()
This creates an adapter for aStatisticReduction
.Adapter
createTransformationAdapter()
This creates an adapter for aTransformation
.Adapter
createTransformationRepositoryAdapter()
This creates an adapter for aTransformationRepository
.void
dispose()
This disposes all of the item providers created by this factory.void
fireNotifyChanged(Notification notification)
This delegates tochangeNotifier
and toparentAdapterFactory
.ComposeableAdapterFactory
getRootAdapterFactory()
This returns the root adapter factory that contains this factory.boolean
isFactoryForType(Object type)
void
removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.void
setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.-
Methods inherited from class org.palladiosimulator.qualitymodel.util.QualityModelAdapterFactory
createAdapter, createEntityAdapter, createEObjectAdapter, createIdentifierAdapter, createNamedElementAdapter, createReductionAdapter
-
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adaptAllNew, adaptNew, associate, createAdapter, resolve
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emf.common.notify.AdapterFactory
adaptAllNew, adaptNew
-
-
-
-
Field Detail
-
parentAdapterFactory
protected ComposedAdapterFactory parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.- Generated class or method.
-
changeNotifier
protected IChangeNotifier changeNotifier
This is used to implementIChangeNotifier
.- Generated class or method.
-
supportedTypes
protected Collection supportedTypes
This keeps track of all the supported types checked byisFactoryForType
.- Generated class or method.
-
nqrItemProvider
protected NqrItemProvider nqrItemProvider
This keeps track of the one adapter used for allNqr
instances.- Generated class or method.
-
mappingItemProvider
protected MappingItemProvider mappingItemProvider
This keeps track of the one adapter used for allMapping
instances.- Generated class or method.
-
transformationItemProvider
protected TransformationItemProvider transformationItemProvider
This keeps track of the one adapter used for allTransformation
instances.- Generated class or method.
-
reasoningItemProvider
protected ReasoningItemProvider reasoningItemProvider
This keeps track of the one adapter used for allReasoning
instances.- Generated class or method.
-
quantityReductionItemProvider
protected QuantityReductionItemProvider quantityReductionItemProvider
This keeps track of the one adapter used for allQuantityReduction
instances.- Generated class or method.
-
statisticReductionItemProvider
protected StatisticReductionItemProvider statisticReductionItemProvider
This keeps track of the one adapter used for allStatisticReduction
instances.- Generated class or method.
-
mappingRepositoryItemProvider
protected MappingRepositoryItemProvider mappingRepositoryItemProvider
This keeps track of the one adapter used for allMappingRepository
instances.- Generated class or method.
-
mappingEntryItemProvider
protected MappingEntryItemProvider mappingEntryItemProvider
This keeps track of the one adapter used for allMappingEntry
instances.- Generated class or method.
-
transformationRepositoryItemProvider
protected TransformationRepositoryItemProvider transformationRepositoryItemProvider
This keeps track of the one adapter used for allTransformationRepository
instances.- Generated class or method.
-
reasoningRepositoryItemProvider
protected ReasoningRepositoryItemProvider reasoningRepositoryItemProvider
This keeps track of the one adapter used for allReasoningRepository
instances.- Generated class or method.
-
nqrRepositoryItemProvider
protected NqrRepositoryItemProvider nqrRepositoryItemProvider
This keeps track of the one adapter used for allNqrRepository
instances.- Generated class or method.
-
reasoningComponentItemProvider
protected ReasoningComponentItemProvider reasoningComponentItemProvider
This keeps track of the one adapter used for allReasoningComponent
instances.- Generated class or method.
-
reasoningSystemItemProvider
protected ReasoningSystemItemProvider reasoningSystemItemProvider
This keeps track of the one adapter used for allReasoningSystem
instances.- Generated class or method.
-
-
Method Detail
-
createNqrAdapter
public Adapter createNqrAdapter()
This creates an adapter for aNqr
.- Overrides:
createNqrAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
Nqr
- Generated class or method.
-
createMappingAdapter
public Adapter createMappingAdapter()
This creates an adapter for aMapping
.- Overrides:
createMappingAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
Mapping
- Generated class or method.
-
createTransformationAdapter
public Adapter createTransformationAdapter()
This creates an adapter for aTransformation
.- Overrides:
createTransformationAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
Transformation
- Generated class or method.
-
createReasoningAdapter
public Adapter createReasoningAdapter()
This creates an adapter for aReasoning
.- Overrides:
createReasoningAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
Reasoning
- Generated class or method.
-
createQuantityReductionAdapter
public Adapter createQuantityReductionAdapter()
This creates an adapter for aQuantityReduction
.- Overrides:
createQuantityReductionAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
QuantityReduction
- Generated class or method.
-
createStatisticReductionAdapter
public Adapter createStatisticReductionAdapter()
This creates an adapter for aStatisticReduction
.- Overrides:
createStatisticReductionAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
StatisticReduction
- Generated class or method.
-
createMappingRepositoryAdapter
public Adapter createMappingRepositoryAdapter()
This creates an adapter for aMappingRepository
.- Overrides:
createMappingRepositoryAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
MappingRepository
- Generated class or method.
-
createMappingEntryAdapter
public Adapter createMappingEntryAdapter()
This creates an adapter for aMappingEntry
.- Overrides:
createMappingEntryAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
MappingEntry
- Generated class or method.
-
createTransformationRepositoryAdapter
public Adapter createTransformationRepositoryAdapter()
This creates an adapter for aTransformationRepository
.- Overrides:
createTransformationRepositoryAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
TransformationRepository
- Generated class or method.
-
createReasoningRepositoryAdapter
public Adapter createReasoningRepositoryAdapter()
This creates an adapter for aReasoningRepository
.- Overrides:
createReasoningRepositoryAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
ReasoningRepository
- Generated class or method.
-
createNqrRepositoryAdapter
public Adapter createNqrRepositoryAdapter()
This creates an adapter for aNqrRepository
.- Overrides:
createNqrRepositoryAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
NqrRepository
- Generated class or method.
-
createReasoningComponentAdapter
public Adapter createReasoningComponentAdapter()
This creates an adapter for aReasoningComponent
.- Overrides:
createReasoningComponentAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
ReasoningComponent
- Generated class or method.
-
createReasoningSystemAdapter
public Adapter createReasoningSystemAdapter()
This creates an adapter for aReasoningSystem
.- Overrides:
createReasoningSystemAdapter
in classQualityModelAdapterFactory
- Returns:
- the new adapter.
- See Also:
ReasoningSystem
- Generated class or method.
-
getRootAdapterFactory
public ComposeableAdapterFactory getRootAdapterFactory()
This returns the root adapter factory that contains this factory.- Specified by:
getRootAdapterFactory
in interfaceComposeableAdapterFactory
- Generated class or method.
-
setParentAdapterFactory
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.- Specified by:
setParentAdapterFactory
in interfaceComposeableAdapterFactory
- Generated class or method.
-
isFactoryForType
public boolean isFactoryForType(Object type)
- Specified by:
isFactoryForType
in interfaceAdapterFactory
- Overrides:
isFactoryForType
in classQualityModelAdapterFactory
- Returns:
- whether this factory is applicable for the type of the object.
- Generated class or method.
-
adapt
public Adapter adapt(Notifier notifier, Object type)
This implementation substitutes the factory itself as the key for the adapter.- Specified by:
adapt
in interfaceAdapterFactory
- Overrides:
adapt
in classAdapterFactoryImpl
- Generated class or method.
-
adapt
public Object adapt(Object object, Object type)
- Specified by:
adapt
in interfaceAdapterFactory
- Overrides:
adapt
in classAdapterFactoryImpl
- Generated class or method.
-
addListener
public void addListener(INotifyChangedListener notifyChangedListener)
This adds a listener.- Specified by:
addListener
in interfaceIChangeNotifier
- Generated class or method.
-
removeListener
public void removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.- Specified by:
removeListener
in interfaceIChangeNotifier
- Generated class or method.
-
fireNotifyChanged
public void fireNotifyChanged(Notification notification)
This delegates tochangeNotifier
and toparentAdapterFactory
.- Specified by:
fireNotifyChanged
in interfaceIChangeNotifier
- Generated class or method.
-
dispose
public void dispose()
This disposes all of the item providers created by this factory.- Specified by:
dispose
in interfaceIDisposable
- Generated class or method.
-
-