com.ibm.btt.base.types.impl
Class CurrencyConverter
java.lang.Object
com.ibm.btt.base.types.AbstractConverter
com.ibm.btt.base.types.impl.BaseConverter<Currency,CurrencyConverter.CurrencyParamBeam>
com.ibm.btt.base.types.impl.CurrencyConverter
- All Implemented Interfaces:
- Conversion, TypeConstants, java.io.Externalizable, java.io.Serializable
public class CurrencyConverter
- extends BaseConverter<Currency,CurrencyConverter.CurrencyParamBeam>
- See Also:
- Serialized Form
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 |
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, unformatFromString, writeString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrencyConverter
public CurrencyConverter()
throws DSETypeException
- Throws:
DSETypeException
CurrencyConverter
public CurrencyConverter(java.lang.String[] arg0,
java.util.Hashtable<?,?> arg1)
throws DSETypeException
- Throws:
DSETypeException
format
public java.lang.String format(Currency value,
CurrencyConverter.CurrencyParamBeam 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<Currency,CurrencyConverter.CurrencyParamBeam>
- Parameters:
value
- The object to be converted toparams
- Conversion parameters defined by btt typeconvType
- Conversion type defined by btt typelocale
- Locale
- Returns:
- Formated string
- Throws:
DSETypeException
- Throw DSETypeException when failed to convert specified object to string
unformat
public Currency unformat(java.lang.String value,
CurrencyConverter.CurrencyParamBeam 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<Currency,CurrencyConverter.CurrencyParamBeam>
- Parameters:
value
- Input stringparams
- Conversion parameters defined by btt typeconvType
- Conversion type defined by btt typelocale
- Locale
- Returns:
- Converted object
- Throws:
DSETypeException
- Throw DSETypeException when failed to convert the input string to specified object
(c) Copyright IBM Corporation 1998, 2011