@NoImplement public interface ParameterModel extends NamedObject, DescribedObject, EnrichableModel, Typed, HasDisplayModel, HasLayoutModel, DeprecableModel
Component or Configuration
A parameter provides a name, a type and a default value.
It can apply either to aConfigurationModel or a
ComponentModel| Modifier and Type | Method and Description |
|---|---|
List<StereotypeModel> |
getAllowedStereotypes() |
Object |
getDefaultValue()
The default value for this parameter.
|
ParameterDslConfiguration |
getDslConfiguration() |
ExpressionSupport |
getExpressionSupport()
The level of support
this parameter has for expressions |
Optional<LayoutModel> |
getLayoutModel()
The value of
LayoutModel.getOrder() is to be consider relative to the owning
ParameterGroupModel |
ParameterRole |
getRole() |
Optional<ValueProviderModel> |
getValueProviderModel() |
boolean |
isComponentId()
Whether or not this
ParameterModel is declared as ID of the owning ComponentModel. |
boolean |
isOverrideFromConfig()
|
boolean |
isRequired()
Whether or not this parameter is required.
|
getNamegetDescriptiongetModelProperties, getModelPropertygetType, hasDynamicTypegetDisplayModelgetDeprecationModel, isDeprecatedboolean isRequired()
getDefaultValue() in the sense that a required parameter cannot have a default
value. At the same time, if the parameter has a default value, then it makes no sense
to consider it as requiredboolean isOverrideFromConfig()
this parameter is bound to a ParameterModel of the same name
and type that exists in the config associated to the
container of this parameter.
true, the parameter will be injected with the same value of the
bound parameter of the config that's been associated to the execution.ExpressionSupport getExpressionSupport()
this parameter has for expressionsExpressionSupportObject getDefaultValue()
getExpressionSupport() returns ExpressionSupport.REQUIRED
or ExpressionSupport.SUPPORTED.
This method is exclusive with isRequired(). Check that method's comments for
more information on the semantics of this two methods.
ParameterDslConfiguration getDslConfiguration()
ParameterDslConfigurationwhich describes the language which
allows configuring this parameterParameterRole getRole()
ParameterModel's roleOptional<LayoutModel> getLayoutModel()
LayoutModel.getOrder() is to be consider relative to the owning
ParameterGroupModelgetLayoutModel in interface HasLayoutModelOptional LayoutModel which contains directives
about how this parameter should be shown in the UIList<StereotypeModel> getAllowedStereotypes()
List of StereotypeModels that this ParameterModel should accept values of.Optional<ValueProviderModel> getValueProviderModel()
ValueProviderModel to communicate if the this parameter model is capable to provide values.
an Optional.empty() if there is no model associate to this parameter.boolean isComponentId()
ParameterModel is declared as ID of the owning ComponentModel.
Being a Component ID means that the value associated to the annotated parameter can be used to reference the
component in a mule application uniquely across all the instances of the same ComponentModel.
When used on a global element of the application, then this Component ID serves as a global ID in the application.
An example of a ComponentModel ID is the name parameter of a config element.
Restrictions apply in order for a ParameterModel to be a ComponentModel ID:
parameter can be component ID for any given ComponentModelparameters serve as Component IDStringExpressionSupport.NOT_SUPPORTED, so no dynamic values are allowedParameterRole.CONTENT qualifier is not allowed for a Component IDText qualifier is not allowed for a Component IDQuery qualifier is not allowed for a Component IDConfigOverride is not allowed for a Component ID since it describes the ID of each
individual component and no common global value should be used as IDtrue if this ParameterModel is a ComponentModel ID.Copyright © 2021 MuleSoft, Inc.. All rights reserved.