IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.formatter.server
Class CHAFormatterService

java.lang.Object
  extended bycom.ibm.btt.formatter.server.CHAFormatterService

public class CHAFormatterService
extends java.lang.Object

This class is in the server side to receive the formating and unformating requests from CHAFormatterService EJB

and pass the requsets to the correspondent formatters to perform formating and unformating process.


Constructor Summary
CHAFormatterService()
          The constructor creates a CHAFormatterService instance.
 
Method Summary
 java.lang.String format(Context aContext, java.lang.String aFormatName)
          Formats a context by a given format element.
 java.lang.String format(DataElement dataElement, java.lang.String aFormatName)
          Formats a context by a given format element.
 java.util.Map formatHashtable(Context aContext, java.lang.String aFormatName)
          Formats a context by a given hashtable format.
 java.util.Map formatHashtable(KeyedCollection aKeyedCollection, java.lang.String aFormatName)
          Formats a KeyedCollection by a given hashtable format.
 java.util.List mapContents(Context inputContext, Context outputContext, java.lang.String aFormatName)
          Maps the contents of a context into another context.
 java.util.List unformat(java.lang.String aString, Context aContext, java.lang.String aFormatName)
          Unformats a context by a given format element.
 java.util.List unformat(java.lang.String aString, DataElement aDataElement, java.lang.String aFormatName)
          Unformats a data element by a given format element.
 java.util.List unformatHashtable(java.util.Map aHashtable, Context aContext, java.lang.String aFormatName)
          Unformats a context by a given hashtable format.
 java.util.List unformatHashtable(java.util.Map aHashtable, KeyedCollection aKeyedCollection, java.lang.String aFormatName)
          Unformats a KeyedCollection by a given hashtable format.
 java.util.List unformatIndexedCollection(java.util.List aVector, Context aContext, java.lang.String aFormatName)
          Unformats a context by a given hashtable IndexedCollection format.
 java.util.List unformatIndexedCollection(java.util.List aVector, IndexedCollection anIndexedCollection, java.lang.String aFormatName)
          Unformats an IndexedCollection by a given hashtable IndexedCollection format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CHAFormatterService

public CHAFormatterService()
The constructor creates a CHAFormatterService instance.

Method Detail

format

public java.lang.String format(DataElement dataElement,
                               java.lang.String aFormatName)
                        throws DSEException
Formats a context by a given format element.

Parameters:
dataElement - com.ibm.btt.base.DataElement
aFormatName - java.lang.String
Returns:
java.lang.String
Throws:
DSEException

format

public java.lang.String format(Context aContext,
                               java.lang.String aFormatName)
                        throws DSEException
Formats a context by a given format element.

Parameters:
aContext - com.ibm.btt.base.Context
aFormatName - java.lang.String
Returns:
java.lang.String
Throws:
DSEException

unformat

public java.util.List unformat(java.lang.String aString,
                               DataElement aDataElement,
                               java.lang.String aFormatName)
                        throws DSEException
Unformats a data element by a given format element.

Parameters:
aDataElement - com.ibm.btt.base.DataElement
aString - java.lang.String
aFormatName - java.lang.String
Returns:
java.util.Vevtor
Throws:
DSEException

unformat

public java.util.List unformat(java.lang.String aString,
                               Context aContext,
                               java.lang.String aFormatName)
                        throws DSEException
Unformats a context by a given format element.

Parameters:
aContext - com.ibm.btt.base.Context
aString - java.lang.String
aFormatName - java.lang.String
Returns:
java.util.Vevtor
Throws:
DSEException

mapContents

public java.util.List mapContents(Context inputContext,
                                  Context outputContext,
                                  java.lang.String aFormatName)
                           throws DSEException
Maps the contents of a context into another context.

Parameters:
inputContext - com.ibm.btt.base.Context
outputContext - java.lang.String
aFormatName - java.lang.String
Returns:
java.util.Vevtor
Throws:
DSEException

formatHashtable

public java.util.Map formatHashtable(Context aContext,
                                     java.lang.String aFormatName)
                              throws DSEException
Formats a context by a given hashtable format.

Parameters:
aContext - com.ibm.btt.base.aContext
aFormatName - java.lang.String
Returns:
java.util.Hashtable
Throws:
DSEException

formatHashtable

public java.util.Map formatHashtable(KeyedCollection aKeyedCollection,
                                     java.lang.String aFormatName)
                              throws DSEException
Formats a KeyedCollection by a given hashtable format.

Parameters:
aKeyedCollection - com.ibm.btt.base.KeyedCollection
aFormatName - java.lang.String
Returns:
java.util.Hashtable
Throws:
DSEException

unformatHashtable

public java.util.List unformatHashtable(java.util.Map aHashtable,
                                        Context aContext,
                                        java.lang.String aFormatName)
                                 throws DSEException
Unformats a context by a given hashtable format.

Parameters:
aContext - com.ibm.btt.base.Context
aHashtable - com.ibm.btt.base.Hashtable
aFormatName - java.lang.String
Returns:
java.util.Vector
Throws:
DSEException

unformatHashtable

public java.util.List unformatHashtable(java.util.Map aHashtable,
                                        KeyedCollection aKeyedCollection,
                                        java.lang.String aFormatName)
                                 throws DSEException
Unformats a KeyedCollection by a given hashtable format.

Parameters:
aKeyedCollection - com.ibm.btt.base.KeyedCollection
aHashtable - com.ibm.btt.base.Hashtable
aFormatName - java.lang.String
Returns:
java.util.Vector
Throws:
DSEException

unformatIndexedCollection

public java.util.List unformatIndexedCollection(java.util.List aVector,
                                                Context aContext,
                                                java.lang.String aFormatName)
                                         throws DSEException,
                                                java.io.IOException
Unformats a context by a given hashtable IndexedCollection format.

Parameters:
aContext - com.ibm.btt.base.Context
aVector - com.ibm.btt.base.Vector
aFormatName - java.lang.String
Returns:
java.util.Vector
Throws:
DSEException
java.io.IOException

unformatIndexedCollection

public java.util.List unformatIndexedCollection(java.util.List aVector,
                                                IndexedCollection anIndexedCollection,
                                                java.lang.String aFormatName)
                                         throws DSEException,
                                                java.io.IOException
Unformats an IndexedCollection by a given hashtable IndexedCollection format.

Parameters:
anIndexedCollection - com.ibm.btt.base.IndexedCollection
aVector - com.ibm.btt.base.Vector
aFormatName - java.lang.String
Returns:
java.util.Vector
Throws:
DSEException
java.io.IOException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005