Class DefaultFormElementTemplateList.Builder
- java.lang.Object
-
- de.xima.fc.plugin.models.retval.form.DefaultFormElementTemplateList.Builder
-
- Enclosing class:
- DefaultFormElementTemplateList
public static final class DefaultFormElementTemplateList.Builder extends Object
Simple builder for aIPluginFormElementTemplateList
.- Since:
- 8.0.1
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultFormElementTemplateList.Builder
addTemplates(IPluginFormElementTemplateDescriptor... templates)
Adds the given templates to given list of templates.DefaultFormElementTemplateList.Builder
addTemplates(Iterable<? extends IPluginFormElementTemplateDescriptor> templates)
Adds the given templates to given list of templates.DefaultFormElementTemplateList
build()
Creates a new template return value from the current configuration.DefaultFormElementTemplateList.Builder
templates(Iterable<? extends IPluginFormElementTemplateDescriptor> templates)
Replaces the templates with the given list of templates.
-
-
-
Method Detail
-
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
public DefaultFormElementTemplateList 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.
-
-