org.eclipse.ocl.examples.pivot
Interface Adaptable

All Known Subinterfaces:
BasicEnvironment, Environment.Internal
All Known Implementing Classes:
AbstractBasicEnvironment, AbstractEnvironment, AbstractEnvironmentFactory, AbstractEvaluationEnvironment, PivotEnvironment, PivotEnvironmentFactory, PivotEvaluationEnvironment

public interface Adaptable

Interface implemented by Environments that are adaptable to optional interfaces that can be considered as extensions to the environment API.

Since:
1.2
Author:
Christian W. Damus (cdamus)

Method Summary
<T> T
getAdapter(java.lang.Class<T> adapterType)
          Obtains an adapter for the specified interface type.
 

Method Detail

getAdapter

<T> T getAdapter(java.lang.Class<T> adapterType)
Obtains an adapter for the specified interface type.

Type Parameters:
T - the requested adapter interface
Parameters:
adapterType - the requested adapter interface
Returns:
an instance of the requested interface, or null if this environment does not adapt to it