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, toStringprivate final CliArgument argument
private InitializationState state
public CliArgumentContainer(CliArgument argument, PojoPropertyAccessorOneArg setter, PojoPropertyAccessorNonArg getter, ValueValidator<?> validator)
public CliArgument getArgument()
CliArgument.CliArgument.protected Annotation getParameterAnnotation()
CliParameterContainergetParameterAnnotation in class CliParameterContainerAnnotation.protected String getName()
CliParameterContainergetName in class CliParameterContainerpublic InitializationState getState()
public void setState(InitializationState state)
state - is the state to setpublic CliContainerStyle getContainerStyle(CliStyle cliStyle)
CliParameterContainerstyle 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 CliParameterContainercliStyle - TODOstyle for this parameter.Copyright © 2001–2016 mmm-Team. All rights reserved.