com.ibm.etools.emf.notify
Interface AdapterFactory


public interface AdapterFactory

Responsible for creating IAdaptors for IAdaptable objects. Creation date: (10/13/1999 1:40:04 PM)


Field Summary
static java.lang.String copyright
           
 
Method Summary
 Adapter adapt(Notifier target, java.lang.Object adapterKey)
          Check if the right kind of adapter is already associated with the target and return it if one exits; otherwise, create a new adapter and attach it to target
 java.lang.Object adapt(java.lang.Object object, java.lang.Object adapterKey)
          Convenience method that returns the adapter associated with the given object if the object is a Notifier; otherwise, it returns the object itself.
 void adaptAllNew(Notifier object)
          Adapt the Notifier for all of the types this factory supports.
 Adapter adaptNew(Notifier target, java.lang.Object adapterKey)
          Create a new adapter and attach it to target
 boolean isFactoryForType(java.lang.Object type)
          Answer if this factory can adapt to this key.
 

Field Detail

copyright

public static final java.lang.String copyright
Method Detail

adapt

public Adapter adapt(Notifier target,
                     java.lang.Object adapterKey)
Check if the right kind of adapter is already associated with the target and return it if one exits; otherwise, create a new adapter and attach it to target

adaptNew

public Adapter adaptNew(Notifier target,
                        java.lang.Object adapterKey)
Create a new adapter and attach it to target

adapt

public java.lang.Object adapt(java.lang.Object object,
                              java.lang.Object adapterKey)
Convenience method that returns the adapter associated with the given object if the object is a Notifier; otherwise, it returns the object itself.

adaptAllNew

public void adaptAllNew(Notifier object)
Adapt the Notifier for all of the types this factory supports. This is used mostly by the EMF factories to adapt newly created objects.

isFactoryForType

public boolean isFactoryForType(java.lang.Object type)
Answer if this factory can adapt to this key.