public class BasicAdapterFactory
extends AdapterFactoryImpl
createXXX method for each class of the model.
BasicPackageImpl| Modifier and Type | Field and Description |
|---|---|
protected static BasicPackageImpl |
modelPackage
The cached model package
|
protected BasicSwitch<Adapter> |
modelSwitch
The switch that delegates to the
createXXX methods |
| Constructor and Description |
|---|
BasicAdapterFactory()
Creates an instance of the adapter factory
|
| Modifier and Type | Method and Description |
|---|---|
Adapter |
createAdapter(Notifier target)
Creates an adapter for the
target |
Adapter |
createApplicationElementAdapter()
Creates a new adapter for an object of class '
Element' |
Adapter |
createBindingsAdapter()
Creates a new adapter for an object of class '
Bindings' |
Adapter |
createEObjectAdapter()
Creates a new adapter for the default case
|
Adapter |
createHandlerContainerAdapter()
Creates a new adapter for an object of class '
Handler Container' |
Adapter |
createLocalizableAdapter()
Creates a new adapter for an object of class '
Localizable' |
Adapter |
createPartDescriptorAdapter()
Creates a new adapter for an object of class '
Part Descriptor' |
Adapter |
createPartDescriptorContainerAdapter()
Creates a new adapter for an object of class '
Part Descriptor Container' |
Adapter |
createUILabelAdapter()
Creates a new adapter for an object of class '
UI Label' |
boolean |
isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object
|
protected static BasicPackageImpl modelPackage
protected BasicSwitch<Adapter> modelSwitch
createXXX methods.
public BasicAdapterFactory()
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 createPartDescriptorAdapter()
Part Descriptor'.
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.
MPartDescriptorpublic Adapter createPartDescriptorContainerAdapter()
Part Descriptor Container'.
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.
MPartDescriptorContainerpublic Adapter createUILabelAdapter()
UI Label'.
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.
MUILabelpublic Adapter createHandlerContainerAdapter()
Handler Container'.
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.
MHandlerContainerpublic Adapter createBindingsAdapter()
Bindings'.
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.
MBindingspublic Adapter createApplicationElementAdapter()
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.
MApplicationElementpublic Adapter createLocalizableAdapter()
Localizable'.
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.
MLocalizablepublic Adapter createEObjectAdapter()