EGF Engine
Release 0.1.0

org.eclipse.egf.model.util
Class ModelAdapterFactory

java.lang.Object
  extended by AdapterFactoryImpl
      extended by org.eclipse.egf.model.util.ModelAdapterFactory
Direct Known Subclasses:
ModelItemProviderAdapterFactory

public class ModelAdapterFactory
extends AdapterFactoryImpl

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

See Also:
ModelPackage

Field Summary
protected static ModelPackage modelPackage
          The cached model package
protected  ModelSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods
 
Constructor Summary
ModelAdapterFactory()
          Creates an instance of the adapter factory
 
Method Summary
 Adapter createAbstractFactoryComponentFactoryAdapter()
          Creates a new adapter for an object of class 'Abstract Factory Component Factory'
 Adapter createAbstractPatternElementAdapter()
          Creates a new adapter for an object of class 'Abstract Pattern Element'
 Adapter createAbstractViewpointAdapter()
          Creates a new adapter for an object of class 'Abstract Viewpoint'
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target
 Adapter createContextAdapter()
          Creates a new adapter for an object of class 'Context'
 Adapter createContextElementAdapter()
          Creates a new adapter for an object of class 'Context Element'
 Adapter createContractAdapter()
          Creates a new adapter for an object of class 'Contract'
 Adapter createContractElementAdapter()
          Creates a new adapter for an object of class 'Contract Element'
 Adapter createContractElementReferenceAdapter()
          Creates a new adapter for an object of class 'Contract Element Reference'.
 Adapter createDomainAdapter()
          Creates a new adapter for an object of class 'Domain'
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case
 Adapter createFactoryAdapter()
          Creates a new adapter for an object of class 'Factory'
 Adapter createFactoryComponentAdapter()
          Creates a new adapter for an object of class 'Factory Component'
 Adapter createFactoryComponentInvocationAdapter()
          Creates a new adapter for an object of class 'Factory Component Invocation'
 Adapter createMappingModelAdapter()
          Creates a new adapter for an object of class 'Mapping Model'
 Adapter createMappingViewpointAdapter()
          Creates a new adapter for an object of class 'Mapping Viewpoint'
 Adapter createNamedModelElementWithIdAdapter()
          Creates a new adapter for an object of class 'Named Model Element With Id'.
 Adapter createPatternLibraryAdapter()
          Creates a new adapter for an object of class 'Pattern Library'
 Adapter createPatternModelAdapter()
          Creates a new adapter for an object of class 'Pattern Model'
 Adapter createPatternViewpointAdapter()
          Creates a new adapter for an object of class 'Pattern Viewpoint'
 Adapter createProductionPlanAdapter()
          Creates a new adapter for an object of class 'Production Plan'
 Adapter createSpecificationAdapter()
          Creates a new adapter for an object of class 'Specification'
 Adapter createTaskFactoryHolderAdapter()
          Creates a new adapter for an object of class 'Task Factory Holder'
 Adapter createTypeAdapter()
          Creates a new adapter for an object of class 'Type'
 boolean isFactoryForType(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 ModelPackage modelPackage
The cached model package.


modelSwitch

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

Constructor Detail

ModelAdapterFactory

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

Method Detail

isFactoryForType

public boolean isFactoryForType(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.

createNamedModelElementWithIdAdapter

public Adapter createNamedModelElementWithIdAdapter()
Creates a new adapter for an object of class 'Named Model Element With Id'. 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:
NamedModelElementWithId

createFactoryComponentAdapter

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

createDomainAdapter

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

createSpecificationAdapter

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

createAbstractViewpointAdapter

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

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

createContractElementAdapter

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

createContractElementReferenceAdapter

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

createTypeAdapter

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

createPatternViewpointAdapter

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

createAbstractPatternElementAdapter

public Adapter createAbstractPatternElementAdapter()
Creates a new adapter for an object of class 'Abstract Pattern 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:
AbstractPatternElement

createPatternLibraryAdapter

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

createPatternModelAdapter

public Adapter createPatternModelAdapter()
Creates a new adapter for an object of class 'Pattern 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:
PatternModel

createFactoryAdapter

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

createAbstractFactoryComponentFactoryAdapter

public Adapter createAbstractFactoryComponentFactoryAdapter()
Creates a new adapter for an object of class 'Abstract Factory Component Factory'. 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:
AbstractFactoryComponentFactory

createProductionPlanAdapter

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

createContextAdapter

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

createContextElementAdapter

public Adapter createContextElementAdapter()
Creates a new adapter for an object of class 'Context 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:
ContextElement

createFactoryComponentInvocationAdapter

public Adapter createFactoryComponentInvocationAdapter()
Creates a new adapter for an object of class 'Factory Component Invocation'. 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:
FactoryComponentInvocation

createTaskFactoryHolderAdapter

public Adapter createTaskFactoryHolderAdapter()
Creates a new adapter for an object of class 'Task Factory Holder'. 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:
TaskFactoryHolder

createMappingViewpointAdapter

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

createMappingModelAdapter

public Adapter createMappingModelAdapter()
Creates a new adapter for an object of class 'Mapping 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:
MappingModel

createEObjectAdapter

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

Returns:
the new adapter.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.