org.eclipse.emf.henshin.model.util
Class HenshinAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.eclipse.emf.henshin.model.util.HenshinAdapterFactory
All Implemented Interfaces:
AdapterFactory

public class HenshinAdapterFactory
extends AdapterFactoryImpl

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

See Also:
HenshinPackage

Field Summary
protected static HenshinPackage modelPackage
          The cached model package.
protected  HenshinSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
HenshinAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createAndAdapter()
          Creates a new adapter for an object of class 'And'.
 Adapter createAnnotationAdapter()
          Creates a new adapter for an object of class 'Annotation'.
 Adapter createAttributeAdapter()
          Creates a new adapter for an object of class 'Attribute'.
 Adapter createAttributeConditionAdapter()
          Creates a new adapter for an object of class 'Attribute Condition'.
 Adapter createBinaryFormulaAdapter()
          Creates a new adapter for an object of class 'Binary Formula'.
 Adapter createConditionalUnitAdapter()
          Creates a new adapter for an object of class 'Conditional Unit'.
 Adapter createEdgeAdapter()
          Creates a new adapter for an object of class 'Edge'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 Adapter createFormulaAdapter()
          Creates a new adapter for an object of class 'Formula'.
 Adapter createGraphAdapter()
          Creates a new adapter for an object of class 'Graph'.
 Adapter createGraphElementAdapter()
          Creates a new adapter for an object of class 'Graph Element'.
 Adapter createIndependentUnitAdapter()
          Creates a new adapter for an object of class 'Independent Unit'.
 Adapter createIteratedUnitAdapter()
          Creates a new adapter for an object of class 'Iterated Unit'.
 Adapter createLoopUnitAdapter()
          Creates a new adapter for an object of class 'Loop Unit'.
 Adapter createMappingAdapter()
          Creates a new adapter for an object of class 'Mapping'.
 Adapter createModelElementAdapter()
          Creates a new adapter for an object of class 'Model Element'.
 Adapter createModuleAdapter()
          Creates a new adapter for an object of class 'Module'.
 Adapter createMultiUnitAdapter()
          Creates a new adapter for an object of class 'Multi Unit'.
 Adapter createNamedElementAdapter()
          Creates a new adapter for an object of class 'Named Element'.
 Adapter createNestedConditionAdapter()
          Creates a new adapter for an object of class 'Nested Condition'.
 Adapter createNodeAdapter()
          Creates a new adapter for an object of class 'Node'.
 Adapter createNotAdapter()
          Creates a new adapter for an object of class 'Not'.
 Adapter createOrAdapter()
          Creates a new adapter for an object of class 'Or'.
 Adapter createParameterAdapter()
          Creates a new adapter for an object of class 'Parameter'.
 Adapter createParameterMappingAdapter()
          Creates a new adapter for an object of class 'Parameter Mapping'.
 Adapter createPriorityUnitAdapter()
          Creates a new adapter for an object of class 'Priority Unit'.
 Adapter createRuleAdapter()
          Creates a new adapter for an object of class 'Rule'.
 Adapter createSequentialUnitAdapter()
          Creates a new adapter for an object of class 'Sequential Unit'.
 Adapter createUnaryFormulaAdapter()
          Creates a new adapter for an object of class 'Unary Formula'.
 Adapter createUnaryUnitAdapter()
          Creates a new adapter for an object of class 'Unary Unit'.
 Adapter createUnitAdapter()
          Creates a new adapter for an object of class 'Unit'.
 Adapter createXorAdapter()
          Creates a new adapter for an object of class 'Xor'.
 boolean isFactoryForType(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

modelPackage

protected static HenshinPackage modelPackage
The cached model package.


modelSwitch

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

Constructor Detail

HenshinAdapterFactory

public HenshinAdapterFactory()
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.

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

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.

createModelElementAdapter

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

createAnnotationAdapter

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

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

createRuleAdapter

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

createAttributeConditionAdapter

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

createParameterAdapter

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

createGraphAdapter

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

createGraphElementAdapter

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

createModuleAdapter

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

createUnitAdapter

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

createMappingAdapter

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

createNodeAdapter

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

createAttributeAdapter

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

createEdgeAdapter

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

createUnaryUnitAdapter

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

createMultiUnitAdapter

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

createIndependentUnitAdapter

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

createSequentialUnitAdapter

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

createConditionalUnitAdapter

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

createPriorityUnitAdapter

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

createIteratedUnitAdapter

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

createLoopUnitAdapter

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

createNestedConditionAdapter

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

createFormulaAdapter

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

createUnaryFormulaAdapter

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

createBinaryFormulaAdapter

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

createAndAdapter

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

createOrAdapter

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

createNotAdapter

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

createXorAdapter

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

createParameterMappingAdapter

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

createEObjectAdapter

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

Returns:
the new adapter.