public class CliValueContainerObject extends AbstractCliValueContainer
CliValueContainer
for simple objects (no arrays, collections, maps).Constructor and Description |
---|
CliValueContainerObject(CliParameterContainer parameterContainer,
CliState cliState,
CliParserDependencies dependencies,
org.slf4j.Logger logger)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
|
void |
setValue(String argument)
This method sets the
value given as string. |
getCliState, getDependencies, getLogger, getParameterContainer, isArrayMapOrCollection
private Object value
public CliValueContainerObject(CliParameterContainer parameterContainer, CliState cliState, CliParserDependencies dependencies, org.slf4j.Logger logger)
parameterContainer
- is the parameter-container
.cliState
- is the state
.dependencies
- are the dependencies
.logger
- is the logger
.public Object getValue()
CliValueContainer
public void setValue(String argument)
CliValueContainer
value
given as string. For the parameter-types array, collection or map
this method may be called multiple times, one for each item.argument
- is the argument from the commandline containing the value.Copyright © 2001–2016 mmm-Team. All rights reserved.