public class CliValueContainerCollection extends AbstractCliValueContainerContainer
CliValueContainer
for a Collection
.Modifier and Type | Field and Description |
---|---|
private Collection<Object> |
collection |
Constructor and Description |
---|
CliValueContainerCollection(CliParameterContainer parameterContainer,
CliState cliState,
CliParserDependencies dependencies,
org.slf4j.Logger logger,
Collection<Object> value)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<Object> |
getCollection() |
Object |
getValue()
|
protected void |
setValueEntry(String entry,
GenericType<?> propertyType)
This method is like
AbstractCliValueContainerContainer.setValue(String) but for a single entry. |
protected void |
setValueInternal(Object containerValue)
This method sets the container value as new object.
|
isArrayMapOrCollection, setValue, setValueInternal
getCliState, getDependencies, getLogger, getParameterContainer
private Collection<Object> collection
public CliValueContainerCollection(CliParameterContainer parameterContainer, CliState cliState, CliParserDependencies dependencies, org.slf4j.Logger logger, Collection<Object> value)
parameterContainer
- is the parameter-container
.cliState
- is the state
.dependencies
- are the dependencies
.logger
- is the logger
.value
- is the initial, empty Collection
-value
.public Object getValue()
CliValueContainer
public Collection<Object> getCollection()
protected void setValueInternal(Object containerValue)
AbstractCliValueContainerContainer
setValueInternal
in class AbstractCliValueContainerContainer
containerValue
- is the container value to set.protected void setValueEntry(String entry, GenericType<?> propertyType)
AbstractCliValueContainerContainer
AbstractCliValueContainerContainer.setValue(String)
but for a single entry.setValueEntry
in class AbstractCliValueContainerContainer
entry
- is a single collection-entry given as string.propertyType
- is the GenericType
of the container.CliContainerStyle.MULTIPLE_OCCURRENCE
Copyright © 2001–2016 mmm-Team. All rights reserved.