Class DefaultFormElementTemplateList.Builder
java.lang.Object
de.xima.fc.plugin.models.retval.form.DefaultFormElementTemplateList.Builder
- Enclosing class:
- DefaultFormElementTemplateList
Simple builder for a
IPluginFormElementTemplateList
.- Since:
- 8.0.1
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionaddTemplates
(IPluginFormElementTemplateDescriptor... templates) Adds the given templates to given list of templates.addTemplates
(Iterable<? extends IPluginFormElementTemplateDescriptor> templates) Adds the given templates to given list of templates.build()
Creates a new template return value from the current configuration.templates
(Iterable<? extends IPluginFormElementTemplateDescriptor> templates) Replaces the templates with the given list of templates.
-
Method Details
-
addTemplates
public DefaultFormElementTemplateList.Builder addTemplates(IPluginFormElementTemplateDescriptor... templates) Adds the given templates to given list of templates.- Parameters:
templates
- New list of templates to use.- Returns:
- This builder instance for chaining method calls.
-
addTemplates
public DefaultFormElementTemplateList.Builder addTemplates(Iterable<? extends IPluginFormElementTemplateDescriptor> templates) Adds the given templates to given list of templates.- Parameters:
templates
- New list of templates to use.- Returns:
- This builder instance for chaining method calls.
-
build
Creates a new template return value from the current configuration.- Returns:
- A new template return value.
-
templates
public DefaultFormElementTemplateList.Builder templates(Iterable<? extends IPluginFormElementTemplateDescriptor> templates) Replaces the templates with the given list of templates.- Parameters:
templates
- New list of templates to use.- Returns:
- This builder instance for chaining method calls.
-