IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.server.flow.mapper
Class PassThroughRespObjMapper

java.lang.Object
  extended bycom.ibm.btt.server.flow.mapper.PassThroughRespObjMapper
All Implemented Interfaces:
ResponseObjectMapper

public class PassThroughRespObjMapper
extends java.lang.Object
implements ResponseObjectMapper

This class maps a data element directly to a response object.


Field Summary
static java.lang.String NULL_VALUE
          NULL_VALUE
 
Constructor Summary
PassThroughRespObjMapper()
           
 
Method Summary
 java.lang.Object mapResponseObject(DataElement dataElement, java.lang.Object respObj)
          Maps the data element to the response object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_VALUE

public static final java.lang.String NULL_VALUE
NULL_VALUE

See Also:
Constant Field Values
Constructor Detail

PassThroughRespObjMapper

public PassThroughRespObjMapper()
Method Detail

mapResponseObject

public java.lang.Object mapResponseObject(DataElement dataElement,
                                          java.lang.Object respObj)
                                   throws java.lang.Exception
Maps the data element to the response object.

The value of the response object is returned. Users should update the response object with this value by themselves.

Null value is converted to NULL_VALUE string, and then returned.

Specified by:
mapResponseObject in interface ResponseObjectMapper
Parameters:
dataElement - The data element.
respObj - The response object.
Returns:
java.lang.Object The response object.
Throws:
java.lang.Exception

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005