Runtime components : Core components : UDTT definition description : Formatter configuration
  
Formatter configuration
Formatters are what the toolkit uses to exchange data between toolkit entities such as operations, contexts, and services. Each formatter converts a specific data item into a string representation of the data item and parses a string into a specific data item. In this way, the toolkit uses formatters to build messages to do things such as sending a transaction to the host, writing a journal record, and printing a form. Formatters enable applications to interact with many various entities without requiring changes to the application.
<field id="initializer" value="com.ibm.btt.base.FormatInitializer" />
The class is responsible for initializing all formatter configurations. The class is packaged in bttcore.jar.
<field id="extFile" value="format.xml" description="The recommended location is under same folder of btt.xml"/>
The extended file contains the formatter definitions for the application. By default, the extended file is in the same folder with btt.xml.
<kColl id="classTable">
The classTable contains a collection of definitions for the keywords of formatter and their implemented class. Those definitions can be added and removed from the collection. Only those definitions in the classTable collection can be used to define its formatter in extended file.
The following configuration items are formatters and decorators provided by the toolkit:
<field id="refFmt" />
<!-- Constant formatter -->
<field id="constant" value="com.ibm.btt.base.ConstantFormat" />
<!-- Concrete field formatter -->
<field id="fDate" value="com.ibm.btt.base.DateFormat" />
<field id="fFloat" value="com.ibm.btt.base.FloatFormat" />
<field id="fInteger" value="com.ibm.btt.base.IntegerFormat" />
<field id="fBinIntString" value="com.ibm.btt.base.BinaryIntegerStringFormat" />
<field id="fNumString" value="com.ibm.btt.base.NumericStringFormat" />
<field id="fPacked" value="com.ibm.btt.base.PackedFormat" />
<field id="fPackedDate" value="com.ibm.btt.base.PackedDateFormat" />
<field id="fString" value="com.ibm.btt.base.StringFormat" />
<field id="fTime" value="com.ibm.btt.base.TimeFormat" />
<!-- Indexed collection formatter -->
<field id="iCollF" value="com.ibm.btt.base.IndexedCollectionFormat" description="compound" />
<!-- Concrete keyed collection formatter -->
<field id="kCollF" value="com.ibm.btt.base.KeyedCollectionFormat" />
<field id="record" value="com.ibm.btt.base.RecordFormat" description="compound" />
<field id="drecord" value="com.ibm.btt.base.DynamicRecordFormat" />
<field id="fXML" value="com.ibm.btt.base.XMLFormat" description="compound" />
<field id="fdXML" value="com.ibm.btt.base.DynamicXMLFormat" description="compound" />
<field id="mapperConverter" value="com.ibm.btt.base.DataMapperConverterFormat" />
<field id="fTypedData" value="com.ibm.btt.base.TypedDataElementFormat" />
<field id="mapper" value="com.ibm.btt.base.DataMapperFormat" description="compound" />
<field id="fBigDecimal" value="com.ibm.btt.base.BigDecimalFormat" />
<field id="fObject" value="com.ibm.btt.base.ObjectFormat" />
<field id="pointer" value="com.ibm.btt.base.DataPointer" description="compound" />
<field id="hashtable" value="com.ibm.btt.base.HashtableFormat" />
<!-- Concrete decorator -->
<field id="nullCheck" value="com.ibm.btt.base.NullCheckDecorator" />
<field id="compress" value="com.ibm.btt.base.Compressor" />
<field id="codeSetTrans" value="com.ibm.btt.base.CodeSetTranslator" />
<field id="delim" value="com.ibm.btt.base.Delimiter" />
<field id="fixedLength" value="com.ibm.btt.base.FixedLength" />
<field id="id" value="com.ibm.btt.base.Identifier" />
<field id="maxLength" value="com.ibm.btt.base.MaximumLength" />
<field id="selfLength" value="com.ibm.btt.base.SelfLength" />
See also
UDTT definition description