public class ParameterGroupDeclarer<D extends ParameterGroupDeclaration> extends Declarer<D> implements HasModelProperties<ParameterGroupDeclarer<D>>
ParameterGroupDeclaration through a fluent APIdeclaration| Constructor and Description |
|---|
ParameterGroupDeclarer(D declaration)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
ParameterGroupDeclarer<D> |
withDslInlineRepresentation(boolean showInDsl)
Sets the DSL representation type to be either inline, where the group
is represented as a child element, or implicit, where the group
is shown as a set of attributes in the element.
|
ParameterGroupDeclarer<D> |
withExclusiveOptionals(Set<String> parameterNames,
boolean requiresOne) |
ParameterGroupDeclarer<D> |
withLayout(LayoutModel layoutModel)
Sets the given
layoutModel |
ParameterGroupDeclarer<D> |
withModelProperty(ModelProperty modelProperty)
Adds the given
modelProperty |
OptionalParameterDeclarer |
withOptionalParameter(String name)
Adds an optional parameter
|
ParameterDeclarer |
withRequiredParameter(String name)
Adds a required parameter
|
getDeclarationpublic ParameterGroupDeclarer(D declaration)
declaration - a declarationpublic ParameterDeclarer withRequiredParameter(String name)
name - the name of the parameterParameterDeclarerpublic OptionalParameterDeclarer withOptionalParameter(String name)
name - the name of the parameterOptionalParameterDeclarerpublic ParameterGroupDeclarer<D> withExclusiveOptionals(Set<String> parameterNames, boolean requiresOne)
public ParameterGroupDeclarer<D> withDslInlineRepresentation(boolean showInDsl)
showInDsl - true if the group is shown in the DSLthis ParameterGroupDeclarerpublic ParameterGroupDeclarer<D> withLayout(LayoutModel layoutModel)
layoutModellayoutModel - a LayoutModelthis declarerpublic ParameterGroupDeclarer<D> withModelProperty(ModelProperty modelProperty)
modelPropertywithModelProperty in interface HasModelProperties<ParameterGroupDeclarer<D extends ParameterGroupDeclaration>>modelProperty - a ModelPropertythis declarerCopyright © 2017 MuleSoft, Inc.. All rights reserved.