IBM Bank Transformation Toolkit Javadoc

com.ibm.btt.cha.ejb
Class CHAFormat

java.lang.Object
  extended by com.ibm.btt.cha.ejb.CHAFormat

public class CHAFormat
extends java.lang.Object


Field Summary
static java.util.ResourceBundle exceptionBundle
          Defines exception resource bundle.
static java.util.ResourceBundle traceBundle
          Defines trace resource bundle.
 
Constructor Summary
CHAFormat()
          This constructor creates a Trace object.
 
Method Summary
static java.lang.String getExceptionMsg(java.lang.String key)
          Gets exception message from resource bundle.
static java.lang.String getTraceMsg(java.lang.String key)
          Gets trace message from resource bundle.
static void mapContents(java.lang.String formatName, Context inputContext, Context outputContext)
          Maps two contexts, map the content of inputContext into outputContext.
static DataElement unformat(java.lang.String formatName, java.lang.String aString, Context aContext)
          Unformats a context by a given format.
static DataElement unformatHashtable(java.lang.String name, Hashtable aHashtable, Context aContext)
          Unformats a context by a given hashtable format.
static void unformatIndexedCollection(java.lang.String name, Vector aVectorOfHashtables, Context aContext)
          Unformats a context by a given hashtable IndexedCollection format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

traceBundle

public static java.util.ResourceBundle traceBundle
Defines trace resource bundle.


exceptionBundle

public static java.util.ResourceBundle exceptionBundle
Defines exception resource bundle.

Constructor Detail

CHAFormat

public CHAFormat()
This constructor creates a Trace object.

Method Detail

unformat

public static DataElement unformat(java.lang.String formatName,
                                   java.lang.String aString,
                                   Context aContext)
                            throws CHAFormatException
Unformats a context by a given format.

Parameters:
aContext - com.ibm.btt.base.Context
Returns:
com.ibm.btt.base.DataElement
Throws:
DSEInvalidRequestException
DSEInvalidArgumentException
CHAFormatException

unformatHashtable

public static DataElement unformatHashtable(java.lang.String name,
                                            Hashtable aHashtable,
                                            Context aContext)
                                     throws CHAFormatException
Unformats a context by a given hashtable format.

Parameters:
aContext - com.ibm.btt.base.Context
aHashtable - com.ibm.btt.base.Hashtable
Returns:
com.ibm.btt.base.DataElement
Throws:
DSEInvalidRequestException
DSEInvalidArgumentException
CHAFormatException

unformatIndexedCollection

public static void unformatIndexedCollection(java.lang.String name,
                                             Vector aVectorOfHashtables,
                                             Context aContext)
                                      throws CHAFormatException
Unformats a context by a given hashtable IndexedCollection format.

Parameters:
aContext - com.ibm.btt.base.Context
aVectorOfHashtables - com.ibm.btt.base.Vector
Throws:
DSEInvalidRequestException
DSEInvalidArgumentException
DSEObjectNotFoundException
CHAFormatException

getExceptionMsg

public static java.lang.String getExceptionMsg(java.lang.String key)
Gets exception message from resource bundle.

Parameters:
key - java.lang.String
Returns:
java.lang.String

getTraceMsg

public static java.lang.String getTraceMsg(java.lang.String key)
Gets trace message from resource bundle.

Parameters:
key - java.lang.String
Returns:
java.lang.String

mapContents

public static void mapContents(java.lang.String formatName,
                               Context inputContext,
                               Context outputContext)
                        throws CHAFormatException
Maps two contexts, map the content of inputContext into outputContext.

Parameters:
inputContext -
outputContext -
formatName -
Throws:
DSEInvalidRequestException
CHAFormatException

IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008