public final class ImmutableParameterModel extends AbstractNamedImmutableModel implements ParameterModel
ParameterModelRESERVED_NAMES| Constructor and Description |
|---|
ImmutableParameterModel(String name,
String description,
org.mule.metadata.api.model.MetadataType type,
boolean hasDynamicType,
boolean required,
ExpressionSupport expressionSupport,
Object defaultValue,
Set<ModelProperty> modelProperties)
Creates a new instance with the given state
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getDefaultValue()
The default value for this parameter.
|
ExpressionSupport |
getExpressionSupport()
The level of support
this parameter has for expressions |
org.mule.metadata.api.model.MetadataType |
getType()
Returns the
MetadataType of the Typed component. |
boolean |
hasDynamicType()
Returns
true if the type of the Component is
of dynamic kind, and has to be discovered during design time using
the MetadataManager service. |
boolean |
isRequired()
Whether or not this parameter is required.
|
checkArgument, equals, getName, hashCode, toStringgetDescription, getModelProperties, getModelPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescriptiongetModelProperties, getModelPropertypublic ImmutableParameterModel(String name, String description, org.mule.metadata.api.model.MetadataType type, boolean hasDynamicType, boolean required, ExpressionSupport expressionSupport, Object defaultValue, Set<ModelProperty> modelProperties)
name - the parameter's name. Cannot be blank and cannot be one of the values in ParameterModel.RESERVED_NAMESdescription - the parameter's descriptiontype - the parameter's MetadataType. Cannot be nullhasDynamicType - if the given type is of dynamic kind and has to be discovered during design timerequired - whether this parameter is required or notexpressionSupport - the ExpressionSupport that applies to this ParameterModeldefaultValue - this parameter's default valuemodelProperties - A Set of custom properties which extend this modelIllegalArgumentException - if required is true and defaultValue is not null at the same timepublic org.mule.metadata.api.model.MetadataType getType()
MetadataType of the Typed component.public boolean hasDynamicType()
Typedtrue if the type of the Component is
of dynamic kind, and has to be discovered during design time using
the MetadataManager service.hasDynamicType in interface Typedtrue if this element type is of dynamic kindpublic boolean isRequired()
ParameterModel.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 requiredisRequired in interface ParameterModelpublic ExpressionSupport getExpressionSupport()
this parameter has for expressionsgetExpressionSupport in interface ParameterModelExpressionSupportpublic Object getDefaultValue()
ParameterModel.getExpressionSupport() returns ExpressionSupport.REQUIRED
or ExpressionSupport.SUPPORTED.
This method is exclusive with ParameterModel.isRequired(). Check that method's comments for
more information on the semantics of this two methods.
getDefaultValue in interface ParameterModelCopyright © 2016 MuleSoft, Inc.. All rights reserved.