public class ParameterConstruct<T extends ParameterConstruct> extends Object implements Construct, HasCapabilities<ParameterConstruct<T>>
Construct which allows configuring a ParameterDeclaration
through a fluent API| Modifier and Type | Method and Description |
|---|---|
T |
describedAs(String description)
Adds a description
|
ParameterDeclaration |
getDeclaration()
Gets the declaration object for this construct
|
DeclarationConstruct |
getRootConstruct()
Returns the root element of this construct
|
T |
ofType(Class<?> type,
Class<?>... parametrizedTypes)
Specifies the type of the
Parameter and its parametrized types |
T |
ofType(DataType dataType)
Specifies the type of the
Parameter |
T |
whichIsDynamic()
Specifies that the declared
Parameter is to be dynamic
(which is the default anyways...) |
T |
whichIsNotDynamic()
Specifies that the declared
Parameter is not to be dynamic |
WithParameters |
with() |
ParameterConstruct<T> |
withCapability(Object capability)
Adds the given capability to the declaring parameter
|
ConfigurationConstruct |
withConfig(String name)
Adds another config of the given name
|
OperationConstruct |
withOperation(String name)
Adds another operation of the given name
|
public T ofType(Class<?> type, Class<?>... parametrizedTypes)
Parameter and its parametrized typestype - the type of the parameterparametrizedTypes - the generic types for typepublic T ofType(DataType dataType)
ParameterdataType - the type of the parameterpublic T describedAs(String description)
description - a descriptionpublic T whichIsNotDynamic()
Parameter is not to be dynamicpublic T whichIsDynamic()
Parameter is to be dynamic
(which is the default anyways...)public ConfigurationConstruct withConfig(String name)
name - the name of the configConfigurationConstructpublic OperationConstruct withOperation(String name)
name - the name of the configOperationConstructpublic WithParameters with()
WithParameters that allows adding more parameters
to the owning Constructpublic DeclarationConstruct getRootConstruct()
ConstructgetRootConstruct in interface ConstructDeclarationConstructpublic ParameterConstruct<T> withCapability(Object capability)
withCapability in interface HasCapabilities<ParameterConstruct<T extends ParameterConstruct>>capability - a not null capabilitypublic ParameterDeclaration getDeclaration()
ParameterDeclarationCopyright © 2015 MuleSoft, Inc.. All rights reserved.