net.sf.mmm.util.cli.base
Interface CliValueContainer

All Known Implementing Classes:
AbstractCliValueContainer, AbstractCliValueContainerContainer, CliValueContainerArray, CliValueContainerCollection, CliValueContainerMap, CliValueContainerObject

public interface CliValueContainer

A CliValueContainer is a simple container for the value of a option or a argument.

Since:
2.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Method Summary
 Object getValue()
          This method gets the value of a option or a argument.
 boolean isArrayMapOrCollection()
           
 void setValue(String argument)
          This method sets the value given as string.
 

Method Detail

getValue

Object getValue()
This method gets the value of a option or a argument.

Returns:
the value.

setValue

void setValue(String argument)
This method sets the value given as string. For the parameter-types array, collection or map this method may be called multiple times, one for each item.

Parameters:
argument - is the argument from the commandline containing the value.

isArrayMapOrCollection

boolean isArrayMapOrCollection()
Returns:
true if this is a container for a value of the type array, Collection or Map - false otherwise.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.