This topic provides a description of the typed data elements
that are provided by default by IBM® WebSphere® Multichannel Bank
Transformation Toolkit.
WebSphere Multichannel
Bank Transformation Toolkit provides the following eight typed data
elements by default:
The default typed data elements extend
BasicType.
BasicType
BasicType
is the base type from which all other types extend. It is also the
new recommended type to be used for extending custom, project-specific
types.
- Descriptor
- ImplClass : com.ibm.btt.base.types.impl.BasePropertyDescriptor
- Converter
- ImplClass : com.ibm.btt.base.types.impl.BaseConverter
- Validator
- ImplClass : com.ibm.btt.base.types.impl.BaseValidator
- isMandatory (boolean)
- If true, the end user must provide a value to the data field managed
by this type before submitting any request. All subclasses of this
type support the isMandatory parameter.
String
The String
type extends BasicType and is used for general string-based input.
- Descriptor
- ImplClass : com.ibm.btt.base.types.impl.SimplePropertyDescriptor
- Converter
- ImplClass : com.ibm.btt.base.types.impl.StringConverter
- Validator
- ImplClass : com.ibm.btt.base.types.impl.StringValidator
- minimumLength (int)
- Is the minimum length of characters for an input of this type
to be valid.
- maximumLength (int)
- Is the maximum length of characters for an input of this type
to be valid.
- regExp (string)
- Is a regular expression string that is used to match the input
string for validation. For example, the regExp="\d{10}" regular
expression will validate whether the input string is 10 numbers.
Date
The Date type
extends BasicType and is used for date input.
- Descriptor
- ImplClass : com.ibm.btt.base.types.impl.SimplePropertyDescriptor
- Converter
- ImplClass : com.ibm.btt.base.types.impl.DateConverter
- pattern (String)
- Pattern to be used when formatting and validating input. The default
pattern is yyyy-MM-dd.
- Validator
- ImplClass : com.ibm.btt.base.types.impl.DateValidator
- minimumDate (String)
- Is the lower limit of the date value input. Supported formats:
yyyy-MM-dd. Example: 2010-03-27. today+*y*m*d. Examples: today, today
+ 2y, today + 2m + 2d, etc. today-*y*m*d. Examples: today, today -
3y, today - 5d
- maximumDate (String)
- Is the upper limit of the date value input. The format is the
same as the minimumDate parameter.
Number
The Number
type extends BasicType, and is used for input and output of numeric
data.
- Descriptor
- ImplClass : com.ibm.btt.base.types.impl.SimplePropertyDescriptor
- Converter
- ImplClass : com.ibm.btt.base.types.impl.NumberConverter
- numberType (fixed list of choices)
- Is an enumerated value with one of the following types: byte,
short, integer, bigInteger, long, double, float or bigDecimal. The
default value is bigDecimal.
- 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.
- pattern (String)
- Is the pattern 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: #.0000.
Note: Literal characters in patterns are not
supported.
Note: If patten and decimalPlaces are both specified,
pattern overrides the setting of decimalPlaces.
- Validator
- ImplClass : com.ibm.btt.base.types.impl.NumberValidator
- minimumNumber (same type specified in numberType)
- Is the lower limit for valid data of this type.
- maximumNumber (same type specified in numberType)
- Is the upper limit for valid data of this type.
CurrencyNumber
The
CurrencyNumber type extends Number and is used for input and output
of money amounts.
- 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 the pattern used to format the number. If no value is specified,
the default behavior is to use the locale-specific formatting. It
is same to the number type.
- decimalPlaces (int, mandatory if numberType is not a scalar type)
- Is the length of the decimal part of the number. It overrides
the setting of number pattern. It is same to the number type.
- 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
- minimumNumber (same type specified in numberType)
- Is the lower limit for valid data of this type.
- maximumNumber (same type specified in numberType)
- Is the upper limit for valid data of this type.
Boolean
The Boolean
type extends BasicType and is used to represent a boolean type data.
If input data is a string type value, the content of this value should
be either "true" or "false", or "yes" or "no". The converter automatically
converts "true" and "yes" to a true boolean value and "false" and
"no" to false boolean value.
- Descriptor
- ImplClass : com.ibm.btt.base.types.impl.SimplePropertyDescriptor
- Converter
- ImplClass : com.ibm.btt.base.types.impl.BooleanConverter
- Validator
- ImplClass : com.ibm.btt.base.types.impl.BooleanValidator
- validValue (boolean)
- Enter the boolean value you expect. This parameter is optional.
ByteArray
The ByteArray type
extends BasicType and represent byte array data. The ByteArray type
is mainly used to exchange data with a front or back end system. For
example, you can send a byte array type format image attachment to
a back end system with Web services. A ByteArray instance is created
from a file, or it can be passed from other components or systems.
Because it is rare to create byte array data from a string value that
has been entered by a user, conversion of a string value to byte array
data is currently not supported.
- Descriptor
- ImplClass : com.ibm.btt.base.types.impl.SimplePropertyDescriptor
- Converter
- ImplClass : com.ibm.btt.base.types.impl.ByteArrayConverter
- Validator
- ImplClass : com.ibm.btt.base.types.impl.ByteArrayValidator
- minimumLength (int)
- Is the lower limit for length of valid byte array data.
- maximumLength (int)
- Is the upper limit for length of valid byte array data.
Duration
The Duration type extends
BasicType and represents a
javax.xml.datatype.Duration type
data. A Duration instance can be created from two types of string
formats: a long type millisecond value and a duration format string,
for example
P1DT9H55M31.233S. For more detailed information
on the format, see the description of
javax.xml.datatype.Duration.
- Descriptor
- ImplClass : com.ibm.btt.base.types.impl.SimplePropertyDescriptor
- Converter
- ImplClass : com.ibm.btt.base.types.impl.DurationConverter
- Validator
- ImplClass : com.ibm.btt.base.types.impl.DurationValidator
- minimumDur (String)
- Is the lower limit for valid data of this type.
- maximumDur (String)
- Is the upper limit for valid data of this type.
XMLGregorianCalendar
The XMLGregorianCalendar
type extends BasicType, and is used to represent date type data.
- Descriptor
- ImplClass : com.ibm.btt.base.types.impl.SimplePropertyDescriptor
- Converter
- ImplClass : com.ibm.btt.base.types.impl.XMLGregorianCalendarConverter
- pattern (String)
- Pattern to be used when formatting and validating input. The default
pattern is yyyy-MM-dd.
- Validator
- ImplClass : com.ibm.btt.base.types.impl.XMLGregorianCalendarValidator
- minimumDate (String)
- Is the lower limit of the date value input. Supported formats:
yyyy-MM-dd. Example: 2010-03-27. today+*y*m*d. Examples: today, today
+ 2y, today + 2m + 2d, etc. today-*y*m*d. Examples: today, today -
3y, today - 5d, etc.
- maximumDate (String)
- Is the upper limit of the date value input. The format is the
same as the minimumDate parameter.