SAM

org.topcased.sam.provider
Class SAMItemProviderAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.topcased.sam.util.SAMAdapterFactory
          extended by org.topcased.sam.provider.SAMItemProviderAdapterFactory
All Implemented Interfaces:
AdapterFactory, ComposeableAdapterFactory, IChangeNotifier, IDisposable

public class SAMItemProviderAdapterFactory
extends SAMAdapterFactory
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 to fireNotifyChanged. The adapters also support Eclipse property sheets. Note that most of the adapters are shared among multiple instances.

** Generated **

Field Summary
protected  AutomatonItemProvider automatonItemProvider
          This keeps track of the one adapter used for all Automaton instances.
protected  IChangeNotifier changeNotifier
          This is used to implement IChangeNotifier
protected  CompositionItemProvider compositionItemProvider
          This keeps track of the one adapter used for all Composition instances.
protected  ControlFlowItemProvider controlFlowItemProvider
          This keeps track of the one adapter used for all ControlFlow instances.
static java.lang.String copyright
           
protected  DataFlowItemProvider dataFlowItemProvider
          This keeps track of the one adapter used for all DataFlow instances
protected  DataStoreItemProvider dataStoreItemProvider
          This keeps track of the one adapter used for all DataStore instances.
protected  DecompositionItemProvider decompositionItemProvider
          This keeps track of the one adapter used for all Decomposition instances.
protected  InControlPortItemProvider inControlPortItemProvider
          This keeps track of the one adapter used for all InControlPort instances.
protected  InDataPortItemProvider inDataPortItemProvider
          This keeps track of the one adapter used for all InDataPort instances.
protected  InitialStateItemProvider initialStateItemProvider
          This keeps track of the one adapter used for all InitialState instances.
protected  MacroStateItemProvider macroStateItemProvider
          This keeps track of the one adapter used for all MacroState instances.
protected  ModelItemProvider modelItemProvider
          This keeps track of the one adapter used for all Model instances
protected  MultiPortItemProvider multiPortItemProvider
          This keeps track of the one adapter used for all MultiPort instances.
protected  OutControlPortItemProvider outControlPortItemProvider
          This keeps track of the one adapter used for all OutControlPort instances.
protected  OutDataPortItemProvider outDataPortItemProvider
          This keeps track of the one adapter used for all OutDataPort instances.
protected  ComposedAdapterFactory parentAdapterFactory
          This keeps track of the root adapter factory that delegates to this adapter factory
protected  StateItemProvider stateItemProvider
          This keeps track of the one adapter used for all State instances
protected  java.util.Collection<java.lang.Object> supportedTypes
          This keeps track of all the supported types checked by isFactoryForType.
protected  SystemItemProvider systemItemProvider
          This keeps track of the one adapter used for all System instances
protected  TransitionItemProvider transitionItemProvider
          This keeps track of the one adapter used for all Transition instances.
 
Fields inherited from class org.topcased.sam.util.SAMAdapterFactory
modelPackage, modelSwitch
 
Constructor Summary
SAMItemProviderAdapterFactory()
          This constructs an instance
 
Method Summary
 Adapter adapt(Notifier notifier, java.lang.Object type)
          This implementation substitutes the factory itself as the key for the adapter
 java.lang.Object adapt(java.lang.Object object, java.lang.Object type)
           
 void addListener(INotifyChangedListener notifyChangedListener)
          This adds a listener
 Adapter createAutomatonAdapter()
          This creates an adapter for a Automaton
 Adapter createCompositionAdapter()
          This creates an adapter for a Composition.
 Adapter createControlFlowAdapter()
          This creates an adapter for a ControlFlow.
 Adapter createDataFlowAdapter()
          This creates an adapter for a DataFlow
 Adapter createDataStoreAdapter()
          This creates an adapter for a DataStore
 Adapter createDecompositionAdapter()
          This creates an adapter for a Decomposition.
 Adapter createInControlPortAdapter()
          This creates an adapter for a InControlPort.
 Adapter createInDataPortAdapter()
          This creates an adapter for a InDataPort
 Adapter createInitialStateAdapter()
          This creates an adapter for a InitialState.
 Adapter createMacroStateAdapter()
          This creates an adapter for a MacroState
 Adapter createModelAdapter()
          This creates an adapter for a Model
 Adapter createMultiPortAdapter()
          This creates an adapter for a MultiPort
 Adapter createOutControlPortAdapter()
          This creates an adapter for a OutControlPort.
 Adapter createOutDataPortAdapter()
          This creates an adapter for a OutDataPort.
 Adapter createStateAdapter()
          This creates an adapter for a State
 Adapter createSystemAdapter()
          This creates an adapter for a System
 Adapter createTransitionAdapter()
          This creates an adapter for a Transition
 void dispose()
          This disposes all of the item providers created by this factory
 void fireNotifyChanged(Notification notification)
          This delegates to changeNotifier and to parentAdapterFactory
 ComposeableAdapterFactory getRootAdapterFactory()
          This returns the root adapter factory that contains this factory
 boolean isFactoryForType(java.lang.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.topcased.sam.util.SAMAdapterFactory
createAbstractStateAdapter, createAdapter, createControlPortAdapter, createDataPortAdapter, createEModelElementAdapter, createEObjectAdapter, createFlowAdapter, createIdentifiedItemAdapter, createInputPortAdapter, createModelContentAdapter, createNamedItemAdapter, createOutputPortAdapter, createPortAdapter, createSynchronisationGateAdapter
 
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

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
** Generated **

parentAdapterFactory

protected ComposedAdapterFactory parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.

** Generated **

changeNotifier

protected IChangeNotifier changeNotifier
This is used to implement IChangeNotifier.

** Generated **

supportedTypes

protected java.util.Collection<java.lang.Object> supportedTypes
This keeps track of all the supported types checked by isFactoryForType.

** Generated **

automatonItemProvider

protected AutomatonItemProvider automatonItemProvider
This keeps track of the one adapter used for all Automaton instances.

** Generated **

initialStateItemProvider

protected InitialStateItemProvider initialStateItemProvider
This keeps track of the one adapter used for all InitialState instances.

** Generated **

macroStateItemProvider

protected MacroStateItemProvider macroStateItemProvider
This keeps track of the one adapter used for all MacroState instances.

** Generated **

stateItemProvider

protected StateItemProvider stateItemProvider
This keeps track of the one adapter used for all State instances.

** Generated **

transitionItemProvider

protected TransitionItemProvider transitionItemProvider
This keeps track of the one adapter used for all Transition instances.

** Generated **

inControlPortItemProvider

protected InControlPortItemProvider inControlPortItemProvider
This keeps track of the one adapter used for all InControlPort instances.

** Generated **

inDataPortItemProvider

protected InDataPortItemProvider inDataPortItemProvider
This keeps track of the one adapter used for all InDataPort instances.

** Generated **

outControlPortItemProvider

protected OutControlPortItemProvider outControlPortItemProvider
This keeps track of the one adapter used for all OutControlPort instances.

** Generated **

outDataPortItemProvider

protected OutDataPortItemProvider outDataPortItemProvider
This keeps track of the one adapter used for all OutDataPort instances.

** Generated **

compositionItemProvider

protected CompositionItemProvider compositionItemProvider
This keeps track of the one adapter used for all Composition instances.

** Generated **

controlFlowItemProvider

protected ControlFlowItemProvider controlFlowItemProvider
This keeps track of the one adapter used for all ControlFlow instances.

** Generated **

dataFlowItemProvider

protected DataFlowItemProvider dataFlowItemProvider
This keeps track of the one adapter used for all DataFlow instances.

** Generated **

dataStoreItemProvider

protected DataStoreItemProvider dataStoreItemProvider
This keeps track of the one adapter used for all DataStore instances.

** Generated **

decompositionItemProvider

protected DecompositionItemProvider decompositionItemProvider
This keeps track of the one adapter used for all Decomposition instances.

** Generated **

systemItemProvider

protected SystemItemProvider systemItemProvider
This keeps track of the one adapter used for all System instances.

** Generated **

modelItemProvider

protected ModelItemProvider modelItemProvider
This keeps track of the one adapter used for all Model instances.

** Generated **

multiPortItemProvider

protected MultiPortItemProvider multiPortItemProvider
This keeps track of the one adapter used for all MultiPort instances.

** Generated **
Constructor Detail

SAMItemProviderAdapterFactory

public SAMItemProviderAdapterFactory()
This constructs an instance.

** Generated **
Method Detail

createAutomatonAdapter

public Adapter createAutomatonAdapter()
This creates an adapter for a Automaton.

Overrides:
createAutomatonAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Automaton
** Generated **

createInitialStateAdapter

public Adapter createInitialStateAdapter()
This creates an adapter for a InitialState.

Overrides:
createInitialStateAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
InitialState
** Generated **

createMacroStateAdapter

public Adapter createMacroStateAdapter()
This creates an adapter for a MacroState.

Overrides:
createMacroStateAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
MacroState
** Generated **

createStateAdapter

public Adapter createStateAdapter()
This creates an adapter for a State.

Overrides:
createStateAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
State
** Generated **

createTransitionAdapter

public Adapter createTransitionAdapter()
This creates an adapter for a Transition.

Overrides:
createTransitionAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Transition
** Generated **

createInControlPortAdapter

public Adapter createInControlPortAdapter()
This creates an adapter for a InControlPort.

Overrides:
createInControlPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
InControlPort
** Generated **

createInDataPortAdapter

public Adapter createInDataPortAdapter()
This creates an adapter for a InDataPort.

Overrides:
createInDataPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
InDataPort
** Generated **

createOutControlPortAdapter

public Adapter createOutControlPortAdapter()
This creates an adapter for a OutControlPort.

Overrides:
createOutControlPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
OutControlPort
** Generated **

createOutDataPortAdapter

public Adapter createOutDataPortAdapter()
This creates an adapter for a OutDataPort.

Overrides:
createOutDataPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
OutDataPort
** Generated **

createCompositionAdapter

public Adapter createCompositionAdapter()
This creates an adapter for a Composition.

Overrides:
createCompositionAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Composition
** Generated **

createControlFlowAdapter

public Adapter createControlFlowAdapter()
This creates an adapter for a ControlFlow.

Overrides:
createControlFlowAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
ControlFlow
** Generated **

createDataFlowAdapter

public Adapter createDataFlowAdapter()
This creates an adapter for a DataFlow.

Overrides:
createDataFlowAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
DataFlow
** Generated **

createDataStoreAdapter

public Adapter createDataStoreAdapter()
This creates an adapter for a DataStore.

Overrides:
createDataStoreAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
DataStore
** Generated **

createDecompositionAdapter

public Adapter createDecompositionAdapter()
This creates an adapter for a Decomposition.

Overrides:
createDecompositionAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Decomposition
** Generated **

createSystemAdapter

public Adapter createSystemAdapter()
This creates an adapter for a System.

Overrides:
createSystemAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
System
** Generated **

createModelAdapter

public Adapter createModelAdapter()
This creates an adapter for a Model.

Overrides:
createModelAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
Model
** Generated **

createMultiPortAdapter

public Adapter createMultiPortAdapter()
This creates an adapter for a MultiPort.

Overrides:
createMultiPortAdapter in class SAMAdapterFactory
Returns:
the new adapter.
See Also:
MultiPort
** Generated **

getRootAdapterFactory

public ComposeableAdapterFactory getRootAdapterFactory()
This returns the root adapter factory that contains this factory.

Specified by:
getRootAdapterFactory in interface ComposeableAdapterFactory
** Generated **

setParentAdapterFactory

public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.

Specified by:
setParentAdapterFactory in interface ComposeableAdapterFactory
** Generated **

isFactoryForType

public boolean isFactoryForType(java.lang.Object type)

Specified by:
isFactoryForType in interface AdapterFactory
Overrides:
isFactoryForType in class SAMAdapterFactory
Returns:
whether this factory is applicable for the type of the object.
** Generated **

adapt

public Adapter adapt(Notifier notifier,
                     java.lang.Object type)
This implementation substitutes the factory itself as the key for the adapter.

Specified by:
adapt in interface AdapterFactory
Overrides:
adapt in class AdapterFactoryImpl
** Generated **

adapt

public java.lang.Object adapt(java.lang.Object object,
                              java.lang.Object type)

Specified by:
adapt in interface AdapterFactory
Overrides:
adapt in class AdapterFactoryImpl
** Generated **

addListener

public void addListener(INotifyChangedListener notifyChangedListener)
This adds a listener.

Specified by:
addListener in interface IChangeNotifier
** Generated **

removeListener

public void removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.

Specified by:
removeListener in interface IChangeNotifier
** Generated **

fireNotifyChanged

public void fireNotifyChanged(Notification notification)
This delegates to changeNotifier and to parentAdapterFactory.

Specified by:
fireNotifyChanged in interface IChangeNotifier
** Generated **

dispose

public void dispose()
This disposes all of the item providers created by this factory.

Specified by:
dispose in interface IDisposable
** Generated **

SAM

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.