M - the actual ParameterizedModel sub-type of the component being built.public class ComponentParameterizationBuilder<M extends ParameterizedModel> extends Object implements ComponentParameterization.Builder<M>
ComponentParameterization instances.
The created instances of ComponentParameterization are immutable.| Constructor and Description |
|---|
ComponentParameterizationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ComponentParameterization<M> |
build()
Performs validations on the parameters provided through
ComponentParameterization.Builder.withParameter(String, String, Object). |
ComponentParameterization.Builder<M> |
withComponentIdentifier(ComponentIdentifier identifier) |
ComponentParameterization.Builder<M> |
withModel(M model) |
ComponentParameterization.Builder<M> |
withParameter(ParameterGroupModel paramGroup,
ParameterModel paramModel,
Object paramValue)
Sets a parameter with the given ParameterGroupModel and ParameterModel
|
ComponentParameterization.Builder<M> |
withParameter(String paramName,
Object paramValue)
Sets a parameter with a given value, automatically determining the group the parameter belongs to.
|
ComponentParameterization.Builder<M> |
withParameter(String paramGroupName,
String paramName,
Object paramValue)
Sets a parameter with a given value.
|
public ComponentParameterization.Builder<M> withModel(M model)
public ComponentParameterization.Builder<M> withParameter(String paramGroupName, String paramName, Object paramValue) throws IllegalArgumentException
ComponentParameterization.BuilderwithParameter in interface ComponentParameterization.Builder<M extends ParameterizedModel>paramGroupName - the name of the group containing the parameter to set.paramName - the name of the parameter within the paramGroupName group to set.paramValue - the value of the parameter to setIllegalArgumentException - if the provided parameter group and name does not exist for the model or is not of
a valid type.public ComponentParameterization.Builder<M> withParameter(ParameterGroupModel paramGroup, ParameterModel paramModel, Object paramValue)
ComponentParameterization.BuilderwithParameter in interface ComponentParameterization.Builder<M extends ParameterizedModel>paramGroup - - the ParameterGroupModel of the ParameterparamModel - - the ParameterModel of the ParameterparamValue - - the value of the parameter to set.public ComponentParameterization.Builder<M> withParameter(String paramName, Object paramValue) throws IllegalArgumentException
ComponentParameterization.BuilderwithParameter in interface ComponentParameterization.Builder<M extends ParameterizedModel>paramName - the name of the parameter within the paramGroupName group to set.paramValue - the value of the parameter to setIllegalArgumentException - if the provided parameter name does not exist for the model, a parameter with the
same name exists in more than on parameter group, or is not of a valid type.public ComponentParameterization.Builder<M> withComponentIdentifier(ComponentIdentifier identifier)
withComponentIdentifier in interface ComponentParameterization.Builder<M extends ParameterizedModel>identifier - - the ComponentIdentifier of the parameterized component.public ComponentParameterization<M> build()
ComponentParameterization.BuilderComponentParameterization.Builder.withParameter(String, String, Object). If valid, returns a
ComponentParameterization, otherwise an IllegalStateException is thrown.build in interface ComponentParameterization.Builder<M extends ParameterizedModel>ComponentParameterization.Copyright © 2022 MuleSoft, Inc.. All rights reserved.