IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base.types.impl
Class StringConverter

java.lang.Object
  extended by com.ibm.btt.base.types.AbstractConverter
      extended by com.ibm.btt.base.types.impl.BaseConverter<java.lang.String,BaseConverter.FormatParamBeam>
          extended by com.ibm.btt.base.types.impl.StringConverter
All Implemented Interfaces:
Conversion, TypeConstants, java.io.Externalizable, java.io.Serializable

public class StringConverter
extends BaseConverter<java.lang.String,BaseConverter.FormatParamBeam>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.btt.base.types.impl.BaseConverter
BaseConverter.FormatParamBeam
 
Field Summary
 
Fields inherited from class com.ibm.btt.base.types.AbstractConverter
keyValuePairs
 
Fields inherited from interface com.ibm.btt.base.types.TypeConstants
amended, CONV_TYPE_DEFAULT, CONV_TYPE_HOST, CONV_TYPE_OUTPUT, CONV_TYPE_SER, CONV_TYPE_XML, disabled, hidden, isAmended, isDisabled, isHidden, isMandatory, isOmitted, isReadOnly, mandatory, omitted, readOnly, TYPE_DEFAULT, TYPE_REGISTRY_INIT_SIZE
 
Constructor Summary
StringConverter()
           
StringConverter(java.lang.String[] arg0, java.util.Hashtable<?,?> arg1)
           
 
Method Summary
 java.lang.String format(java.lang.String value, BaseConverter.FormatParamBeam params, java.lang.String convType, java.util.Locale locale)
          Convert specified object to string.
 java.lang.String unformat(java.lang.String value, BaseConverter.FormatParamBeam params, java.lang.String convType, java.util.Locale locale)
          Convert string input to specified object
protected  java.lang.Object unformatFromString(java.lang.String convType, java.util.Locale locale, BaseConverter.FormatParamBeam paramBean, java.lang.String stringValue)
           
 
Methods inherited from class com.ibm.btt.base.types.impl.BaseConverter
convertFrom, convertFrom, convertFrom, convertFrom, convertFrom, convertTo, convertTo, convertTo, convertTo, convertTo, formatToWriter, formatToWriter, formatToWriter, formatToWriterForType, formatToWriterForType, formatToWriterForType, formatToWriterForType, getImplClass, getParameter, getParameterBean, readString, unformat, unformat, unformatFromReader, unformatFromReader, unformatFromReader, unformatFromReader, unformatFromReaderForType, unformatFromReaderForType, unformatFromReaderForType, unformatFromReaderForType, writeString
 
Methods inherited from class com.ibm.btt.base.types.AbstractConverter
getParameters, getSupportedConversionTypes, readExternal, supportsConversionType, validateParams, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringConverter

public StringConverter()
                throws DSETypeException
Throws:
DSETypeException

StringConverter

public StringConverter(java.lang.String[] arg0,
                       java.util.Hashtable<?,?> arg1)
                throws DSETypeException
Throws:
DSETypeException
Method Detail

format

public java.lang.String format(java.lang.String value,
                               BaseConverter.FormatParamBeam params,
                               java.lang.String convType,
                               java.util.Locale locale)
                        throws DSETypeException
Description copied from class: BaseConverter
Convert specified object to string.

Specified by:
format in class BaseConverter<java.lang.String,BaseConverter.FormatParamBeam>
Parameters:
value - The object to be converted to
params - Conversion parameters defined by btt type
convType - Conversion type defined by btt type
locale - Locale
Returns:
Formated string
Throws:
DSETypeException - Throw DSETypeException when failed to convert specified object to string

unformat

public java.lang.String unformat(java.lang.String value,
                                 BaseConverter.FormatParamBeam params,
                                 java.lang.String convType,
                                 java.util.Locale locale)
                          throws DSETypeException
Description copied from class: BaseConverter
Convert string input to specified object

Specified by:
unformat in class BaseConverter<java.lang.String,BaseConverter.FormatParamBeam>
Parameters:
value - Input string
params - Conversion parameters defined by btt type
convType - Conversion type defined by btt type
locale - Locale
Returns:
Converted object
Throws:
DSETypeException - Throw DSETypeException when failed to convert the input string to specified object

unformatFromString

protected java.lang.Object unformatFromString(java.lang.String convType,
                                              java.util.Locale locale,
                                              BaseConverter.FormatParamBeam paramBean,
                                              java.lang.String stringValue)
                                       throws DSETypeException
Overrides:
unformatFromString in class BaseConverter<java.lang.String,BaseConverter.FormatParamBeam>
Throws:
DSETypeException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011