Formatters

A formatter is a piece of code that is executed either before or after data is mapped from a business object to an export file. There are two general types of formatters: field formatters and data formatters.

Field formatters operate on specific values in the data export. Field formatters are based on the IFieldFormatter interface, which has two methods for export processing: BeforeMapTo and AfterMapTo.

Data formatters operate either on steps in an export mapping file, or on the whole document. Data formatters are based on the IDataFormatter interface, which has four methods for export processing. BeforeMapObjectTo and AfterMapObjectTo act on a given step, while BeforeMapDocumentTo and AfterMapDocumentTo act on the whole document.