ujf.verimag.bip.Extra.Contracts.util
Class ContractsAdapterFactory

java.lang.Object
  extended by AdapterFactoryImpl
      extended by ujf.verimag.bip.Extra.Contracts.util.ContractsAdapterFactory

public class ContractsAdapterFactory
extends AdapterFactoryImpl

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

See Also:
ContractsPackage

Field Summary
protected static ContractsPackage modelPackage
          The cached model package.
protected  ContractsSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
ContractsAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createBindingAdapter()
          Creates a new adapter for an object of class 'Binding'.
 Adapter createBipTypeAdapter()
          Creates a new adapter for an object of class 'Bip Type'.
 Adapter createComponentTypeAdapter()
          Creates a new adapter for an object of class 'Component Type'.
 Adapter createCompoundTypeAdapter()
          Creates a new adapter for an object of class 'Compound Type'.
 Adapter createContractAdapter()
          Creates a new adapter for an object of class 'Contract'.
 Adapter createContractBindingAdapter()
          Creates a new adapter for an object of class 'Contract Binding'.
 Adapter createContractStateAdapter()
          Creates a new adapter for an object of class 'Contract State'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 Adapter createExportBindingAdapter()
          Creates a new adapter for an object of class 'Export Binding'.
 Adapter createInnerPortSpecificationAdapter()
          Creates a new adapter for an object of class 'Inner Port Specification'.
 Adapter createNamedElementAdapter()
          Creates a new adapter for an object of class 'Named Element'.
 Adapter createParameterizedElementAdapter()
          Creates a new adapter for an object of class 'Parameterized Element'.
 Adapter createPartTypeAdapter()
          Creates a new adapter for an object of class 'Part Type'.
 Adapter createStateAdapter()
          Creates a new adapter for an object of class 'State'.
 Adapter createTraceableElementAdapter()
          Creates a new adapter for an object of class 'Traceable Element'.
 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 ContractsPackage modelPackage
The cached model package.


modelSwitch

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

Constructor Detail

ContractsAdapterFactory

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

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.

createAdapter

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

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

createContractAdapter

public Adapter createContractAdapter()
Creates a new adapter for an object of class 'Contract'. 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:
Contract

createContractStateAdapter

public Adapter createContractStateAdapter()
Creates a new adapter for an object of class 'Contract 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:
ContractState

createContractBindingAdapter

public Adapter createContractBindingAdapter()
Creates a new adapter for an object of class 'Contract Binding'. 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:
ContractBinding

createNamedElementAdapter

public Adapter createNamedElementAdapter()
Creates a new adapter for an object of class 'Named 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:
NamedElement

createParameterizedElementAdapter

public Adapter createParameterizedElementAdapter()
Creates a new adapter for an object of class 'Parameterized 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:
ParameterizedElement

createTraceableElementAdapter

public Adapter createTraceableElementAdapter()
Creates a new adapter for an object of class 'Traceable 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:
TraceableElement

createBipTypeAdapter

public Adapter createBipTypeAdapter()
Creates a new adapter for an object of class 'Bip Type'. 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:
BipType

createPartTypeAdapter

public Adapter createPartTypeAdapter()
Creates a new adapter for an object of class 'Part Type'. 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:
PartType

createComponentTypeAdapter

public Adapter createComponentTypeAdapter()
Creates a new adapter for an object of class 'Component Type'. 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:
ComponentType

createCompoundTypeAdapter

public Adapter createCompoundTypeAdapter()
Creates a new adapter for an object of class 'Compound Type'. 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:
CompoundType

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

createInnerPortSpecificationAdapter

public Adapter createInnerPortSpecificationAdapter()
Creates a new adapter for an object of class 'Inner Port Specification'. 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:
InnerPortSpecification

createBindingAdapter

public Adapter createBindingAdapter()
Creates a new adapter for an object of class 'Binding'. 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:
Binding

createExportBindingAdapter

public Adapter createExportBindingAdapter()
Creates a new adapter for an object of class 'Export Binding'. 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:
ExportBinding

createEObjectAdapter

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

Returns:
the new adapter.