org.rcfaces.core.lang
Interface IAdaptable

All Known Implementing Classes:
DefaultAdaptable, Period, Time

public interface IAdaptable

An interface for an adaptable object. Adaptable objects can be dynamically extended to provide different interfaces (or "adapters"). Adapters are created by adapter factories, which are in turn managed by type by adapter managers. For example,

     IAdaptable a = [some adaptable];
     IFoo x = (IFoo)a.getAdapter(IFoo.class);
     if (x != null)
        [do IFoo things with x]
 

Version:
$Revision: 1.2 $ $Date: 2007/05/24 12:26:17 $
Author:
Eclipse team (latest modification by $Author: oeuillot $)

Method Summary
 Object getAdapter(Class adapter, Object parameter)
          Returns an object which is an instance of the given class associated with this object.
 

Method Detail

getAdapter

Object getAdapter(Class adapter,
                  Object parameter)
Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.

Parameters:
adapter - the adapter class to look up
Returns:
a object castable to the given class, or null if this object does not have an adapter for the given class


Copyright © 2006-2011 Vedana. All Rights Reserved.