Runtime components : Core components : Typed data : Reference : Default implementation : Currency
  
Currency
The Currency type extends Number and is used for input and output of money amounts.
Attributes
Descriptor
ImplClass: com.ibm.btt.base.types.impl.SimplePropertyDescriptor
Converter
ImplClass: com.ibm.btt.base.types.impl.CurrencyConverter
numberType (fixed list of choices)
Is an enumerated value with one of the following types: byte, short, integer, long, double, float or bigDecimal. The default value is bigDecimal.
pattern (String)
Is used to format the number. If no value is specified, the default behavior is to use the locale specific formatting. This pattern follow the syntax described in website http://www.unicode.org/reports/tr35/#Number_Format_Patterns, for example: #.00.
Literal characters in patterns are not supported.
If patten and decimalPlaces are both specified, pattern overrides the setting of decimalPlaces.
decimalPlaces (int, mandatory if numberType is not a scalar type)
Is the length of the decimal part of the number. For example, 4 represent there are 4 number after the decimal point.
currency (String)
One currency setting to assign a type for the currency. For example: USD represents U.S. Dollars, CNY represents Chinese yuan
Validator
ImplClass: com.ibm.btt.base.types.impl.CurrencyValidator
Go up to
Default implementation