|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAdapterFactoryImpl
net.refractions.udig.printing.model.util.ModelAdapterFactory
public class ModelAdapterFactory
The Adapter Factory for the model.
It provides an adapter createXXX
method for each class of the model.
ModelPackage
Field Summary | |
---|---|
protected static ModelPackage |
modelPackage
The cached model package. |
protected ModelSwitch |
modelSwitch
The switch the delegates to the createXXX methods. |
Constructor Summary | |
---|---|
ModelAdapterFactory()
Creates an instance of the adapter factory. |
Method Summary | |
---|---|
Adapter |
createAdapter(Notifier target)
Creates an adapter for the target . |
Adapter |
createBoxAdapter()
Creates a new adapter for an object of class ' Box '. |
Adapter |
createConnectionAdapter()
Creates a new adapter for an object of class ' Connection '. |
Adapter |
createDecoratorBoxAdapter()
Creates a new adapter for an object of class ' Decorator Box '. |
Adapter |
createElementAdapter()
Creates a new adapter for an object of class ' Element '. |
Adapter |
createEObjectAdapter()
Creates a new adapter for the default case. |
Adapter |
createIAdaptableAdapter()
Creates a new adapter for an object of class ' IAdaptable '. |
Adapter |
createIProjectElementAdapter()
Creates a new adapter for an object of class ' IProject Element '. |
Adapter |
createPageAdapter()
Creates a new adapter for an object of class ' Page '. |
Adapter |
createProjectElementAdapter()
Creates a new adapter for an object of class ' Element '. |
boolean |
isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static ModelPackage modelPackage
protected ModelSwitch modelSwitch
createXXX
methods.
Constructor Detail |
---|
public ModelAdapterFactory()
Method Detail |
---|
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 createBoxAdapter()
Box
'.
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.
Box
public Adapter createConnectionAdapter()
Connection
'.
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.
Connection
public Adapter createDecoratorBoxAdapter()
Decorator Box
'.
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.
DecoratorBox
public Adapter createElementAdapter()
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.
Element
public Adapter createPageAdapter()
Page
'.
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.
Page
public Adapter createIProjectElementAdapter()
IProject 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.
net.refractions.udig.project.IProjectElement
public Adapter createIAdaptableAdapter()
IAdaptable
'.
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.eclipse.core.runtime.IAdaptable
public Adapter createProjectElementAdapter()
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.
net.refractions.udig.project.internal.ProjectElement
public Adapter createEObjectAdapter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |