com.partnersoft.data
Class MultiTransform

java.lang.Object
  extended by com.partnersoft.data.MultiTransform
All Implemented Interfaces:
Coggable, ObjectTransform

public class MultiTransform
extends java.lang.Object
implements ObjectTransform, Coggable

Applies a list of subtransforms to the given object.

Author:
Paul Reavis

Constructor Summary
MultiTransform()
           
MultiTransform(Cog newState)
           
 
Method Summary
 java.util.List getSubTransforms()
           
 void setSubTransforms(java.util.List newTransforms)
           
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 java.lang.Object transform(java.lang.Object victim)
          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

MultiTransform

public MultiTransform()

MultiTransform

public MultiTransform(Cog newState)
Method Detail

transform

public java.lang.Object transform(java.lang.Object victim)
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

toCog

public Cog toCog()
Description copied from interface: Coggable
Returns the complete internal state of this object in the form of a Cog.

Specified by:
toCog in interface Coggable
Returns:
Cog representing the internal state of this object

getSubTransforms

public java.util.List getSubTransforms()

setSubTransforms

public void setSubTransforms(java.util.List newTransforms)