public class ExtendedAdapterFactory
extends AdapterFactoryImpl
createXXX method for each class of the model.
ExtendedPackage| Modifier and Type | Field and Description |
|---|---|
protected static ExtendedPackage |
modelPackage
The cached model package.
|
protected ExtendedSwitch<Adapter> |
modelSwitch
The switch that delegates to the
createXXX methods. |
| Constructor and Description |
|---|
ExtendedAdapterFactory()
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 |
createEmployeeInfoAdapter()
Creates a new adapter for an object of class '
Employee Info'. |
Adapter |
createEObjectAdapter()
Creates a new adapter for the default case.
|
Adapter |
createExtendedAddressAdapter()
Creates a new adapter for an object of class '
Address'. |
Adapter |
createExtendedPersonAdapter()
Creates a new adapter for an object of class '
Person'. |
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 ExtendedPackage modelPackage
protected ExtendedSwitch<Adapter> modelSwitch
createXXX methods.
public ExtendedAdapterFactory()
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 createExtendedAddressAdapter()
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.
ExtendedAddresspublic Adapter createExtendedPersonAdapter()
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.
ExtendedPersonpublic 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.
org.gecko.emf.osgi.example.model.basic.Addresspublic Adapter createEmployeeInfoAdapter()
Employee Info'.
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.
org.gecko.emf.osgi.example.model.basic.EmployeeInfopublic 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.
org.gecko.emf.osgi.example.model.basic.Personpublic Adapter createEObjectAdapter()
Data In Motion Consuling GmbH - All rights reserved