public class CliArgumentContainer extends CliParameterContainer
CliArgument
together with additional associated information.Modifier and Type | Field and Description |
---|---|
private CliArgument |
argument |
private InitializationState |
state |
Constructor and Description |
---|
CliArgumentContainer(CliArgument argument,
PojoPropertyAccessorOneArg setter,
PojoPropertyAccessorNonArg getter,
ValueValidator<?> validator)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
CliArgument |
getArgument()
This method gets the actual
CliArgument . |
CliContainerStyle |
getContainerStyle(CliStyle cliStyle)
This method gets the
style of this parameter. |
String |
getId()
|
protected String |
getName()
|
protected Annotation |
getParameterAnnotation()
|
InitializationState |
getState() |
void |
setState(InitializationState state) |
getGetter, getSetter, getValidator, isArrayMapOrCollection, isArrayMapOrCollection, toString
private final CliArgument argument
private InitializationState state
public CliArgumentContainer(CliArgument argument, PojoPropertyAccessorOneArg setter, PojoPropertyAccessorNonArg getter, ValueValidator<?> validator)
public CliArgument getArgument()
CliArgument
.CliArgument
.protected Annotation getParameterAnnotation()
CliParameterContainer
getParameterAnnotation
in class CliParameterContainer
Annotation
.protected String getName()
CliParameterContainer
getName
in class CliParameterContainer
public InitializationState getState()
public void setState(InitializationState state)
state
- is the state to setpublic CliContainerStyle getContainerStyle(CliStyle cliStyle)
CliParameterContainer
style
of this parameter. If the style of the parameter-annotation (
CliArgument.containerStyle()
or
CliOption.containerStyle()
) is CliContainerStyle.DEFAULT
this method will
return CliStyle.containerStyle()
.getContainerStyle
in class CliParameterContainer
cliStyle
- TODOstyle
for this parameter.Copyright © 2001–2016 mmm-Team. All rights reserved.