You can create a new data type by extending a predefined
data type. This section describes how to extend a predefined data
type.
Procedure
To extend a predefined data type, do the following steps:
- In the Enterprise Explorer pane, right-click the type.xml file,
and then click . The
Transaction editor opens with the four predefined data types displayed
in the Type panel.
- Right-click in the Type panel of the Transaction editor,
and then click .
- In the Id field of the Detailed
Information panel, enter a name for the data type. Press Enter.
- Specify a descriptor for the data type.
- In the Type panel, right-click the new data type, and
then click . The Type Descriptor
Creation Dialog window opens.
- In the Type Descriptor Creation Dialog window, select Choose
Type Descriptor from local classpath, and then click Browse. The Select Class window opens.
- In the Select Class window, select com.ibm.btt.base.types.impl.SimplePropertyDescriptor.
Click OK. In the Type Descriptor Creation Dialog
window, click OK.
- In the Id field of the Detailed
Information panel, enter typeDefault.
- In the RefType field of the Detailed
Information panel, click the Browse icon to
select a predefined type. Do not change or enter values for all the
other fields in the Detailed Information panel.

- Specify a converter for the new data type.
- In the Type panel, right-click the descriptor of the
data type you are creating, and then click . The Type Convertor Creation Dialog window opens.
- In the Type Convertor Creation Dialog window, select Choose
Type Convertor from local classpath, and then click Browse. The Select Class window opens.
- In the Select Class window, select one of the following
classes, and then click OK.
- If the type is a subset of the String type, select com.ibm.btt.base.types.impl.StringConverter.
- If the type is a subset of the Date type, select com.ibm.btt.base.types.impl.DateConverter.
- If the type is a subset of the Number type, select com.ibm.btt.base.types.impl.NumberConverter.
- If the type is a subset of the Currency type, select com.ibm.btt.base.types.impl.CurrencyConverter.
- In the ConvTypes field of the
Detailed Information panel, enter default.
- Create conversion parameters for the data type.
- Right-click the converter of the new data type, and
then click .
- In the Id field of the Detailed
Information panel, enter a name for the converter.
- In the Value field, specify the
value to which the typed data should be converted.
- Specify a validator for the new data type.
- In the Type panel, right-click the descriptor of the
data type you are creating, and then click . The Type Validator Creation Dialog window opens.
- In the Type Validator Creation Dialog window, select Choose
Type Convertor from local classpath, and then click Browse. The Select Class window opens.
- In the Select Class window, select one of the following
classes, and then click OK.
- If the type is a subset of the String type, select com.ibm.btt.base.types.impl.StringValidator.
- If the type is a subset of the Date type, select com.ibm.btt.base.types.impl.DateValidator.
- If the type is a subset of the Number type, select com.ibm.btt.base.types.impl.NumberValidator.
- If the type is a subset of the Currency type, select com.ibm.btt.base.types.impl.CurrencyValidator.
- Create validation parameters for the data type.
- Right-click the validator of the new data type, and
then click .
- Specify values in the Id field
and the Value field.