public interface ITemplateDocument
Represents abstraction over specific document type (text, Word document, ...) All such documents are processed with this same API which allows for code reuse across different templates.
|Modifier and Type||Method and Description|
Flushes current changes to output stream and finishes processing.
Modifies document according to rules for specified data type.
Provides access to the low-level API.
Low-level API should mostly be used from plugins.
Common use case for using it is to check if all tags were processed and put out appropriate warning when they were not.
<T> ITemplateDocument process(T data)
Tags are resolved from properties, fields, methods, column names, etc...
Plugins will be invoked when this API is used, such as formatters, navigations and handlers.
Templater will find the best processor type which will process input data with the appropriate rules.
Process method can be called multiple times if there are multiple root objects.
T- type of data to process
data- data for modifying tags. Specific rules will be chosen from its type
IDocumentFactory.openthen this will return the original output stream.