Class ImmutableParameterModel
java.lang.Object
org.mule.runtime.extension.api.model.AbstractImmutableModel
org.mule.runtime.extension.api.model.AbstractNamedImmutableModel
org.mule.runtime.extension.api.model.parameter.ImmutableParameterModel
- All Implemented Interfaces:
org.mule.runtime.api.meta.DescribedObject,org.mule.runtime.api.meta.model.declaration.fluent.HasSemanticTerms,org.mule.runtime.api.meta.model.deprecated.DeprecableModel,org.mule.runtime.api.meta.model.display.HasDisplayModel,org.mule.runtime.api.meta.model.display.HasLayoutModel,org.mule.runtime.api.meta.model.EnrichableModel,org.mule.runtime.api.meta.model.parameter.ParameterModel,org.mule.runtime.api.meta.model.version.HasMinMuleVersion,org.mule.runtime.api.meta.NamedObject,org.mule.runtime.api.meta.Typed
public final class ImmutableParameterModel
extends AbstractNamedImmutableModel
implements org.mule.runtime.api.meta.model.parameter.ParameterModel
Immutable implementation of
ParameterModel- Since:
- 1.0
-
Field Summary
Fields inherited from class org.mule.runtime.extension.api.model.AbstractImmutableModel
description, modelProperties -
Constructor Summary
ConstructorsConstructorDescriptionImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, boolean isConfigOverride, boolean isComponentId, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, Object defaultValue, org.mule.runtime.api.meta.model.parameter.ParameterRole role, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslConfiguration, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, org.mule.runtime.api.meta.model.display.LayoutModel layoutModel, org.mule.runtime.api.meta.model.parameter.ValueProviderModel valueProviderModel, List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypeModels, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties) Creates a new instance with the given stateImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, boolean isConfigOverride, boolean isComponentId, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, Object defaultValue, org.mule.runtime.api.meta.model.parameter.ParameterRole role, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslConfiguration, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, org.mule.runtime.api.meta.model.display.LayoutModel layoutModel, org.mule.runtime.api.meta.model.parameter.ValueProviderModel valueProviderModel, List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypeModels, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties, org.mule.runtime.api.meta.model.deprecated.DeprecationModel deprecationModel) Creates a new instance with the given stateImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, boolean isConfigOverride, boolean isComponentId, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, Object defaultValue, org.mule.runtime.api.meta.model.parameter.ParameterRole role, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslConfiguration, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, org.mule.runtime.api.meta.model.display.LayoutModel layoutModel, org.mule.runtime.api.meta.model.parameter.ValueProviderModel valueProviderModel, List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypeModels, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties, org.mule.runtime.api.meta.model.deprecated.DeprecationModel deprecationModel, Set<String> semanticTerms, List<org.mule.runtime.api.meta.model.parameter.FieldValueProviderModel> fieldValueProviderModels) Creates a new instance with the given stateImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, boolean isConfigOverride, boolean isComponentId, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, Object defaultValue, org.mule.runtime.api.meta.model.parameter.ParameterRole role, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslConfiguration, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, org.mule.runtime.api.meta.model.display.LayoutModel layoutModel, org.mule.runtime.api.meta.model.parameter.ValueProviderModel valueProviderModel, List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypeModels, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties, org.mule.runtime.api.meta.model.deprecated.DeprecationModel deprecationModel, Set<String> semanticTerms, List<org.mule.runtime.api.meta.model.parameter.FieldValueProviderModel> fieldValueProviderModels, org.mule.runtime.api.meta.MuleVersion minMuleVersion) Creates a new instance with the given stateImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, boolean isConfigOverride, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, Object defaultValue, org.mule.runtime.api.meta.model.parameter.ParameterRole role, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslConfiguration, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, org.mule.runtime.api.meta.model.display.LayoutModel layoutModel, org.mule.runtime.api.meta.model.parameter.ValueProviderModel valueProviderModel, List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypeModels, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionList<org.mule.runtime.api.meta.model.stereotype.StereotypeModel>Optional<org.mule.runtime.api.meta.model.deprecated.DeprecationModel>org.mule.runtime.api.meta.model.ParameterDslConfigurationorg.mule.runtime.api.meta.ExpressionSupportList<org.mule.runtime.api.meta.model.parameter.FieldValueProviderModel>Optional<org.mule.runtime.api.meta.model.display.LayoutModel>Optional<org.mule.runtime.api.meta.MuleVersion>org.mule.runtime.api.meta.model.parameter.ParameterRolegetRole()org.mule.metadata.api.model.MetadataTypegetType()Optional<org.mule.runtime.api.meta.model.parameter.ValueProviderModel>booleanbooleanbooleanbooleanbooleantoString()Methods inherited from class org.mule.runtime.extension.api.model.AbstractNamedImmutableModel
checkArgument, equals, getDisplayModel, getName, hashCodeMethods inherited from class org.mule.runtime.extension.api.model.AbstractImmutableModel
copy, copy, getDescription, getModelProperties, getModelPropertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.mule.runtime.api.meta.DescribedObject
getDescriptionMethods inherited from interface org.mule.runtime.api.meta.model.EnrichableModel
getModelProperties, getModelPropertyMethods inherited from interface org.mule.runtime.api.meta.model.display.HasDisplayModel
getDisplayModelMethods inherited from interface org.mule.runtime.api.meta.NamedObject
getName
-
Constructor Details
-
ImmutableParameterModel
@Deprecated public ImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, boolean isConfigOverride, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, Object defaultValue, org.mule.runtime.api.meta.model.parameter.ParameterRole role, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslConfiguration, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, org.mule.runtime.api.meta.model.display.LayoutModel layoutModel, org.mule.runtime.api.meta.model.parameter.ValueProviderModel valueProviderModel, List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypeModels, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties) Deprecated.Creates a new instance with the given state- Parameters:
name- the parameter's name. Cannot be blank.description- the parameter's descriptiontype- the parameter'sMetadataType. Cannot benullhasDynamicType- if the giventypeis of dynamic kind and has to be discovered during design timerequired- whether this parameter is required or notexpressionSupport- theExpressionSupportthat applies tothisParameterModeldefaultValue- this parameter's default valuerole- this parameter's purposedslConfiguration- a model which describes the DSL semantics for this parameterdisplayModel- a model which contains directive about how the parameter is displayed in the UIlayoutModel- a model which contains directives about the parameter's layout in the UIallowedStereotypeModels- ASetwith the stereotypes of the allowed valuesmodelProperties- ASetof custom properties which extend this model- Throws:
IllegalArgumentException- ifrequiredistrueanddefaultValueis notnullat the same time
-
ImmutableParameterModel
public ImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, boolean isConfigOverride, boolean isComponentId, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, Object defaultValue, org.mule.runtime.api.meta.model.parameter.ParameterRole role, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslConfiguration, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, org.mule.runtime.api.meta.model.display.LayoutModel layoutModel, org.mule.runtime.api.meta.model.parameter.ValueProviderModel valueProviderModel, List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypeModels, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties) Creates a new instance with the given state- Parameters:
name- the parameter's name. Cannot be blank.description- the parameter's descriptiontype- the parameter'sMetadataType. Cannot benullhasDynamicType- if the giventypeis of dynamic kind and has to be discovered during design timerequired- whether this parameter is required or notisConfigOverride- whether this parameter is a configuration override or notisComponentId- whether this parameter serves as aComponentModelID or notexpressionSupport- theExpressionSupportthat applies tothisParameterModeldefaultValue- this parameter's default valuerole- this parameter's purposedslConfiguration- a model which describes the DSL semantics for this parameterdisplayModel- a model which contains directive about how the parameter is displayed in the UIlayoutModel- a model which contains directives about the parameter's layout in the UIallowedStereotypeModels- ASetwith the stereotypes of the allowed valuesmodelProperties- ASetof custom properties which extend this model- Throws:
IllegalArgumentException- ifrequiredistrueanddefaultValueis notnullat the same time
-
ImmutableParameterModel
public ImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, boolean isConfigOverride, boolean isComponentId, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, Object defaultValue, org.mule.runtime.api.meta.model.parameter.ParameterRole role, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslConfiguration, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, org.mule.runtime.api.meta.model.display.LayoutModel layoutModel, org.mule.runtime.api.meta.model.parameter.ValueProviderModel valueProviderModel, List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypeModels, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties, org.mule.runtime.api.meta.model.deprecated.DeprecationModel deprecationModel) Creates a new instance with the given state- Parameters:
name- the parameter's name. Cannot be blank.description- the parameter's descriptiontype- the parameter'sMetadataType. Cannot benullhasDynamicType- if the giventypeis of dynamic kind and has to be discovered during design timerequired- whether this parameter is required or notisConfigOverride- whether this parameter is a configuration override or notisComponentId- whether this parameter serves as aComponentModelID or notexpressionSupport- theExpressionSupportthat applies tothisParameterModeldefaultValue- this parameter's default valuerole- this parameter's purposedslConfiguration- a model which describes the DSL semantics for this parameterdisplayModel- a model which contains directive about how the parameter is displayed in the UIlayoutModel- a model which contains directives about the parameter's layout in the UIvalueProviderModel- a value provider modelallowedStereotypeModels- ASetwith the stereotypes of the allowed valuesmodelProperties- ASetof custom properties which extend this modeldeprecationModel- aDeprecationModeldescribing if the parameter is deprecated. A null value means it is not deprecated.- Throws:
IllegalArgumentException- ifrequiredistrueanddefaultValueis notnullat the same time
-
ImmutableParameterModel
public ImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, boolean isConfigOverride, boolean isComponentId, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, Object defaultValue, org.mule.runtime.api.meta.model.parameter.ParameterRole role, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslConfiguration, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, org.mule.runtime.api.meta.model.display.LayoutModel layoutModel, org.mule.runtime.api.meta.model.parameter.ValueProviderModel valueProviderModel, List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypeModels, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties, org.mule.runtime.api.meta.model.deprecated.DeprecationModel deprecationModel, Set<String> semanticTerms, List<org.mule.runtime.api.meta.model.parameter.FieldValueProviderModel> fieldValueProviderModels) Creates a new instance with the given state- Parameters:
name- the parameter's name. Cannot be blank.description- the parameter's descriptiontype- the parameter'sMetadataType. Cannot benullhasDynamicType- if the giventypeis of dynamic kind and has to be discovered during design timerequired- whether this parameter is required or notisConfigOverride- whether this parameter is a configuration override or notisComponentId- whether this parameter serves as aComponentModelID or notexpressionSupport- theExpressionSupportthat applies tothisParameterModeldefaultValue- this parameter's default valuerole- this parameter's purposedslConfiguration- a model which describes the DSL semantics for this parameterdisplayModel- a model which contains directive about how the parameter is displayed in the UIlayoutModel- a model which contains directives about the parameter's layout in the UIvalueProviderModel- a value provider modelallowedStereotypeModels- ASetwith the stereotypes of the allowed valuesmodelProperties- ASetof custom properties which extend this modeldeprecationModel- aDeprecationModeldescribing if the parameter is deprecated. A null value means it is not deprecated.semanticTerms- aSetof semantic terms which describe the parameter's meaning and effectfieldValueProviderModels-Listof field value provider models.- Throws:
IllegalArgumentException- ifrequiredistrueanddefaultValueis notnullat the same time- Since:
- 1.4.0
-
ImmutableParameterModel
public ImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, boolean isConfigOverride, boolean isComponentId, org.mule.runtime.api.meta.ExpressionSupport expressionSupport, Object defaultValue, org.mule.runtime.api.meta.model.parameter.ParameterRole role, org.mule.runtime.api.meta.model.ParameterDslConfiguration dslConfiguration, org.mule.runtime.api.meta.model.display.DisplayModel displayModel, org.mule.runtime.api.meta.model.display.LayoutModel layoutModel, org.mule.runtime.api.meta.model.parameter.ValueProviderModel valueProviderModel, List<org.mule.runtime.api.meta.model.stereotype.StereotypeModel> allowedStereotypeModels, Set<org.mule.runtime.api.meta.model.ModelProperty> modelProperties, org.mule.runtime.api.meta.model.deprecated.DeprecationModel deprecationModel, Set<String> semanticTerms, List<org.mule.runtime.api.meta.model.parameter.FieldValueProviderModel> fieldValueProviderModels, org.mule.runtime.api.meta.MuleVersion minMuleVersion) Creates a new instance with the given state- Parameters:
name- the parameter's name. Cannot be blank.description- the parameter's descriptiontype- the parameter'sMetadataType. Cannot benullhasDynamicType- if the giventypeis of dynamic kind and has to be discovered during design timerequired- whether this parameter is required or notisConfigOverride- whether this parameter is a configuration override or notisComponentId- whether this parameter serves as aComponentModelID or notexpressionSupport- theExpressionSupportthat applies tothisParameterModeldefaultValue- this parameter's default valuerole- this parameter's purposedslConfiguration- a model which describes the DSL semantics for this parameterdisplayModel- a model which contains directive about how the parameter is displayed in the UIlayoutModel- a model which contains directives about the parameter's layout in the UIvalueProviderModel- a value provider modelallowedStereotypeModels- ASetwith the stereotypes of the allowed valuesmodelProperties- ASetof custom properties which extend this modeldeprecationModel- aDeprecationModeldescribing if the parameter is deprecated. A null value means it is not deprecated.semanticTerms- aSetof semantic terms which describe the parameter's meaning and effectfieldValueProviderModels-Listof field value provider models.minMuleVersion- the min mule version of the parameter- Throws:
IllegalArgumentException- ifrequiredistrueanddefaultValueis notnullat the same time- Since:
- 1.5.0
-
-
Method Details
-
getType
public org.mule.metadata.api.model.MetadataType getType()- Specified by:
getTypein interfaceorg.mule.runtime.api.meta.Typed
-
hasDynamicType
public boolean hasDynamicType()- Specified by:
hasDynamicTypein interfaceorg.mule.runtime.api.meta.Typed
-
isRequired
public boolean isRequired()- Specified by:
isRequiredin interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
isOverrideFromConfig
public boolean isOverrideFromConfig()- Specified by:
isOverrideFromConfigin interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
getExpressionSupport
public org.mule.runtime.api.meta.ExpressionSupport getExpressionSupport()- Specified by:
getExpressionSupportin interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
getDslConfiguration
public org.mule.runtime.api.meta.model.ParameterDslConfiguration getDslConfiguration()- Specified by:
getDslConfigurationin interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
getRole
public org.mule.runtime.api.meta.model.parameter.ParameterRole getRole()- Specified by:
getRolein interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
getLayoutModel
- Specified by:
getLayoutModelin interfaceorg.mule.runtime.api.meta.model.display.HasLayoutModel- Specified by:
getLayoutModelin interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
getAllowedStereotypes
- Specified by:
getAllowedStereotypesin interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
getValueProviderModel
public Optional<org.mule.runtime.api.meta.model.parameter.ValueProviderModel> getValueProviderModel()- Specified by:
getValueProviderModelin interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
getFieldValueProviderModels
public List<org.mule.runtime.api.meta.model.parameter.FieldValueProviderModel> getFieldValueProviderModels()- Specified by:
getFieldValueProviderModelsin interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
isComponentId
public boolean isComponentId()- Specified by:
isComponentIdin interfaceorg.mule.runtime.api.meta.model.parameter.ParameterModel
-
getDeprecationModel
- Specified by:
getDeprecationModelin interfaceorg.mule.runtime.api.meta.model.deprecated.DeprecableModel
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecatedin interfaceorg.mule.runtime.api.meta.model.deprecated.DeprecableModel
-
getSemanticTerms
- Specified by:
getSemanticTermsin interfaceorg.mule.runtime.api.meta.model.declaration.fluent.HasSemanticTerms- Since:
- 1.4.0
-
getMinMuleVersion
- Specified by:
getMinMuleVersionin interfaceorg.mule.runtime.api.meta.model.version.HasMinMuleVersion
-
toString
- Overrides:
toStringin classAbstractNamedImmutableModel
-