public class RouteModel extends Object
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.
| Constructor and Description |
|---|
RouteModel(String name,
String description,
int minOccurs,
Integer maxOccurs,
Set<Stereotype> allowedStereotypes,
List<ParameterGroupModel> parameterGroupModels) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Optional<Set<Stereotype>> |
getAllowedStereotypes() |
String |
getDescription() |
Optional<Integer> |
getMaxOccurs() |
int |
getMinOccurs() |
String |
getName() |
List<ParameterGroupModel> |
getParameterGroupModels() |
int |
hashCode() |
void |
setDescription(String description) |
String |
toString() |
public RouteModel(String name, String description, int minOccurs, Integer maxOccurs, Set<Stereotype> allowedStereotypes, List<ParameterGroupModel> parameterGroupModels)
public String getName()
public String getDescription()
public void setDescription(String description)
public int getMinOccurs()
public List<ParameterGroupModel> getParameterGroupModels()
public Optional<Set<Stereotype>> getAllowedStereotypes()
Copyright © 2017 MuleSoft, Inc.. All rights reserved.