org.jcon.data
Class FilterTransform

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

public class FilterTransform
extends java.lang.Object
implements ObjectTransform

Transforms a collection of objects into another collection based on a selection criterion.

Author:
Paul Reavis

Constructor Summary
FilterTransform()
           
FilterTransform(UnaryPredicate condition)
           
 
Method Summary
 UnaryPredicate getCondition()
          Condition to select by.
 void setCondition(UnaryPredicate newCondition)
           
 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

FilterTransform

public FilterTransform()

FilterTransform

public FilterTransform(UnaryPredicate condition)
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

getCondition

public UnaryPredicate getCondition()
Condition to select by.


setCondition

public void setCondition(UnaryPredicate newCondition)