public class RSATestAdapterFactory
extends AdapterFactoryImpl
createXXX method for each class of the model.
RSATestPackage| Modifier and Type | Field and Description |
|---|---|
protected static RSATestPackage |
modelPackage
The cached model package.
|
protected RSATestSwitch<Adapter> |
modelSwitch
The switch that delegates to the
createXXX methods. |
| Constructor and Description |
|---|
RSATestAdapterFactory()
Creates an instance of the adapter factory.
|
| Modifier and Type | Method and Description |
|---|---|
Adapter |
createAdapter(Notifier target)
Creates an adapter for the
target. |
Adapter |
createAddressAdapter()
Creates a new adapter for an object of class '
Address'. |
Adapter |
createContactAdapter()
Creates a new adapter for an object of class '
Contact'. |
Adapter |
createEObjectAdapter()
Creates a new adapter for the default case.
|
Adapter |
createPersonAdapter()
Creates a new adapter for an object of class '
Person'. |
boolean |
isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object.
|
protected static RSATestPackage modelPackage
protected RSATestSwitch<Adapter> modelSwitch
createXXX methods.
public RSATestAdapterFactory()
public boolean isFactoryForType(java.lang.Object object)
true if the object is either the model's package or is an instance object of the model.
public Adapter createAdapter(Notifier target)
target.
target - the object to adapt.target.public Adapter createPersonAdapter()
Person'.
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.
Personpublic Adapter createAddressAdapter()
Address'.
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.
Addresspublic Adapter createContactAdapter()
Contact'.
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.
Contactpublic Adapter createEObjectAdapter()
Data In Motion Consulting GmbH