public class CliValueContainerArray extends CliValueContainerCollection
CliValueContainer
for an array. It uses a ArrayList
that is dynamically
converted to an array if getValue()
gets called.Modifier and Type | Field and Description |
---|---|
private Object |
array
The array or
null if NOT yet set. |
Constructor and Description |
---|
CliValueContainerArray(CliParameterContainer parameterContainer,
CliState cliState,
CliParserDependencies dependencies,
org.slf4j.Logger logger)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
|
protected void |
setValueInternal(Object containerValue)
This method sets the container value as new object.
|
getCollection, setValueEntry
isArrayMapOrCollection, setValue, setValueInternal
getCliState, getDependencies, getLogger, getParameterContainer
private Object array
null
if NOT yet set.public CliValueContainerArray(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
.protected void setValueInternal(Object containerValue)
AbstractCliValueContainerContainer
setValueInternal
in class CliValueContainerCollection
containerValue
- is the container value to set.public Object getValue()
CliValueContainer
getValue
in interface CliValueContainer
getValue
in class CliValueContainerCollection
Copyright © 2001–2016 mmm-Team. All rights reserved.