public class ParameterGroupDeclaration extends AbstractParameterDeclaration<ParameterGroupDeclaration>
ParameterGroupModel
. It contains raw,
unvalidated data which is used to declare the structure of a ParameterGroupModel
.layoutModel
Constructor and Description |
---|
ParameterGroupDeclaration(String name) |
Modifier and Type | Method and Description |
---|---|
ParameterGroupDeclaration |
addExclusiveParameters(Set<String> parameterNames,
boolean requiresOne) |
ParameterGroupDeclaration |
addParameter(ParameterDeclaration parameter)
Adds a
ParameterDeclaration |
List<ExclusiveParametersDeclaration> |
getExclusiveParameters() |
List<ParameterDeclaration> |
getParameters() |
boolean |
isShowInDsl() |
void |
showInDsl(boolean showInDsl)
Sets the declaration of whether this
ParameterDeclaration represents
a ParameterGroupModel that will be shown inline in the DSL or instead
is represented as a set of standalone attributes. |
getLayoutModel, setLayoutModel
getName
addModelProperty, getDescription, getDisplayModel, getModelProperties, getModelProperty, setDescription, setDisplayModel
public ParameterGroupDeclaration(String name)
public List<ParameterDeclaration> getParameters()
List
with the declarations
registered through addParameter(ParameterDeclaration)
public ParameterGroupDeclaration addParameter(ParameterDeclaration parameter)
ParameterDeclaration
parameter
- a not null
ParameterDeclaration
{@link
- IllegalArgumentException} if parameter
is null
public ParameterGroupDeclaration addExclusiveParameters(Set<String> parameterNames, boolean requiresOne)
public List<ExclusiveParametersDeclaration> getExclusiveParameters()
public void showInDsl(boolean showInDsl)
ParameterDeclaration
represents
a ParameterGroupModel
that will be shown inline in the DSL or instead
is represented as a set of standalone attributes.showInDsl
- true
if the group should be shown explicitly inline in the DSLpublic boolean isShowInDsl()
true
if the ParameterGroupModel
has to be shown inline in the DSLCopyright © 2018. All rights reserved.