org.sintef.mofscript.MOFScriptModel.util
Class MOFScriptModelAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.sintef.mofscript.MOFScriptModel.util.MOFScriptModelAdapterFactory
All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory

public class MOFScriptModelAdapterFactory
extends org.eclipse.emf.common.notify.impl.AdapterFactoryImpl

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

See Also:
MOFScriptModelPackage

Field Summary
protected static MOFScriptModelPackage modelPackage
          The cached model package
protected  MOFScriptModelSwitch modelSwitch
          The switch the delegates to the createXXX methods
 
Constructor Summary
MOFScriptModelAdapterFactory()
          Creates an instance of the adapter factory
 
Method Summary
 org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
          Creates an adapter for the target
 org.eclipse.emf.common.notify.Adapter createArithmeticExpressionAdapter()
          Creates a new adapter for an object of class 'Arithmetic Expression'
 org.eclipse.emf.common.notify.Adapter createBreakStatementAdapter()
          Creates a new adapter for an object of class 'Break Statement'
 org.eclipse.emf.common.notify.Adapter createComparisonExpressionAdapter()
          Creates a new adapter for an object of class 'Comparison Expression'
 org.eclipse.emf.common.notify.Adapter createCreateStatementAdapter()
          Creates a new adapter for an object of class 'Create Statement'
 org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
          Creates a new adapter for the default case
 org.eclipse.emf.common.notify.Adapter createExpressionAdapter()
          Creates a new adapter for an object of class 'Expression'
 org.eclipse.emf.common.notify.Adapter createFileStatementAdapter()
          Creates a new adapter for an object of class 'File Statement'
 org.eclipse.emf.common.notify.Adapter createFunctionCallAdapter()
          Creates a new adapter for an object of class 'Function Call'
 org.eclipse.emf.common.notify.Adapter createFunctionCallStatementAdapter()
          Creates a new adapter for an object of class 'Function Call Statement'
 org.eclipse.emf.common.notify.Adapter createGeneralAssignmentAdapter()
          Creates a new adapter for an object of class 'General Assignment'
 org.eclipse.emf.common.notify.Adapter createIfStatementAdapter()
          Creates a new adapter for an object of class 'If Statement'
 org.eclipse.emf.common.notify.Adapter createIteratorStatementAdapter()
          Creates a new adapter for an object of class 'Iterator Statement'
 org.eclipse.emf.common.notify.Adapter createLiteralAdapter()
          Creates a new adapter for an object of class 'Literal'
 org.eclipse.emf.common.notify.Adapter createLogicalExpressionAdapter()
          Creates a new adapter for an object of class 'Logical Expression'
 org.eclipse.emf.common.notify.Adapter createMOFScriptCommentAdapter()
          Creates a new adapter for an object of class 'MOF Script Comment'
 org.eclipse.emf.common.notify.Adapter createMOFScriptImportAdapter()
          Creates a new adapter for an object of class 'MOF Script Import'
 org.eclipse.emf.common.notify.Adapter createMOFScriptObjectAdapter()
          Creates a new adapter for an object of class 'MOF Script Object'
 org.eclipse.emf.common.notify.Adapter createMOFScriptParameterAdapter()
          Creates a new adapter for an object of class 'MOF Script Parameter'
 org.eclipse.emf.common.notify.Adapter createMOFScriptSpecificationAdapter()
          Creates a new adapter for an object of class 'MOF Script Specification'
 org.eclipse.emf.common.notify.Adapter createMOFScriptStatementAdapter()
          Creates a new adapter for an object of class 'MOF Script Statement'
 org.eclipse.emf.common.notify.Adapter createMOFScriptStatementOwnerAdapter()
          Creates a new adapter for an object of class 'MOF Script Statement Owner'
 org.eclipse.emf.common.notify.Adapter createMOFScriptTransformationAdapter()
          Creates a new adapter for an object of class 'MOF Script Transformation'
 org.eclipse.emf.common.notify.Adapter createPrintStatementAdapter()
          Creates a new adapter for an object of class 'Print Statement'
 org.eclipse.emf.common.notify.Adapter createReferenceAdapter()
          Creates a new adapter for an object of class 'Reference'
 org.eclipse.emf.common.notify.Adapter createResultAssignmentAdapter()
          Creates a new adapter for an object of class 'Result Assignment'
 org.eclipse.emf.common.notify.Adapter createSimpleExpressionAdapter()
          Creates a new adapter for an object of class 'Simple Expression'
 org.eclipse.emf.common.notify.Adapter createTransformationRuleAdapter()
          Creates a new adapter for an object of class 'Transformation Rule'
 org.eclipse.emf.common.notify.Adapter createValueExpressionAdapter()
          Creates a new adapter for an object of class 'Value Expression'
 org.eclipse.emf.common.notify.Adapter createVariableDeclarationAdapter()
          Creates a new adapter for an object of class 'Variable Declaration'
 org.eclipse.emf.common.notify.Adapter createWhileStatementAdapter()
          Creates a new adapter for an object of class 'While Statement'
 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

modelPackage

protected static MOFScriptModelPackage modelPackage
The cached model package.


modelSwitch

protected MOFScriptModelSwitch modelSwitch
The switch the delegates to the createXXX methods.

Constructor Detail

MOFScriptModelAdapterFactory

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

Specified by:
isFactoryForType in interface org.eclipse.emf.common.notify.AdapterFactory
Overrides:
isFactoryForType in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
Returns:
whether this factory is applicable for the type of the object.

createAdapter

public org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
Creates an adapter for the target.

Overrides:
createAdapter in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
Parameters:
target - the object to adapt.
Returns:
the adapter for the target.

createTransformationRuleAdapter

public org.eclipse.emf.common.notify.Adapter createTransformationRuleAdapter()
Creates a new adapter for an object of class 'Transformation 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:
TransformationRule

createMOFScriptStatementOwnerAdapter

public org.eclipse.emf.common.notify.Adapter createMOFScriptStatementOwnerAdapter()
Creates a new adapter for an object of class 'MOF Script Statement Owner'. 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:
MOFScriptStatementOwner

createMOFScriptObjectAdapter

public org.eclipse.emf.common.notify.Adapter createMOFScriptObjectAdapter()
Creates a new adapter for an object of class 'MOF Script Object'. 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:
MOFScriptObject

createMOFScriptStatementAdapter

public org.eclipse.emf.common.notify.Adapter createMOFScriptStatementAdapter()
Creates a new adapter for an object of class 'MOF Script Statement'. 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:
MOFScriptStatement

createVariableDeclarationAdapter

public org.eclipse.emf.common.notify.Adapter createVariableDeclarationAdapter()
Creates a new adapter for an object of class 'Variable Declaration'. 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:
VariableDeclaration

createValueExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createValueExpressionAdapter()
Creates a new adapter for an object of class 'Value Expression'. 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:
ValueExpression

createExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createExpressionAdapter()
Creates a new adapter for an object of class 'Expression'. 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:
Expression

createMOFScriptTransformationAdapter

public org.eclipse.emf.common.notify.Adapter createMOFScriptTransformationAdapter()
Creates a new adapter for an object of class 'MOF Script Transformation'. 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:
MOFScriptTransformation

createMOFScriptImportAdapter

public org.eclipse.emf.common.notify.Adapter createMOFScriptImportAdapter()
Creates a new adapter for an object of class 'MOF Script Import'. 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:
MOFScriptImport

createMOFScriptParameterAdapter

public org.eclipse.emf.common.notify.Adapter createMOFScriptParameterAdapter()
Creates a new adapter for an object of class 'MOF Script 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:
MOFScriptParameter

createIteratorStatementAdapter

public org.eclipse.emf.common.notify.Adapter createIteratorStatementAdapter()
Creates a new adapter for an object of class 'Iterator Statement'. 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:
IteratorStatement

createLogicalExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createLogicalExpressionAdapter()
Creates a new adapter for an object of class 'Logical Expression'. 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:
LogicalExpression

createSimpleExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createSimpleExpressionAdapter()
Creates a new adapter for an object of class 'Simple Expression'. 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:
SimpleExpression

createFunctionCallAdapter

public org.eclipse.emf.common.notify.Adapter createFunctionCallAdapter()
Creates a new adapter for an object of class 'Function Call'. 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:
FunctionCall

createCreateStatementAdapter

public org.eclipse.emf.common.notify.Adapter createCreateStatementAdapter()
Creates a new adapter for an object of class 'Create Statement'. 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:
CreateStatement

createResultAssignmentAdapter

public org.eclipse.emf.common.notify.Adapter createResultAssignmentAdapter()
Creates a new adapter for an object of class 'Result Assignment'. 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:
ResultAssignment

createGeneralAssignmentAdapter

public org.eclipse.emf.common.notify.Adapter createGeneralAssignmentAdapter()
Creates a new adapter for an object of class 'General Assignment'. 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:
GeneralAssignment

createLiteralAdapter

public org.eclipse.emf.common.notify.Adapter createLiteralAdapter()
Creates a new adapter for an object of class 'Literal'. 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:
Literal

createReferenceAdapter

public org.eclipse.emf.common.notify.Adapter createReferenceAdapter()
Creates a new adapter for an object of class '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:
Reference

createFunctionCallStatementAdapter

public org.eclipse.emf.common.notify.Adapter createFunctionCallStatementAdapter()
Creates a new adapter for an object of class 'Function Call Statement'. 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:
FunctionCallStatement

createPrintStatementAdapter

public org.eclipse.emf.common.notify.Adapter createPrintStatementAdapter()
Creates a new adapter for an object of class 'Print Statement'. 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:
PrintStatement

createArithmeticExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createArithmeticExpressionAdapter()
Creates a new adapter for an object of class 'Arithmetic Expression'. 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:
ArithmeticExpression

createFileStatementAdapter

public org.eclipse.emf.common.notify.Adapter createFileStatementAdapter()
Creates a new adapter for an object of class 'File Statement'. 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:
FileStatement

createComparisonExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createComparisonExpressionAdapter()
Creates a new adapter for an object of class 'Comparison Expression'. 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:
ComparisonExpression

createIfStatementAdapter

public org.eclipse.emf.common.notify.Adapter createIfStatementAdapter()
Creates a new adapter for an object of class 'If Statement'. 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:
IfStatement

createMOFScriptCommentAdapter

public org.eclipse.emf.common.notify.Adapter createMOFScriptCommentAdapter()
Creates a new adapter for an object of class 'MOF Script Comment'. 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:
MOFScriptComment

createMOFScriptSpecificationAdapter

public org.eclipse.emf.common.notify.Adapter createMOFScriptSpecificationAdapter()
Creates a new adapter for an object of class 'MOF Script 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:
MOFScriptSpecification

createBreakStatementAdapter

public org.eclipse.emf.common.notify.Adapter createBreakStatementAdapter()
Creates a new adapter for an object of class 'Break Statement'. 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:
BreakStatement

createWhileStatementAdapter

public org.eclipse.emf.common.notify.Adapter createWhileStatementAdapter()
Creates a new adapter for an object of class 'While Statement'. 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:
WhileStatement

createEObjectAdapter

public org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.

Returns:
the new adapter.