org.umber.bellows.transform
Class NullTransformer

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

public class NullTransformer
extends java.lang.Object
implements IDatumTransformer

Transformer which always returns a null. This is useful for implementing various delete operations.

Author:
jsheets

Constructor Summary
NullTransformer()
           
 
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

NullTransformer

public NullTransformer()
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 null. This is useful for implementing various delete operations.

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