org.rcfaces.core.lang
Class DefaultAdaptable
java.lang.Object
org.rcfaces.core.lang.DefaultAdaptable
- All Implemented Interfaces:
- IAdaptable
- Direct Known Subclasses:
- Period, Time
public class DefaultAdaptable
- extends Object
- implements IAdaptable
- Version:
- $Revision: 1.2 $ $Date: 2007/05/24 12:26:17 $
- Author:
- Olivier Oeuillot (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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAdaptable
public DefaultAdaptable()
getAdapter
public Object getAdapter(Class adapter,
Object parameter)
- Description copied from interface:
IAdaptable
- Returns an object which is an instance of the given class associated with
this object. Returns
null if no such object can be found.
- Specified by:
getAdapter in interface IAdaptable
- 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.