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, setValueInternalgetCliState, getDependencies, getLogger, getParameterContainerprivate 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()
CliValueContainerpublic Collection<Object> getCollection()
protected void setValueInternal(Object containerValue)
AbstractCliValueContainerContainersetValueInternal in class AbstractCliValueContainerContainercontainerValue - is the container value to set.protected void setValueEntry(String entry, GenericType<?> propertyType)
AbstractCliValueContainerContainerAbstractCliValueContainerContainer.setValue(String) but for a single entry.setValueEntry in class AbstractCliValueContainerContainerentry - is a single collection-entry given as string.propertyType - is the GenericType of the container.CliContainerStyle.MULTIPLE_OCCURRENCECopyright © 2001–2016 mmm-Team. All rights reserved.