org.eclipse.etrice.generator.etricegen.util
Class ETriceGenAdapterFactory

java.lang.Object
  extended by AdapterFactoryImpl
      extended by org.eclipse.etrice.generator.etricegen.util.ETriceGenAdapterFactory

public class ETriceGenAdapterFactory
extends AdapterFactoryImpl

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

See Also:
ETriceGenPackage
EMF generated code

Field Summary
protected static ETriceGenPackage modelPackage
          The cached model package.
protected  ETriceGenSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
ETriceGenAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createActiveTriggerAdapter()
          Creates a new adapter for an object of class 'Active Trigger'.
 Adapter createActorClassAdapter()
          Creates a new adapter for an object of class 'Actor Class'.
 Adapter createActorContainerClassAdapter()
          Creates a new adapter for an object of class 'Actor Container Class'.
 Adapter createActorInstanceAdapter()
          Creates a new adapter for an object of class 'Actor Instance'.
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createBindingInstanceAdapter()
          Creates a new adapter for an object of class 'Binding Instance'.
 Adapter createConnectionInstanceAdapter()
          Creates a new adapter for an object of class 'Connection Instance'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 Adapter createExpandedActorClassAdapter()
          Creates a new adapter for an object of class 'Expanded Actor Class'.
 Adapter createIDiagnosticianAdapter()
          Creates a new adapter for an object of class 'IDiagnostician'.
 Adapter createInstanceBaseAdapter()
          Creates a new adapter for an object of class 'Instance Base'.
 Adapter createInterfaceItemInstanceAdapter()
          Creates a new adapter for an object of class 'Interface Item Instance'.
 Adapter createITransitionChainVisitorAdapter()
          Creates a new adapter for an object of class 'ITransition Chain Visitor'.
 Adapter createPortInstanceAdapter()
          Creates a new adapter for an object of class 'Port Instance'.
 Adapter createRoomClassAdapter()
          Creates a new adapter for an object of class 'Class'.
 Adapter createRootAdapter()
          Creates a new adapter for an object of class 'Root'.
 Adapter createSAPInstanceAdapter()
          Creates a new adapter for an object of class 'SAP Instance'.
 Adapter createServiceImplInstanceAdapter()
          Creates a new adapter for an object of class 'Service Impl Instance'.
 Adapter createSPPInstanceAdapter()
          Creates a new adapter for an object of class 'SPP Instance'.
 Adapter createStructureClassAdapter()
          Creates a new adapter for an object of class 'Structure Class'.
 Adapter createStructureInstanceAdapter()
          Creates a new adapter for an object of class 'Structure Instance'.
 Adapter createSubSystemInstanceAdapter()
          Creates a new adapter for an object of class 'Sub System Instance'.
 Adapter createTransitionChainAdapter()
          Creates a new adapter for an object of class 'Transition Chain'.
 boolean isFactoryForType(java.lang.Object object)
          Returns whether this factory is applicable for the type of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static ETriceGenPackage modelPackage
The cached model package.

EMF generated code

modelSwitch

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

EMF generated code
Constructor Detail

ETriceGenAdapterFactory

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

EMF generated code
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.

Returns:
whether this factory is applicable for the type of the object.
EMF generated code

createAdapter

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

Parameters:
target - the object to adapt.
Returns:
the adapter for the target.
EMF generated code

createRootAdapter

public Adapter createRootAdapter()
Creates a new adapter for an object of class 'Root'. 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:
Root
EMF generated code

createInstanceBaseAdapter

public Adapter createInstanceBaseAdapter()
Creates a new adapter for an object of class 'Instance Base'. 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:
InstanceBase
EMF generated code

createStructureInstanceAdapter

public Adapter createStructureInstanceAdapter()
Creates a new adapter for an object of class 'Structure Instance'. 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:
StructureInstance
EMF generated code

createSubSystemInstanceAdapter

public Adapter createSubSystemInstanceAdapter()
Creates a new adapter for an object of class 'Sub System Instance'. 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:
SubSystemInstance
EMF generated code

createActorInstanceAdapter

public Adapter createActorInstanceAdapter()
Creates a new adapter for an object of class 'Actor Instance'. 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:
ActorInstance
EMF generated code

createInterfaceItemInstanceAdapter

public Adapter createInterfaceItemInstanceAdapter()
Creates a new adapter for an object of class 'Interface Item Instance'. 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:
InterfaceItemInstance
EMF generated code

createPortInstanceAdapter

public Adapter createPortInstanceAdapter()
Creates a new adapter for an object of class 'Port Instance'. 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:
PortInstance
EMF generated code

createBindingInstanceAdapter

public Adapter createBindingInstanceAdapter()
Creates a new adapter for an object of class 'Binding Instance'. 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:
BindingInstance
EMF generated code

createSAPInstanceAdapter

public Adapter createSAPInstanceAdapter()
Creates a new adapter for an object of class 'SAP Instance'. 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:
SAPInstance
EMF generated code

createSPPInstanceAdapter

public Adapter createSPPInstanceAdapter()
Creates a new adapter for an object of class 'SPP Instance'. 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:
SPPInstance
EMF generated code

createServiceImplInstanceAdapter

public Adapter createServiceImplInstanceAdapter()
Creates a new adapter for an object of class 'Service Impl Instance'. 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:
ServiceImplInstance
EMF generated code

createConnectionInstanceAdapter

public Adapter createConnectionInstanceAdapter()
Creates a new adapter for an object of class 'Connection Instance'. 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:
ConnectionInstance
EMF generated code

createActiveTriggerAdapter

public Adapter createActiveTriggerAdapter()
Creates a new adapter for an object of class 'Active Trigger'. 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:
ActiveTrigger
EMF generated code

createTransitionChainAdapter

public Adapter createTransitionChainAdapter()
Creates a new adapter for an object of class 'Transition Chain'. 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:
TransitionChain
EMF generated code

createITransitionChainVisitorAdapter

public Adapter createITransitionChainVisitorAdapter()
Creates a new adapter for an object of class 'ITransition Chain Visitor'. 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:
ITransitionChainVisitor
EMF generated code

createIDiagnosticianAdapter

public Adapter createIDiagnosticianAdapter()
Creates a new adapter for an object of class 'IDiagnostician'. 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:
IDiagnostician
EMF generated code

createExpandedActorClassAdapter

public Adapter createExpandedActorClassAdapter()
Creates a new adapter for an object of class 'Expanded Actor Class'. 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:
ExpandedActorClass
EMF generated code

createRoomClassAdapter

public Adapter createRoomClassAdapter()
Creates a new adapter for an object of class 'Class'. 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:
RoomClass
EMF generated code

createStructureClassAdapter

public Adapter createStructureClassAdapter()
Creates a new adapter for an object of class 'Structure Class'. 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:
StructureClass
EMF generated code

createActorContainerClassAdapter

public Adapter createActorContainerClassAdapter()
Creates a new adapter for an object of class 'Actor Container Class'. 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:
ActorContainerClass
EMF generated code

createActorClassAdapter

public Adapter createActorClassAdapter()
Creates a new adapter for an object of class 'Actor Class'. 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:
ActorClass
EMF generated code

createEObjectAdapter

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

Returns:
the new adapter.
EMF generated code