IBM Branch Transformation Toolkit Javadoc

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

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

public class MapRespObjMapper
extends java.lang.Object
implements ResponseObjectMapper, MapListUser

This class maps a keyed collection to a map.

The result is flattened with the composite key, i.e. no hashtable or vector in the map.


Field Summary
static java.lang.String DOT
          DOT
 
Constructor Summary
MapRespObjMapper()
           
 
Method Summary
 void acceptMapList(java.util.Vector aMapList)
          Accepts a map list
 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

DOT

public static final java.lang.String DOT
DOT

See Also:
Constant Field Values
Constructor Detail

MapRespObjMapper

public MapRespObjMapper()
Method Detail

acceptMapList

public void acceptMapList(java.util.Vector aMapList)
Accepts a map list

Specified by:
acceptMapList in interface MapListUser
Parameters:
aMapList - The map list.

mapResponseObject

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

Exception will be thrown out if the data element is not a keyed collection.

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