public class ParameterDeclaration extends AbstractParameterDeclaration<ParameterDeclaration> implements TypedDeclaration, WithDeprecatedDeclaration, WithSemanticTermsDeclaration
ParameterModel. It contains raw, unvalidated data which is used to declare the structure of
a ParameterModel.
By default, getExpressionSupport() ()} returns ExpressionSupport.SUPPORTED.
layoutModel| Constructor and Description |
|---|
ParameterDeclaration(String name) |
getLayoutModel, setLayoutModelgetNameaddModelProperty, getDescription, getDisplayModel, getModelProperties, getModelProperty, setDescription, setDisplayModelpublic ParameterDeclaration(String name)
public boolean isRequired()
public void setRequired(boolean required)
public ExpressionSupport getExpressionSupport()
public void setExpressionSupport(ExpressionSupport expressionSupport)
public Object getDefaultValue()
public void setDefaultValue(Object defaultValue)
public org.mule.metadata.api.model.MetadataType getType()
getType in interface TypedDeclarationMetadataType of the elementpublic void setType(org.mule.metadata.api.model.MetadataType type,
boolean isDynamic)
MetadataType to the element being declaredsetType in interface TypedDeclarationtype - the element's static MetadataTypeisDynamic - whether or not the element being declare supports a dynamic resolution of it's type, regardless of the
type statically associatedpublic boolean hasDynamicType()
hasDynamicType in interface TypedDeclarationpublic ParameterDslConfiguration getDslConfiguration()
public void setDslConfiguration(ParameterDslConfiguration dslConfiguration)
public ParameterRole getRole()
public void setParameterRole(ParameterRole parameterRole)
public boolean isConfigOverride()
public void setConfigOverride(boolean isConfigOverride)
public ValueProviderModel getValueProviderModel()
public void setValueProviderModel(ValueProviderModel valueProviderModel)
public List<FieldValueProviderModel> getFieldValueProviderModels()
public void setFieldValueProviderModels(List<FieldValueProviderModel> fieldValueProviderModels)
public void setAllowedStereotypeModels(List<StereotypeModel> allowedStereotypeModels)
public List<StereotypeModel> getAllowedStereotypeModels()
public boolean isComponentId()
public void setComponentId(boolean componentId)
public Optional<DeprecationModel> getDeprecation()
getDeprecation in interface WithDeprecatedDeclarationthis components DeprecationModelpublic void withDeprecation(DeprecationModel deprecation)
withDeprecation in interface WithDeprecatedDeclarationdeprecation - this components DeprecationModelpublic Set<String> getSemanticTerms()
getSemanticTerms in interface WithSemanticTermsDeclarationpublic void addSemanticTerm(String semanticTerm)
semanticTermaddSemanticTerm in interface WithSemanticTermsDeclarationsemanticTerm - a semantic term which describes theCopyright © 2024 MuleSoft, Inc.. All rights reserved.