public class ParameterDescriptor<T extends ParameterDescriptor> extends Object implements Descriptor, HasCapabilities<ParameterDescriptor<T>>
Descriptor 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 descriptor
|
DeclarationDescriptor |
getRootDeclaration()
Returns the root element of this declaration
|
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 |
whichIsStatic()
Specifies that the declared
Parameter is not to be dynamic |
WithParameters |
with() |
ParameterDescriptor<T> |
withCapability(Object capability)
Adds the given capability to the declaring parameter
|
ConfigurationDescriptor |
withConfig(String name)
Adds another config of the given name
|
OperationDescriptor |
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 whichIsStatic()
Parameter is not to be dynamicpublic T whichIsDynamic()
Parameter is to be dynamic
(which is the default anyways...)public ConfigurationDescriptor withConfig(String name)
name - the name of the configConfigurationDescriptorpublic OperationDescriptor withOperation(String name)
name - the name of the configOperationDescriptorpublic WithParameters with()
WithParameters that allows adding more parameters
to the owning Descriptorpublic DeclarationDescriptor getRootDeclaration()
DescriptorgetRootDeclaration in interface DescriptorDeclarationDescriptorpublic ParameterDescriptor<T> withCapability(Object capability)
withCapability in interface HasCapabilities<ParameterDescriptor<T extends ParameterDescriptor>>capability - a not null capabilitypublic ParameterDeclaration getDeclaration()
ParameterDeclarationCopyright © 2015 MuleSoft, Inc.. All rights reserved.