IBM Branch Transformation Toolkit Javadoc

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

java.lang.Object
  extended bycom.ibm.btt.server.flow.mapper.MappingController

public class MappingController
extends java.lang.Object

This class caches the mappers and determines which mapper to be used based on the object type.


Field Summary
static java.lang.String COLON
          COLON
static java.lang.String DEFAULT_KEY
          DEFAULT_KEY
static java.lang.String NULL_KEY
          NULL_KEY
static java.lang.String Protocol_Types
          Protocol_Types
static java.lang.String Request_Mappers
          Request_Mappers
static java.lang.String Response_Mappers
          Response_Mappers
 
Constructor Summary
MappingController()
           
 
Method Summary
static java.lang.String getProtocolType(java.lang.String protocolName)
          Returns the protocol object type for the protocol name.
static RequestObjectMapper getRequestObjectMapper(java.lang.Object obj)
          Returns the request object mapper for the object.
static ResponseObjectMapper getResponseObjectMapper(java.lang.Object obj)
          Returns the response object mapper for the object.
static void initialize(java.lang.String mapperInfoLocation)
          Initializes the mappers defined in the resource bundle.
protected  void loadProtocolTypes(java.lang.String propFile)
          Loads the protocol types from properties file.
protected  void loadRequestMappers(java.lang.String propFile)
          Loads the request mappers from properties file.
protected  void loadResponseMappers(java.lang.String propFile)
          Loads the response mappers from properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KEY

public static final java.lang.String DEFAULT_KEY
DEFAULT_KEY

See Also:
Constant Field Values

NULL_KEY

public static final java.lang.String NULL_KEY
NULL_KEY

See Also:
Constant Field Values

Request_Mappers

public static final java.lang.String Request_Mappers
Request_Mappers

See Also:
Constant Field Values

Response_Mappers

public static final java.lang.String Response_Mappers
Response_Mappers

See Also:
Constant Field Values

Protocol_Types

public static final java.lang.String Protocol_Types
Protocol_Types

See Also:
Constant Field Values

COLON

public static final java.lang.String COLON
COLON

See Also:
Constant Field Values
Constructor Detail

MappingController

public MappingController()
Method Detail

getProtocolType

public static java.lang.String getProtocolType(java.lang.String protocolName)
Returns the protocol object type for the protocol name.

The protocol name can be the namespace defined in the xsd.

Parameters:
protocolName - The protocol name.
Returns:
java.lang.String The protocol object type.

getRequestObjectMapper

public static RequestObjectMapper getRequestObjectMapper(java.lang.Object obj)
Returns the request object mapper for the object.

Parameters:
obj - The object.
Returns:
com.ibm.btt.server.flow.RequestObjectMapper The request object mapper.

getResponseObjectMapper

public static ResponseObjectMapper getResponseObjectMapper(java.lang.Object obj)
Returns the response object mapper for the object.

Parameters:
obj - The object.
Returns:
com.ibm.btt.server.flow.ResponseObjectMapper The response object mapper.

initialize

public static void initialize(java.lang.String mapperInfoLocation)
                       throws java.lang.Exception
Initializes the mappers defined in the resource bundle.

Parameters:
mapperInfoLocation - The location of the resource bundle.
Throws:
java.lang.Exception

loadRequestMappers

protected void loadRequestMappers(java.lang.String propFile)
                           throws java.lang.Exception
Loads the request mappers from properties file.

Parameters:
propFile - The location of the properties file.
Throws:
java.lang.Exception

loadResponseMappers

protected void loadResponseMappers(java.lang.String propFile)
                            throws java.lang.Exception
Loads the response mappers from properties file.

Parameters:
propFile - The location of the properties file.
Throws:
java.lang.Exception

loadProtocolTypes

protected void loadProtocolTypes(java.lang.String propFile)
                          throws java.lang.Exception
Loads the protocol types from properties file.

Parameters:
propFile - The location of the properties file.
Throws:
java.lang.Exception

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005