M - the actual ParameterizedModel sub-type of the component .public interface ComponentParameterization<M extends org.mule.runtime.api.meta.model.parameter.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 org.mule.runtime.api.meta.model.parameter.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 org.mule.runtime.api.meta.model.parameter.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<org.mule.runtime.api.component.ComponentIdentifier> |
getComponentIdentifier() |
M |
getModel() |
Object |
getParameter(org.mule.runtime.api.meta.model.parameter.ParameterGroupModel paramGroup,
org.mule.runtime.api.meta.model.parameter.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<org.mule.runtime.api.util.Pair<org.mule.runtime.api.meta.model.parameter.ParameterGroupModel,org.mule.runtime.api.meta.model.parameter.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(org.mule.runtime.api.meta.model.parameter.ParameterGroupModel paramGroup, org.mule.runtime.api.meta.model.parameter.ParameterModel param)
paramGroup - the model of the parameter groupparam - the model of the parameter within the groupMap<org.mule.runtime.api.util.Pair<org.mule.runtime.api.meta.model.parameter.ParameterGroupModel,org.mule.runtime.api.meta.model.parameter.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<org.mule.runtime.api.component.ComponentIdentifier> getComponentIdentifier()
ComponentIdentifier of the component this parameterizes.static <M extends org.mule.runtime.api.meta.model.parameter.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.