org.eclipse.emf.mwe2.language.mwe2.util
Class Mwe2AdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.eclipse.emf.mwe2.language.mwe2.util.Mwe2AdapterFactory
All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory

public class Mwe2AdapterFactory
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:
Mwe2Package
EMF generated code

Field Summary
protected static Mwe2Package modelPackage
          The cached model package.
protected  Mwe2Switch<org.eclipse.emf.common.notify.Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
Mwe2AdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 org.eclipse.emf.common.notify.Adapter createAbstractReferenceAdapter()
          Creates a new adapter for an object of class 'Abstract Reference'.
 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 createAssignmentAdapter()
          Creates a new adapter for an object of class 'Assignment'.
 org.eclipse.emf.common.notify.Adapter createBooleanLiteralAdapter()
          Creates a new adapter for an object of class 'Boolean Literal'.
 org.eclipse.emf.common.notify.Adapter createComponentAdapter()
          Creates a new adapter for an object of class 'Component'.
 org.eclipse.emf.common.notify.Adapter createDeclaredPropertyAdapter()
          Creates a new adapter for an object of class 'Declared Property'.
 org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 org.eclipse.emf.common.notify.Adapter createImportAdapter()
          Creates a new adapter for an object of class 'Import'.
 org.eclipse.emf.common.notify.Adapter createJvmIdentifiableElementAdapter()
          Creates a new adapter for an object of class 'Jvm Identifiable Element'.
 org.eclipse.emf.common.notify.Adapter createModuleAdapter()
          Creates a new adapter for an object of class 'Module'.
 org.eclipse.emf.common.notify.Adapter createPlainStringAdapter()
          Creates a new adapter for an object of class 'Plain String'.
 org.eclipse.emf.common.notify.Adapter createPropertyReferenceAdapter()
          Creates a new adapter for an object of class 'Property Reference'.
 org.eclipse.emf.common.notify.Adapter createReferenceAdapter()
          Creates a new adapter for an object of class 'Reference'.
 org.eclipse.emf.common.notify.Adapter createReferrableAdapter()
          Creates a new adapter for an object of class 'Referrable'.
 org.eclipse.emf.common.notify.Adapter createStringLiteralAdapter()
          Creates a new adapter for an object of class 'String Literal'.
 org.eclipse.emf.common.notify.Adapter createStringPartAdapter()
          Creates a new adapter for an object of class 'String Part'.
 org.eclipse.emf.common.notify.Adapter createValueAdapter()
          Creates a new adapter for an object of class 'Value'.
 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 Mwe2Package modelPackage
The cached model package.

EMF generated code

modelSwitch

protected Mwe2Switch<org.eclipse.emf.common.notify.Adapter> modelSwitch
The switch that delegates to the createXXX methods.

EMF generated code
Constructor Detail

Mwe2AdapterFactory

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

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

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

createModuleAdapter

public org.eclipse.emf.common.notify.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
EMF generated code

createReferrableAdapter

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

createDeclaredPropertyAdapter

public org.eclipse.emf.common.notify.Adapter createDeclaredPropertyAdapter()
Creates a new adapter for an object of class 'Declared Property'. 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:
DeclaredProperty
EMF generated code

createComponentAdapter

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

createImportAdapter

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

createAssignmentAdapter

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

createValueAdapter

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

createBooleanLiteralAdapter

public org.eclipse.emf.common.notify.Adapter createBooleanLiteralAdapter()
Creates a new adapter for an object of class 'Boolean 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:
BooleanLiteral
EMF generated code

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

createStringLiteralAdapter

public org.eclipse.emf.common.notify.Adapter createStringLiteralAdapter()
Creates a new adapter for an object of class 'String 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:
StringLiteral
EMF generated code

createStringPartAdapter

public org.eclipse.emf.common.notify.Adapter createStringPartAdapter()
Creates a new adapter for an object of class 'String Part'. 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:
StringPart
EMF generated code

createPropertyReferenceAdapter

public org.eclipse.emf.common.notify.Adapter createPropertyReferenceAdapter()
Creates a new adapter for an object of class 'Property 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:
PropertyReference
EMF generated code

createPlainStringAdapter

public org.eclipse.emf.common.notify.Adapter createPlainStringAdapter()
Creates a new adapter for an object of class 'Plain String'. 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:
PlainString
EMF generated code

createAbstractReferenceAdapter

public org.eclipse.emf.common.notify.Adapter createAbstractReferenceAdapter()
Creates a new adapter for an object of class 'Abstract 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:
AbstractReference
EMF generated code

createJvmIdentifiableElementAdapter

public org.eclipse.emf.common.notify.Adapter createJvmIdentifiableElementAdapter()
Creates a new adapter for an object of class 'Jvm Identifiable 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:
JvmIdentifiableElement
EMF generated code

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