net.sf.mmm.util.cli.base
Class CliValueContainerArray
java.lang.Object
net.sf.mmm.util.cli.base.AbstractCliValueContainer
net.sf.mmm.util.cli.base.AbstractCliValueContainerContainer
net.sf.mmm.util.cli.base.CliValueContainerCollection
net.sf.mmm.util.cli.base.CliValueContainerArray
- All Implemented Interfaces:
- CliValueContainer
public class CliValueContainerArray
- extends CliValueContainerCollection
This is an implementation of CliValueContainer
for an array. It uses
a ArrayList
that is dynamically converted to an array if
getValue()
gets called.
- Since:
- 2.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
Field Summary |
private Object |
array
The array or null if NOT yet set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
array
private Object array
- The array or
null
if NOT yet set.
CliValueContainerArray
public CliValueContainerArray(CliParameterContainer parameterContainer,
CliState cliState,
CliParserDependencies dependencies,
org.slf4j.Logger logger)
- The constructor.
- Parameters:
parameterContainer
- is the parameter-container
.cliState
- is the state
.dependencies
- are the dependencies
.logger
- is the logger
.
setValueInternal
protected void setValueInternal(Object containerValue)
- This method sets the container value as new object.
- Overrides:
setValueInternal
in class CliValueContainerCollection
- Parameters:
containerValue
- is the container value to set.
getValue
public Object getValue()
- This method gets the value of a
option
or a argument
.
- Specified by:
getValue
in interface CliValueContainer
- Overrides:
getValue
in class CliValueContainerCollection
- Returns:
- the value.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.