public abstract class ComponentDeclarer<T extends ComponentDeclarer,D extends ComponentDeclaration> extends ParameterizedDeclarer<T,D> implements HasModelProperties<T>, HasNestedComponentsDeclarer, HasNestedRoutesDeclarer, HasStereotypeDeclarer<T>, HasDeprecatedDeclarer<T>, HasSemanticTermsDeclarer<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 |
withDeprecation(DeprecationModel deprecation)
Adds the given
stereotype |
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 |
withSemanticTerm(String semanticTerm)
Adds the given
semanticTerm |
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<T extends 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 declarerpublic T withDeprecation(DeprecationModel deprecation)
stereotypewithDeprecation in interface HasDeprecatedDeclarer<T extends ComponentDeclarer>deprecation - a DeprecationModelthis declarerpublic T withSemanticTerm(String semanticTerm)
semanticTermwithSemanticTerm in interface HasSemanticTermsDeclarer<T extends ComponentDeclarer>semanticTerm - a semantic termthis declarerCopyright © 2024 MuleSoft, Inc.. All rights reserved.