org.jcon.data
Class MappedTransform

java.lang.Object
  extended by org.jcon.data.MappedTransform
All Implemented Interfaces:
ObjectTransform

public class MappedTransform
extends java.lang.Object
implements ObjectTransform

A transform that uses a Map to translate between the domain and range.

Author:
Paul Reavis

Constructor Summary
MappedTransform()
           
 
Method Summary
 java.util.Map getMapping()
           
 void setMapping(java.util.Map newMapping)
           
 java.lang.Object transform(java.lang.Object original)
          Our one method; this transforms one object into another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedTransform

public MappedTransform()
Method Detail

transform

public java.lang.Object transform(java.lang.Object original)
Description copied from interface: ObjectTransform
Our one method; this transforms one object into another. Transformation must be nondestructive, but may produce a derived product that is still affected by changes to the original, so beware.

Specified by:
transform in interface ObjectTransform

getMapping

public java.util.Map getMapping()

setMapping

public void setMapping(java.util.Map newMapping)