org.openmdx.base.application.control
Class CmdLineFreeArgOption

java.lang.Object
  extended by org.openmdx.base.application.control.CmdLineFreeArgOption

public class CmdLineFreeArgOption
extends Object

The CmdLineFreeArgOption describes the free arguments for a command line


Constructor Summary
CmdLineFreeArgOption(String usage)
          Free argument declaration.
CmdLineFreeArgOption(String usage, int minimum)
          Free argument declaration
CmdLineFreeArgOption(String usage, int minimum, int maximum)
          Free argument declaration
 
Method Summary
 int getMaximum()
          Returns the maximum number of free arguments
 int getMinimum()
          Returns the minimal number of free arguments
 String getUsage()
          Returns the usage string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdLineFreeArgOption

public CmdLineFreeArgOption(String usage)
Free argument declaration. No minimal and maximal number for free arguemnts

Parameters:
usage - Describes the free arguments

CmdLineFreeArgOption

public CmdLineFreeArgOption(String usage,
                            int minimum)
Free argument declaration

Parameters:
usage - Describes the free arguments
minimum - Defines the minimal number of free arguments.

CmdLineFreeArgOption

public CmdLineFreeArgOption(String usage,
                            int minimum,
                            int maximum)
Free argument declaration

Parameters:
usage - Describes the free arguments
minimum - Defines the minimal number of free arguments.
maximum - Defines the maximal number of arguments.
Method Detail

getUsage

public String getUsage()
Returns the usage string

Returns:
a String

getMinimum

public int getMinimum()
Returns the minimal number of free arguments

Returns:
a number

getMaximum

public int getMaximum()
Returns the maximum number of free arguments

Returns:
a number


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.