Package io.jmix.messagetemplates.impl
Class MessageTemplatesGeneratorImpl.MultiParamTemplateGeneratorImpl
java.lang.Object
io.jmix.messagetemplates.impl.MessageTemplatesGeneratorImpl.MultiParamTemplateGeneratorImpl
- All Implemented Interfaces:
MessageTemplatesGenerator.MultiParamTemplateGenerator
- Enclosing class:
- MessageTemplatesGeneratorImpl
public class MessageTemplatesGeneratorImpl.MultiParamTemplateGeneratorImpl
extends Object
implements MessageTemplatesGenerator.MultiParamTemplateGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected freemarker.template.Configurationprotected Collection<Map<String,Object>> protected MessageTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a parameter map to the collection of parameters for generating the messages.generate()Generates a messages based on the current state of the generator.withConfiguration(freemarker.template.Configuration configuration) Sets theConfigurationfor message generation.withTemplate(MessageTemplate template) Sets the template for generating the messages.withTemplateCode(String templateCode) Sets the template code for generating the messages.
-
Field Details
-
template
-
params
-
configuration
protected freemarker.template.Configuration configuration
-
-
Constructor Details
-
MultiParamTemplateGeneratorImpl
public MultiParamTemplateGeneratorImpl()
-
-
Method Details
-
withTemplate
Description copied from interface:MessageTemplatesGenerator.MultiParamTemplateGeneratorSets the template for generating the messages.- Specified by:
withTemplatein interfaceMessageTemplatesGenerator.MultiParamTemplateGenerator- Parameters:
template- template for generating the messages- Returns:
- this
-
withTemplateCode
Description copied from interface:MessageTemplatesGenerator.MultiParamTemplateGeneratorSets the template code for generating the messages.- Specified by:
withTemplateCodein interfaceMessageTemplatesGenerator.MultiParamTemplateGenerator- Parameters:
templateCode- template code for generating the messages- Returns:
- this
-
withConfiguration
public MessageTemplatesGenerator.MultiParamTemplateGenerator withConfiguration(freemarker.template.Configuration configuration) Description copied from interface:MessageTemplatesGenerator.MultiParamTemplateGeneratorSets theConfigurationfor message generation.- Specified by:
withConfigurationin interfaceMessageTemplatesGenerator.MultiParamTemplateGenerator- Parameters:
configuration- configuration for generating the message- Returns:
- this
-
addParams
Description copied from interface:MessageTemplatesGenerator.MultiParamTemplateGeneratorAdds a parameter map to the collection of parameters for generating the messages.- Specified by:
addParamsin interfaceMessageTemplatesGenerator.MultiParamTemplateGenerator- Parameters:
params- parameter map to add- Returns:
- this
-
generate
Description copied from interface:MessageTemplatesGenerator.MultiParamTemplateGeneratorGenerates a messages based on the current state of the generator.- Specified by:
generatein interfaceMessageTemplatesGenerator.MultiParamTemplateGenerator- Returns:
- generated messages as a list of strings
-