public class CliOptionContainer extends CliParameterContainer
CliOption together with additional associated information.| Constructor and Description |
|---|
CliOptionContainer(CliOption option,
PojoPropertyAccessorOneArg setter,
PojoPropertyAccessorNonArg getter,
ValueValidator<?> validator)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CliContainerStyle |
getContainerStyle(CliStyle cliStyle)
This method gets the
style of this parameter. |
protected String |
getName()
|
CliOption |
getOption()
This method gets the actual
CliOption. |
protected Annotation |
getParameterAnnotation()
|
boolean |
isTrigger()
This method determines if the
option is a trigger. |
getGetter, getSetter, getValidator, isArrayMapOrCollection, isArrayMapOrCollection, toStringprivate final CliOption option
public CliOptionContainer(CliOption option, PojoPropertyAccessorOneArg setter, PojoPropertyAccessorNonArg getter, ValueValidator<?> validator)
protected String getName()
CliParameterContainergetName in class CliParameterContainerprotected Annotation getParameterAnnotation()
CliParameterContainergetParameterAnnotation in class CliParameterContainerAnnotation.public CliOption getOption()
CliOption.CliOption.public boolean isTrigger()
option is a trigger. Trigger means that the type of the
setter is a primitive boolean and the option is never followed by a value on the commandline.true if trigger, false otherwise.public 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.