public class ParameterRole extends UnknownType
ParameterModel.| Constructor and Description |
|---|
ParameterRole(String value,
boolean unknown,
boolean behaviour,
boolean content,
boolean primaryContent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBehaviour() |
boolean |
isContent() |
boolean |
isPrimaryContent() |
getValue, isUnknownpublic ParameterRole(String value, boolean unknown, boolean behaviour, boolean content, boolean primaryContent)
public boolean isBehaviour()
true, indicates that the parameter is only configuring the component's behaviour and doesn't represent
data that is being sent to another endpointpublic boolean isContent()
true, indicates that this parameter holds information to be considered content to be sent to a different
system or endpoint. It makes sense to use this when the operation has many content parameters but
this one is not the isPrimaryContent()public boolean isPrimaryContent()
true, indicates that this parameter holds the main piece of content to be sent to another system or endpoint.
This differentiation becomes specially important when the component has many content parameters.
If the component only has one content parameter, then this role will be used to mark such parameterCopyright © 2017 MuleSoft, Inc.. All rights reserved.