|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.cs.invoker.base.TypedDataConverter
Provides all TypedData Converter APIs for C/S Connectivity usage
Constructor Summary | |
---|---|
TypedDataConverter()
|
Method Summary | |
---|---|
java.lang.String |
formatDateType(java.lang.Object value,
java.util.Locale locale,
Hashtable parameters)
Formats the Object using the locale as arguments. |
java.lang.String |
formatFloatType(java.lang.Object value,
Hashtable parameters)
Formats the Object. |
java.lang.String |
formatIntegerType(java.lang.Object value,
Hashtable parameters)
Formats the Integer Object . |
java.lang.String |
formatNumericStringType(java.lang.Object value,
java.util.Locale locale,
Hashtable parameters)
Formats the NumericString Object This method tries to get the parameters required for the conversion from the Hashtable passed as an argument. |
java.lang.String |
formatStringType(java.lang.Object value,
Hashtable parameters)
Formats the String Object. |
java.lang.String |
formatTimeType(java.lang.Object value,
java.util.Locale locale,
Hashtable parameters)
Formats the Time Object |
protected long |
parse(java.lang.String aString,
int aByteOrdering,
int aSize,
boolean aSign)
Converts a String to a char[] and then converts the char[] to a Java long. |
java.lang.Object |
unformatDateType(java.lang.String dateAsString,
java.util.Locale locale,
Hashtable parameters)
Converts a String representing a Date object into another Date. |
java.lang.Object |
unformatFloatType(java.lang.String floatAsString,
Hashtable parameters)
Converts the stream into a Float or Double (depending on the size attribute) The parameters required by this converter are taken from the Hashtable passed as an argument. |
java.lang.Object |
unformatIntegerType(java.lang.String integerAsString,
Hashtable parameters)
Converts a String representing an Integer into another Integer. |
java.lang.Object |
unformatNumericStringType(java.lang.String aNumberAsString,
java.util.Locale locale,
Hashtable parameters)
Converts a String representing a Number into another Number. |
java.lang.Object |
unformatStringType(java.lang.String aString,
Hashtable parameters)
Converts a String into another String. |
java.lang.Object |
unformatTimeType(java.lang.String dateAsString,
java.util.Locale locale,
Hashtable parameters)
Converts a String representing a Date into another Date. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TypedDataConverter()
Method Detail |
public java.lang.String formatDateType(java.lang.Object value, java.util.Locale locale, Hashtable parameters) throws DSETypeException
value
- Objectlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
DSETypeException
- - If formatting is unsuccessfulpublic java.lang.Object unformatDateType(java.lang.String dateAsString, java.util.Locale locale, Hashtable parameters) throws DSETypeException
dateAsString
- java.lang.Stringparameters
- com.ibm.btt.base.Hashtablelocale
- java.util.Locale
DSETypeException
public java.lang.String formatFloatType(java.lang.Object value, Hashtable parameters) throws DSETypeException
value
- Objectparameters
- com.ibm.btt.base.Hashtable
DSETypeException
- - If formatting is unsuccessfulpublic java.lang.Object unformatFloatType(java.lang.String floatAsString, Hashtable parameters) throws DSETypeException
floatAsString
- Stringparameters
- com.ibm.btt.base.Hashtable
DSETypeException
- - If formatting is unsuccessfulpublic java.lang.String formatIntegerType(java.lang.Object value, Hashtable parameters) throws DSETypeException
value
- Objectparameters
- com.ibm.btt.base.Hashtable
DSETypeException
- - If formatting is unsuccessfulpublic java.lang.Object unformatIntegerType(java.lang.String integerAsString, Hashtable parameters) throws DSETypeException
integerAsString
- Stringparameters
- com.ibm.btt.base.Hashtable
DSETypeException
- - If formatting is unsuccessfulpublic java.lang.String formatNumericStringType(java.lang.Object value, java.util.Locale locale, Hashtable parameters) throws DSETypeException
value
- Objectlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
java.io.IOException
- - If an I/O error occurs
DSETypeException
public java.lang.Object unformatNumericStringType(java.lang.String aNumberAsString, java.util.Locale locale, Hashtable parameters) throws DSETypeException
aNumberAsString
- java.lang.Stringlocale
- java.util.Locale;parameters
- com.ibm.btt.base.Hashtable
DSETypeException
public java.lang.String formatStringType(java.lang.Object value, Hashtable parameters) throws DSETypeException
value
- Objectparameters
- com.ibm.btt.base.Hashtable
java.io.IOException
- - If an I/O error occurs
DSETypeException
public java.lang.Object unformatStringType(java.lang.String aString, Hashtable parameters) throws DSETypeException
aString
- java.lang.Stringparameters
- com.ibm.btt.base.Hashtable
DSETypeException
public java.lang.String formatTimeType(java.lang.Object value, java.util.Locale locale, Hashtable parameters) throws DSETypeException
value
- Objectparameters
- com.ibm.btt.base.Hashtable
DSETypeException
public java.lang.Object unformatTimeType(java.lang.String dateAsString, java.util.Locale locale, Hashtable parameters) throws DSETypeException
dateAsString
- java.lang.Stringlocale
- java.util.Locale;parameters
- com.ibm.btt.base.Hashtable
DSETypeException
protected long parse(java.lang.String aString, int aByteOrdering, int aSize, boolean aSign)
aString
- java.lang.String
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |