public class ParameterDeclarer<T extends ParameterDeclarer> extends Object implements HasModelProperties<ParameterDeclarer<T>>, HasDisplayModelDeclarer<ParameterDeclarer<T>>
ParameterDeclaration through a fluent API| Modifier and Type | Method and Description |
|---|---|
T |
asConfigOverride()
Marks the parameter as being a
config-override. |
T |
describedAs(String description)
Adds a description
|
ParameterDeclaration |
getDeclaration()
Gets the declaration object for this descriptor
|
T |
ofDynamicType(org.mule.metadata.api.model.MetadataType type)
Specifies the type of the
ParameterModel |
T |
ofType(org.mule.metadata.api.model.MetadataType type)
Specifies the type of the
ParameterModel |
T |
withAllowedStereotypes(List<StereotypeModel> stereotypeModels)
Sets the given
List of StereotypeModel |
T |
withDisplayModel(DisplayModel displayModel)
Sets the given
displayModel |
T |
withDsl(ParameterDslConfiguration dslModel)
Describes the language which allows configuring this parameter
|
T |
withExpressionSupport(ExpressionSupport support) |
T |
withLayout(LayoutModel layoutModel)
Sets the given
layoutModel |
ParameterDeclarer<T> |
withModelProperty(ModelProperty modelProperty)
Adds the given
modelProperty |
T |
withRole(ParameterRole role)
Sets the purpose of the declared parameter
|
T |
withValueProviderModel(ValueProviderModel valueProviderModel)
Sets the given
valueProviderModel |
public T ofType(org.mule.metadata.api.model.MetadataType type)
ParameterModeltype - the type of the parameterpublic T ofDynamicType(org.mule.metadata.api.model.MetadataType type)
ParameterModeltype - the type of the parameterpublic T describedAs(String description)
description - a descriptionthis descriptorpublic T withExpressionSupport(ExpressionSupport support)
public T withDsl(ParameterDslConfiguration dslModel)
dslModel - an ParameterDslConfigurationthis declarerpublic T withLayout(LayoutModel layoutModel)
layoutModellayoutModel - a LayoutModelthis declarerpublic T withRole(ParameterRole role)
role - a ParameterRolethis declarerpublic T asConfigOverride()
config-override.this declarerpublic ParameterDeclarer<T> withModelProperty(ModelProperty modelProperty)
modelPropertywithModelProperty in interface HasModelProperties<ParameterDeclarer<T extends ParameterDeclarer>>modelProperty - a ModelPropertythis declarerpublic T withDisplayModel(DisplayModel displayModel)
displayModelwithDisplayModel in interface HasDisplayModelDeclarer<ParameterDeclarer<T extends ParameterDeclarer>>displayModel - a DisplayModelthis declarerpublic T withValueProviderModel(ValueProviderModel valueProviderModel)
valueProviderModelvalueProviderModel - a ValueProviderModelthis declarerpublic T withAllowedStereotypes(List<StereotypeModel> stereotypeModels)
List of StereotypeModelstereotypeModels - a List of StereotypeModelthis declarerpublic ParameterDeclaration getDeclaration()
ParameterDeclarationCopyright © 2017 MuleSoft, Inc.. All rights reserved.