public class DeclarationConstruct extends Object implements Construct, HasCapabilities<DeclarationConstruct>
Construct which allows configuring a Declaration
through a fluent API| Constructor and Description |
|---|
DeclarationConstruct(String name,
String version)
Constructor for this construct
|
| Modifier and Type | Method and Description |
|---|---|
DeclarationConstruct |
describedAs(String description)
Adds a description
|
Declaration |
getDeclaration() |
DeclarationConstruct |
getRootConstruct()
Returns the root element of this construct
|
DeclarationConstruct |
withCapability(Object capability)
Adds the given capability to this declaration
|
ConfigurationConstruct |
withConfig(String name)
Adds a config of the given name
|
OperationConstruct |
withOperation(String name)
Adds an operation of the given name
|
public DeclarationConstruct describedAs(String description)
description - a descriptionpublic ConfigurationConstruct withConfig(String name)
name - a non blank nameConfigurationConstruct which allows describing the created configurationpublic OperationConstruct withOperation(String name)
name - a non blank nameOperationConstruct which allows describing the created operationpublic DeclarationConstruct withCapability(Object capability)
withCapability in interface HasCapabilities<DeclarationConstruct>capability - a not null capabilitypublic DeclarationConstruct getRootConstruct()
ConstructgetRootConstruct in interface Constructpublic Declaration getDeclaration()
DeclarationCopyright © 2015 MuleSoft, Inc.. All rights reserved.