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.Configuration
protected 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 theConfiguration
for 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.MultiParamTemplateGenerator
Sets the template for generating the messages.- Specified by:
withTemplate
in interfaceMessageTemplatesGenerator.MultiParamTemplateGenerator
- Parameters:
template
- template for generating the messages- Returns:
- this
-
withTemplateCode
Description copied from interface:MessageTemplatesGenerator.MultiParamTemplateGenerator
Sets the template code for generating the messages.- Specified by:
withTemplateCode
in 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.MultiParamTemplateGenerator
Sets theConfiguration
for message generation.- Specified by:
withConfiguration
in interfaceMessageTemplatesGenerator.MultiParamTemplateGenerator
- Parameters:
configuration
- configuration for generating the message- Returns:
- this
-
addParams
Description copied from interface:MessageTemplatesGenerator.MultiParamTemplateGenerator
Adds a parameter map to the collection of parameters for generating the messages.- Specified by:
addParams
in interfaceMessageTemplatesGenerator.MultiParamTemplateGenerator
- Parameters:
params
- parameter map to add- Returns:
- this
-
generate
Description copied from interface:MessageTemplatesGenerator.MultiParamTemplateGenerator
Generates a messages based on the current state of the generator.- Specified by:
generate
in interfaceMessageTemplatesGenerator.MultiParamTemplateGenerator
- Returns:
- generated messages as a list of strings
-