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 Details

    • deserialize

      List<TemplateInput> deserialize(String content)
      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 of TemplateSerializerService
      Parameters:
      content - String containing a list of fields' description serialized
      Returns:
      the serialized content
    • serialize

      String serialize(List<TemplateInput> params)
      Transform the List of TemplateInput to String. Used to store a rendition context in the Document TemplateBased. Please for more information look the documentation of TemplateSerializerService