About this task
To extend constant decorator, do the following:
- Create a class extending com.ibm.btt.base.FormatDecorator.
- In btt.xml, find the data section and add the following code to the classtable:
<field id="newkColl" value="package.NewKColl" />
- If your Transaction Editor is opened before you define the extensions,
right-click any blank space in the editor and select Reload BTT
Global Settings in the pop-up menu so that your changes can be
applied.
To extend Field formatter, such as fDate,fFloat,fInteger,fString,PackedFormat,
and NumericStringFormat, do the following:
- Create a class extending com.ibm.btt.base.FieldFormat.
- In btt.xml, find the data section and add the following code to the classtable:
field id="newkColl" value="package.NewKColl" /
- If your Transaction Editor is opened before you define the extensions,
right-click any blank space in the editor and select Reload BTT
Global Settings in the pop-up menu so that your changes can be
applied.
To extend record formatter, such as record and fXML, do the following:
- Create a class extending com.ibm.btt.base.RecordFormat.
- In btt.xml, find the data section and add the following code to the classtable:
<field id="newkColl" value="package.NewKColl" />
- If your Transaction Editor is opened before you define the extensions,
right-click any blank space in the editor and select Reload BTT
Global Settings in the pop-up menu so that your changes can be
applied.
To extend object formatter, such as fObject, do the following:
- Create a class extending com.ibm.btt.base.ObjectFormat.
- In btt.xml, find the data section and add the following code to the classtable:
<field id="newkColl" value="package.NewKColl" />
- If your Transaction Editor is opened before you define the extensions,
right-click any blank space in the editor and select Reload BTT
Global Settings in the pop-up menu so that your changes can be
applied.
To extend iCoof, do the following:
- Create a class extending com.ibm.btt.base.IndexedCollectionFormat.
- In btt.xml, find the data section and add the following code to the classtable:
<field id="newkColl" value="package.NewKColl" />
- If your Transaction Editor is opened before you define the extensions,
right-click any blank space in the editor and select Reload BTT
Global Settings in the pop-up menu so that your changes can be
applied.
To extend the property of formatter, add the following code:
import com.ibm.btt.annotation.ATTR;
@ATTR( { "newProperty1#String#REQUIRED","newProperty2#String#IMPLIED"})
where:
- newProperty1 is the property name;
- String is the property type;
- REQUIRED refers to if the property is required or implied.
- By default, the properties of the parent class are extended. If you do
not want to extend the properties of the parent class, you can add the configuration
as follows: @EXTEND("no").