SAM

org.topcased.sam.util
Class SAMAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.topcased.sam.util.SAMAdapterFactory
All Implemented Interfaces:
AdapterFactory
Direct Known Subclasses:
SAMItemProviderAdapterFactory, SAMModelerProviderAdapterFactory

public class SAMAdapterFactory
extends AdapterFactoryImpl

The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.

See Also:
SAMPackage
** Generated **

Field Summary
static java.lang.String copyright
           
protected static SAMPackage modelPackage
          The cached model package
protected  SAMSwitch<Adapter> modelSwitch
          The switch the delegates to the createXXX methods
 
Constructor Summary
SAMAdapterFactory()
          Creates an instance of the adapter factory
 
Method Summary
 Adapter createAbstractStateAdapter()
          Creates a new adapter for an object of class 'Abstract State'
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target
 Adapter createAutomatonAdapter()
          Creates a new adapter for an object of class 'Automaton'.
 Adapter createCompositionAdapter()
          Creates a new adapter for an object of class 'Composition'.
 Adapter createControlFlowAdapter()
          Creates a new adapter for an object of class 'Control Flow'.
 Adapter createControlPortAdapter()
          Creates a new adapter for an object of class 'Control Port'.
 Adapter createDataFlowAdapter()
          Creates a new adapter for an object of class 'Data Flow'.
 Adapter createDataPortAdapter()
          Creates a new adapter for an object of class 'Data Port'.
 Adapter createDataStoreAdapter()
          Creates a new adapter for an object of class 'Data Store'.
 Adapter createDecompositionAdapter()
          Creates a new adapter for an object of class 'Decomposition'
 Adapter createEModelElementAdapter()
          Creates a new adapter for an object of class 'EModel Element'
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case
 Adapter createFlowAdapter()
          Creates a new adapter for an object of class 'Flow'
 Adapter createIdentifiedItemAdapter()
          Creates a new adapter for an object of class 'Identified Item'
 Adapter createInControlPortAdapter()
          Creates a new adapter for an object of class 'In Control Port'
 Adapter createInDataPortAdapter()
          Creates a new adapter for an object of class 'In Data Port'.
 Adapter createInitialStateAdapter()
          Creates a new adapter for an object of class 'Initial State'
 Adapter createInputPortAdapter()
          Creates a new adapter for an object of class 'Input Port'.
 Adapter createMacroStateAdapter()
          Creates a new adapter for an object of class 'Macro State'.
 Adapter createModelAdapter()
          Creates a new adapter for an object of class 'Model'.
 Adapter createModelContentAdapter()
          Creates a new adapter for an object of class 'Model Content'
 Adapter createMultiPortAdapter()
          Creates a new adapter for an object of class 'Multi Port'.
 Adapter createNamedItemAdapter()
          Creates a new adapter for an object of class 'Named Item'.
 Adapter createOutControlPortAdapter()
          Creates a new adapter for an object of class 'Out Control Port'
 Adapter createOutDataPortAdapter()
          Creates a new adapter for an object of class 'Out Data Port'
 Adapter createOutputPortAdapter()
          Creates a new adapter for an object of class 'Output Port'.
 Adapter createPortAdapter()
          Creates a new adapter for an object of class 'Port'
 Adapter createStateAdapter()
          Creates a new adapter for an object of class 'State'.
 Adapter createSynchronisationGateAdapter()
          Creates a new adapter for an object of class 'Synchronisation Gate'
 Adapter createSystemAdapter()
          Creates a new adapter for an object of class 'System'.
 Adapter createTransitionAdapter()
          Creates a new adapter for an object of class 'Transition'.
 boolean isFactoryForType(java.lang.Object object)
          Returns whether this factory is applicable for the type of the object
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
** Generated **

modelPackage

protected static SAMPackage modelPackage
The cached model package.

** Generated **

modelSwitch

protected SAMSwitch<Adapter> modelSwitch
The switch the delegates to the createXXX methods.

** Generated **
Constructor Detail

SAMAdapterFactory

public SAMAdapterFactory()
Creates an instance of the adapter factory.

** Generated **
Method Detail

isFactoryForType

public boolean isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.

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

createAdapter

public Adapter createAdapter(Notifier target)
Creates an adapter for the target.

Overrides:
createAdapter in class AdapterFactoryImpl
Parameters:
target - the object to adapt.
Returns:
the adapter for the target.
** Generated **

createAbstractStateAdapter

public Adapter createAbstractStateAdapter()
Creates a new adapter for an object of class 'Abstract State'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
AbstractState
** Generated **

createAutomatonAdapter

public Adapter createAutomatonAdapter()
Creates a new adapter for an object of class 'Automaton'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Automaton
** Generated **

createInitialStateAdapter

public Adapter createInitialStateAdapter()
Creates a new adapter for an object of class 'Initial State'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
InitialState
** Generated **

createMacroStateAdapter

public Adapter createMacroStateAdapter()
Creates a new adapter for an object of class 'Macro State'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
MacroState
** Generated **

createStateAdapter

public Adapter createStateAdapter()
Creates a new adapter for an object of class 'State'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
State
** Generated **

createTransitionAdapter

public Adapter createTransitionAdapter()
Creates a new adapter for an object of class 'Transition'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Transition
** Generated **

createControlPortAdapter

public Adapter createControlPortAdapter()
Creates a new adapter for an object of class 'Control Port'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
ControlPort
** Generated **

createDataPortAdapter

public Adapter createDataPortAdapter()
Creates a new adapter for an object of class 'Data Port'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
DataPort
** Generated **

createInControlPortAdapter

public Adapter createInControlPortAdapter()
Creates a new adapter for an object of class 'In Control Port'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
InControlPort
** Generated **

createInDataPortAdapter

public Adapter createInDataPortAdapter()
Creates a new adapter for an object of class 'In Data Port'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
InDataPort
** Generated **

createInputPortAdapter

public Adapter createInputPortAdapter()
Creates a new adapter for an object of class 'Input Port'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
InputPort
** Generated **

createOutControlPortAdapter

public Adapter createOutControlPortAdapter()
Creates a new adapter for an object of class 'Out Control Port'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
OutControlPort
** Generated **

createOutDataPortAdapter

public Adapter createOutDataPortAdapter()
Creates a new adapter for an object of class 'Out Data Port'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
OutDataPort
** Generated **

createOutputPortAdapter

public Adapter createOutputPortAdapter()
Creates a new adapter for an object of class 'Output Port'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
OutputPort
** Generated **

createPortAdapter

public Adapter createPortAdapter()
Creates a new adapter for an object of class 'Port'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Port
** Generated **

createCompositionAdapter

public Adapter createCompositionAdapter()
Creates a new adapter for an object of class 'Composition'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Composition
** Generated **

createControlFlowAdapter

public Adapter createControlFlowAdapter()
Creates a new adapter for an object of class 'Control Flow'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
ControlFlow
** Generated **

createDataFlowAdapter

public Adapter createDataFlowAdapter()
Creates a new adapter for an object of class 'Data Flow'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
DataFlow
** Generated **

createDataStoreAdapter

public Adapter createDataStoreAdapter()
Creates a new adapter for an object of class 'Data Store'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
DataStore
** Generated **

createDecompositionAdapter

public Adapter createDecompositionAdapter()
Creates a new adapter for an object of class 'Decomposition'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Decomposition
** Generated **

createFlowAdapter

public Adapter createFlowAdapter()
Creates a new adapter for an object of class 'Flow'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Flow
** Generated **

createSynchronisationGateAdapter

public Adapter createSynchronisationGateAdapter()
Creates a new adapter for an object of class 'Synchronisation Gate'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
SynchronisationGate
** Generated **

createSystemAdapter

public Adapter createSystemAdapter()
Creates a new adapter for an object of class 'System'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
System
** Generated **

createModelAdapter

public Adapter createModelAdapter()
Creates a new adapter for an object of class 'Model'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
Model
** Generated **

createModelContentAdapter

public Adapter createModelContentAdapter()
Creates a new adapter for an object of class 'Model Content'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
ModelContent
** Generated **

createIdentifiedItemAdapter

public Adapter createIdentifiedItemAdapter()
Creates a new adapter for an object of class 'Identified Item'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
IdentifiedItem
** Generated **

createNamedItemAdapter

public Adapter createNamedItemAdapter()
Creates a new adapter for an object of class 'Named Item'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
NamedItem
** Generated **

createMultiPortAdapter

public Adapter createMultiPortAdapter()
Creates a new adapter for an object of class 'Multi Port'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
MultiPort
** Generated **

createEModelElementAdapter

public Adapter createEModelElementAdapter()
Creates a new adapter for an object of class 'EModel Element'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.

Returns:
the new adapter.
See Also:
EModelElement
** Generated **

createEObjectAdapter

public Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.

Returns:
the new adapter.
** Generated **

SAM

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