|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.cli.base.CliParameterContainer
net.sf.mmm.util.cli.base.CliArgumentContainer
public class CliArgumentContainer
This is a container for a CliArgument together with additional
associated information.
| Field Summary | |
|---|---|
private CliArgument |
argument
|
private InitializationState |
state
|
| Constructor Summary | |
|---|---|
CliArgumentContainer(CliArgument argument,
PojoPropertyAccessorOneArg setter,
PojoPropertyAccessorNonArg getter,
ValueValidator validator)
The constructor. |
|
| Method Summary | |
|---|---|
CliArgument |
getArgument()
This method gets the actual CliArgument. |
CliContainerStyle |
getContainerStyle(CliStyle cliStyle)
This method gets the style of this parameter. |
String |
getId()
This method gets the ID of the argument. |
protected String |
getName()
This method gets the name of the option or argument. |
protected Annotation |
getParameterAnnotation()
This method gets the annotation with the metadata of the option or
argument. |
InitializationState |
getState()
|
void |
setState(InitializationState state)
|
| Methods inherited from class net.sf.mmm.util.cli.base.CliParameterContainer |
|---|
getGetter, getSetter, getValidator, isArrayMapOrCollection, isArrayMapOrCollection, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final CliArgument argument
getArgument()private InitializationState state
getState()| Constructor Detail |
|---|
public CliArgumentContainer(CliArgument argument,
PojoPropertyAccessorOneArg setter,
PojoPropertyAccessorNonArg getter,
ValueValidator validator)
argument - is the argument.setter - is the setter.getter - is the gettervalidator - is the validator.| Method Detail |
|---|
public CliArgument getArgument()
CliArgument.
CliArgument.protected Annotation getParameterAnnotation()
option or
argument.
getParameterAnnotation in class CliParameterContainerAnnotation.protected String getName()
option or argument.
getName in class CliParameterContainerpublic String getId()
ID of the argument.
ID or the name if ID is not set.public InitializationState getState()
public void setState(InitializationState state)
state - is the state to setpublic CliContainerStyle getContainerStyle(CliStyle cliStyle)
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 CliParameterContainercliStyle - TODO
style for this parameter.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||