public class ParameterDeclarer<T extends ParameterDeclarer> extends Object implements HasModelProperties<ParameterDeclarer<T>>, HasDisplayModelDeclarer<ParameterDeclarer<T>>
ParameterDeclaration
through a fluent APIModifier 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(MetadataType type)
Specifies the type of the
ParameterModel |
T |
ofType(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(MetadataType type)
ParameterModel
type
- the type of the parameterpublic T ofDynamicType(MetadataType type)
ParameterModel
type
- the type of the parameterpublic T describedAs(String description)
description
- a descriptionthis
descriptorpublic T withExpressionSupport(ExpressionSupport support)
public T withDsl(ParameterDslConfiguration dslModel)
dslModel
- an ParameterDslConfiguration
this
declarerpublic T withLayout(LayoutModel layoutModel)
layoutModel
layoutModel
- a LayoutModel
this
declarerpublic T withRole(ParameterRole role)
role
- a ParameterRole
this
declarerpublic T asConfigOverride()
config-override
.this
declarerpublic ParameterDeclarer<T> withModelProperty(ModelProperty modelProperty)
modelProperty
withModelProperty
in interface HasModelProperties<ParameterDeclarer<T extends ParameterDeclarer>>
modelProperty
- a ModelProperty
this
declarerpublic T withDisplayModel(DisplayModel displayModel)
displayModel
withDisplayModel
in interface HasDisplayModelDeclarer<ParameterDeclarer<T extends ParameterDeclarer>>
displayModel
- a DisplayModel
this
declarerpublic T withValueProviderModel(ValueProviderModel valueProviderModel)
valueProviderModel
valueProviderModel
- a ValueProviderModel
this
declarerpublic T withAllowedStereotypes(List<StereotypeModel> stereotypeModels)
List
of StereotypeModel
stereotypeModels
- a List
of StereotypeModel
this
declarerpublic ParameterDeclaration getDeclaration()
ParameterDeclaration
Copyright © 2018. All rights reserved.