public class RouteDeclarer extends ParameterizedDeclarer<RouteDeclaration>
RouteDeclaration through a fluent APIdeclaration| Constructor and Description |
|---|
RouteDeclarer(RouteDeclaration declaration)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
RouteDeclarer |
withAllowedStereotypes(Stereotype... stereotypes)
Adds the given
stereotypes to the ones which are allowed on
the route. |
RouteDeclarer |
withMaxOccurs(Integer maxOccurs)
Sets the maximum amount of times that this route can be present on the owning
component
|
RouteDeclarer |
withMinOccurs(int minOccurs)
Sets the minimum amount of times that this route can be present on the owning
component
|
onDefaultParameterGroup, onParameterGroupgetDeclarationpublic RouteDeclarer(RouteDeclaration declaration)
declaration - the RouteDeclaration to be configuredpublic RouteDeclarer withMinOccurs(int minOccurs)
minOccurs - a value equal or greater than zerothis declarerpublic RouteDeclarer withMaxOccurs(Integer maxOccurs)
maxOccurs - a value greater or equal than zerothis declarerpublic RouteDeclarer withAllowedStereotypes(Stereotype... stereotypes)
stereotypes to the ones which are allowed on
the route.stereotypes - the stereotypes to addthis declarerCopyright © 2017 MuleSoft, Inc.. All rights reserved.