public interface RouteModel extends ParameterizedModel
For example:
<foreach> component are part of a route<when> block inside a choice router.
Each of the above constitute a Route. Several instances of those routes can exists
inside the same component instance. For example, the when route can be used many times
inside a choice router. On the other hand, the otherwise route inside the same router can
only exist up to one time, while it is also allowed to not exist at all. This getMinOccurs()
and getMaxOccurs() methods model that.
Finally, some scope have restrictions regarding which components can be used with them. For example,
validation:all only allows other validators to be placed inside. That's what the getAllowedStereotypes()
method represents.
| Modifier and Type | Method and Description |
|---|---|
Optional<Set<Stereotype>> |
getAllowedStereotypes()
|
Optional<Integer> |
getMaxOccurs()
Optional value which represents the maximum amount of times that this route can be used inside the owning
component. |
int |
getMinOccurs()
Represents the minimum amount of times that this route can be used inside the owning component.
|
getAllParameterModels, getParameterGroupModelsgetNamegetDescriptionint getMinOccurs()
Optional<Integer> getMaxOccurs()
Optional value which represents the maximum amount of times that this route can be used inside the owning
component.Optional<Set<Stereotype>> getAllowedStereotypes()
Optional Set of stereotypes to which the components placed inside the route
MUST conform to.
If the value is empty, it means that no restriction applies.
Copyright © 2017 MuleSoft, Inc.. All rights reserved.