M - the actual ParameterizedModel sub-type of the component .@NoImplement
@Experimental
public interface ComponentParameterization<M extends ParameterizedModel>
ParameterizedModel.
Instances are validated during creation, so no instances must contain invalid parameters according to the model.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ComponentParameterization.Builder<M extends ParameterizedModel>
Builder that allows to create new
ComponentParameterization instances. |
static interface |
ComponentParameterization.ParameterAction
Callback to be used with
forEachParameter(ParameterAction). |
| Modifier and Type | Method and Description |
|---|---|
static <M extends ParameterizedModel> |
builder(M model)
Provides a brand new builder instance for creating a
ComponentParameterization. |
void |
forEachParameter(ComponentParameterization.ParameterAction action)
Iterates through the parameters that have values and calls the provided
action on each one. |
Optional<ComponentIdentifier> |
getComponentIdentifier() |
M |
getModel() |
Object |
getParameter(ParameterGroupModel paramGroup,
ParameterModel param)
Obtains the value of a parameter of the declared component.
|
Object |
getParameter(String paramGroupName,
String paramName)
Obtains the value of a parameter of the declared component.
|
Map<Pair<ParameterGroupModel,ParameterModel>,Object> |
getParameters()
Returns all the parameters of the declared model that have values.
|
M getModel()
Object getParameter(String paramGroupName, String paramName)
paramGroupName - the name of the parameter groupparamName - the name of the parameter within the groupObject getParameter(ParameterGroupModel paramGroup, ParameterModel param)
paramGroup - the model of the parameter groupparam - the model of the parameter within the groupMap<Pair<ParameterGroupModel,ParameterModel>,Object> getParameters()
Parameters with a default value but no explicit value set are contained in the returned map.
void forEachParameter(ComponentParameterization.ParameterAction action)
action on each one.
Parameters with a default value but no explicit value set have the action called for.
action - a callback to be called for every parameter.Optional<ComponentIdentifier> getComponentIdentifier()
ComponentIdentifier of the component this parameterizes.static <M extends ParameterizedModel> ComponentParameterization.Builder<M> builder(M model)
ComponentParameterization.M - the actual ParameterizedModel sub-type of the component.model - the actual model of the declared component.Copyright © 2022 MuleSoft, Inc.. All rights reserved.