org.simantics.databoard.adapter
Class PassThruAdapter

java.lang.Object
  extended by org.simantics.databoard.adapter.AbstractAdapter
      extended by org.simantics.databoard.adapter.PassThruAdapter
All Implemented Interfaces:
Adapter

public class PassThruAdapter
extends AbstractAdapter
implements Adapter


Field Summary
static AbstractAdapter PASSTHRU
           
 
Method Summary
 java.lang.Object adapt(java.lang.Object obj)
          Adapt instance of one binding to format of another binding.
 
Methods inherited from class org.simantics.databoard.adapter.AbstractAdapter
adaptUnchecked, finalizeConstruction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.simantics.databoard.adapter.Adapter
adaptUnchecked
 

Field Detail

PASSTHRU

public static final AbstractAdapter PASSTHRU
Method Detail

adapt

public java.lang.Object adapt(java.lang.Object obj)
                       throws AdaptException
Description copied from interface: Adapter
Adapt instance of one binding to format of another binding. Note! adapt may recycle the argument (use it in the result). This dependes on the implementation. Cloning adapter recycles only immutable instances.

Specified by:
adapt in interface Adapter
Parameters:
obj - source instance
Returns:
result
Throws:
AdaptException