public abstract class ComponentDeclarer<T extends ComponentDeclarer,D extends ComponentDeclaration> extends ParameterizedDeclarer<T,D> implements HasModelProperties<ComponentDeclarer>, HasNestedComponentsDeclarer, HasNestedRoutesDeclarer, HasStereotypeDeclarer<T>
ComponentDeclaration through a fluent APIdeclaration| Modifier and Type | Method and Description |
|---|---|
NestedChainDeclarer |
withChain()
Adds a component of the given
name |
NestedChainDeclarer |
withChain(String chainName)
Adds a component of the given
name |
NestedComponentDeclarer |
withComponent(String nestedComponentName)
Adds a component of the given
name |
T |
withErrorModel(ErrorModel error)
Adds an
ErrorModel to indicate that the current operation could throw the added error. |
T |
withModelProperty(ModelProperty modelProperty)
Adds the given
modelProperty |
NestedComponentDeclarer |
withOptionalComponent(String nestedComponentName)
Adds a component of the given
name |
NestedRouteDeclarer |
withRoute(String routeName)
Adds a component of the given
name |
T |
withStereotype(StereotypeModel stereotype)
Adds the given
stereotype |
describedAs, onDefaultParameterGroup, onParameterGroupgetDeclarationpublic NestedComponentDeclarer withOptionalComponent(String nestedComponentName)
namewithOptionalComponent in interface HasNestedComponentsDeclarernestedComponentName - a non blank nameNestedComponentDeclarer which allows describing the created componentpublic NestedComponentDeclarer withComponent(String nestedComponentName)
namewithComponent in interface HasNestedComponentsDeclarernestedComponentName - a non blank nameNestedComponentDeclarer which allows describing the created componentpublic NestedChainDeclarer withChain()
namewithChain in interface HasNestedComponentsDeclarerNestedComponentDeclarer which allows describing the created componentpublic NestedChainDeclarer withChain(String chainName)
namewithChain in interface HasNestedComponentsDeclarerchainName - a non blank nameNestedComponentDeclarer which allows describing the created componentpublic NestedRouteDeclarer withRoute(String routeName)
namewithRoute in interface HasNestedRoutesDeclarerrouteName - a non blank nameNestedComponentDeclarer which allows describing the created componentpublic T withStereotype(StereotypeModel stereotype)
stereotypewithStereotype in interface HasStereotypeDeclarer<T extends ComponentDeclarer>stereotype - a StereotypeModelthis declarerpublic T withModelProperty(ModelProperty modelProperty)
modelPropertywithModelProperty in interface HasModelProperties<ComponentDeclarer>modelProperty - a ModelPropertythis declarerpublic T withErrorModel(ErrorModel error)
ErrorModel to indicate that the current operation could throw the added error.error - ErrorModel to add to the OperationDeclarationthis declarerCopyright © 2017 MuleSoft, Inc.. All rights reserved.