public class NestedComponentDeclarer<T extends NestedComponentDeclarer,D extends NestedComponentDeclaration> extends ComponentDeclarer<T,D>
NestedComponentDeclaration through a fluent APIdeclaration| Constructor and Description |
|---|
NestedComponentDeclarer(D declaration)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
T |
describedAs(String description)
Adds a description
|
NestedComponentDeclarer |
withAllowedStereotypes(StereotypeModel... stereotypes)
Adds the given
stereotypes to the ones which are allowed on the route. |
NestedComponentDeclarer<T,D> |
withMaxOccurs(Integer maxOccurs)
Sets the maximum amount of times that this component can be present on the owning one.
|
NestedComponentDeclarer<T,D> |
withMinOccurs(int minOccurs)
Sets the minimum amount of times that this component can be present on the owning one.
|
T |
withModelProperty(ModelProperty modelProperty)
Adds the given
modelProperty |
T |
withStereotype(StereotypeModel stereotype)
Adds the given
stereotype |
withChain, withChain, withComponent, withDeprecation, withErrorModel, withOptionalComponent, withRoute, withSemanticTermonDefaultParameterGroup, onParameterGroupgetDeclarationpublic NestedComponentDeclarer(D declaration)
declaration - the NestedComponentDeclaration to be configuredpublic NestedComponentDeclarer withAllowedStereotypes(StereotypeModel... stereotypes)
stereotypes to the ones which are allowed on the route.stereotypes - the stereotypes to addthis declarerpublic T withModelProperty(ModelProperty modelProperty)
ComponentDeclarermodelPropertywithModelProperty in interface HasModelProperties<T extends NestedComponentDeclarer>withModelProperty in class ComponentDeclarer<T extends NestedComponentDeclarer,D extends NestedComponentDeclaration>modelProperty - a ModelPropertythis declarerpublic T describedAs(String description)
describedAs in class ParameterizedDeclarer<T extends NestedComponentDeclarer,D extends NestedComponentDeclaration>description - a descriptionthis declarerpublic T withStereotype(StereotypeModel stereotype)
stereotypewithStereotype in interface HasStereotypeDeclarer<T extends NestedComponentDeclarer>withStereotype in class ComponentDeclarer<T extends NestedComponentDeclarer,D extends NestedComponentDeclaration>stereotype - a StereotypeModelthis declarerpublic NestedComponentDeclarer<T,D> withMinOccurs(int minOccurs)
Setting this to zero means that the element becomes optional.
minOccurs - a value equal or greater than zerothis declarerpublic NestedComponentDeclarer<T,D> withMaxOccurs(Integer maxOccurs)
Setting this to null means that repetitions are unbounded.
maxOccurs - a value greater or equal than zerothis declarerCopyright © 2025 MuleSoft, Inc.. All rights reserved.