org.umber.bellows.transform
Class PassThroughTransformer

java.lang.Object
  extended byorg.umber.bellows.transform.PassThroughTransformer
All Implemented Interfaces:
IDatumTransformer

public class PassThroughTransformer
extends java.lang.Object
implements IDatumTransformer

Transformer which always passes the input node to the output, without altering it. This is useful for implementing no-operation transforms that have other side-effects beyond node transformation.

Author:
jsheets

Constructor Summary
PassThroughTransformer()
           
 
Method Summary
 Datum transform(Datum inputNode)
          Performs a transformation on the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughTransformer

public PassThroughTransformer()
Method Detail

transform

public Datum transform(Datum inputNode)
Performs a transformation on the given node. The transformed results are returned, and may be the input node, or a newly allocated node. The input node instance may or may not be affected by the transform.

This implementation always returns inputNode.

Specified by:
transform in interface IDatumTransformer
Parameters:
inputNode - input Datum node
Returns:
transformed output Datum node