Interface TemplateSerializer
- All Known Implementing Classes:
XMLTemplateSerializer
public interface TemplateSerializer
This class contains the Serialization/Deserialization logic.
TemplateInput
parameters are stored in the DocumentModel
as a single String Property via XML
Serialization.
- Since:
- 11.1
- Author:
- Tiry ([email protected]), bjalon ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(String content) Transform String to a List of TemplateInput.serialize
(List<TemplateInput> params) Transform the List of TemplateInput to String.
-
Method Details
-
deserialize
Transform String to a List of TemplateInput. TemplateInput represent a field that will be finally added into the context of the file rendition. Please for more information look the documentation ofTemplateSerializerService
- Parameters:
content
- String containing a list of fields' description serialized- Returns:
- the serialized content
-
serialize
Transform the List of TemplateInput to String. Used to store a rendition context in the Document TemplateBased. Please for more information look the documentation ofTemplateSerializerService
-